Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Paputxi
 
Posts: n/a
Default Count Formula Problem

Using the example below, I need a worksheet formula that will automatically
determine the number of blank cells in column B based on the number of rows
in Col A containing entries, which can vary as more entries are added after
the last row. So the formula needs to automatically determine that number of
rows in column A for the whole column, not just a select number of rows. In
this example the number of rows is 5. Fortunately, the first null entry in
Col A will indicate the end of the data in that column. So there are no
nulls in Col A before the last entry. In my example, the answer is 3 (for
nulls found in Col B rows 2, 3 and 5). Any ideas? Thanks in advance.

Col A Col B
Row 1 10 X
Row 2 20
Row 3 25
Row 4 100 x
Row 5 15
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count Formula Problem

=sumproduct(--(A1:A100<""),--(B1:B100=""))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Paputxi" wrote in message
...
Using the example below, I need a worksheet formula that will

automatically
determine the number of blank cells in column B based on the number of

rows
in Col A containing entries, which can vary as more entries are added

after
the last row. So the formula needs to automatically determine that number

of
rows in column A for the whole column, not just a select number of rows.

In
this example the number of rows is 5. Fortunately, the first null entry

in
Col A will indicate the end of the data in that column. So there are no
nulls in Col A before the last entry. In my example, the answer is 3 (for
nulls found in Col B rows 2, 3 and 5). Any ideas? Thanks in advance.

Col A Col B
Row 1 10 X
Row 2 20
Row 3 25
Row 4 100 x
Row 5 15



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Count Formula Problem


Perhaps try

=COUNTBLANK(B1:INDEX(B:B,COUNTA(A:A)))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=527881

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Count Formula Problem

=SUMPRODUCT(--(A2:A10<""),--(B2:B10=""))

if you really want to determine the numbers of entries in A you would need a
dynamic formula like

http://www.contextures.com/xlNames01.html#Dynamic

however just use a a range that is a bit bigger than what can ever be there
the formula will still work


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com




"Paputxi" wrote in message
...
Using the example below, I need a worksheet formula that will
automatically
determine the number of blank cells in column B based on the number of
rows
in Col A containing entries, which can vary as more entries are added
after
the last row. So the formula needs to automatically determine that number
of
rows in column A for the whole column, not just a select number of rows.
In
this example the number of rows is 5. Fortunately, the first null entry
in
Col A will indicate the end of the data in that column. So there are no
nulls in Col A before the last entry. In my example, the answer is 3 (for
nulls found in Col B rows 2, 3 and 5). Any ideas? Thanks in advance.

Col A Col B
Row 1 10 X
Row 2 20
Row 3 25
Row 4 100 x
Row 5 15



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Baffling formula problem Ken Schmidt Excel Discussion (Misc queries) 2 December 21st 04 07:52 AM


All times are GMT +1. The time now is 10:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"