Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default counting blanks in a non-consecutive range

I need to be able to count the number of blank cells in a range, but my range
is made up of non-consecutive cells, ie B2, D2, F2, H2.

I have tried naming the range 'actual' and then using =COUNTBLANK(actual)
but I get #VALUE!

I have also tried =COUNTBLANK(B2,D2,F2,H2) but it will not accept the formula.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default counting blanks in a non-consecutive range

Maybe:-

=SUM(IF(ISBLANK(B2),1,0)+IF(ISBLANK(D2),1,0)+IF(IS BLANK(F2),1,0)+IF(ISBLANK(H2),1,0))

Enter with Ctrl+shift+enter

Mike

"jenniebentham" wrote:

I need to be able to count the number of blank cells in a range, but my range
is made up of non-consecutive cells, ie B2, D2, F2, H2.

I have tried naming the range 'actual' and then using =COUNTBLANK(actual)
but I get #VALUE!

I have also tried =COUNTBLANK(B2,D2,F2,H2) but it will not accept the formula.

Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default counting blanks in a non-consecutive range

Lovely - thank you!

"Mike H" wrote:

Maybe:-

=SUM(IF(ISBLANK(B2),1,0)+IF(ISBLANK(D2),1,0)+IF(IS BLANK(F2),1,0)+IF(ISBLANK(H2),1,0))

Enter with Ctrl+shift+enter

Mike

"jenniebentham" wrote:

I need to be able to count the number of blank cells in a range, but my range
is made up of non-consecutive cells, ie B2, D2, F2, H2.

I have tried naming the range 'actual' and then using =COUNTBLANK(actual)
but I get #VALUE!

I have also tried =COUNTBLANK(B2,D2,F2,H2) but it will not accept the formula.

Any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default counting blanks in a non-consecutive range

Try this:

=SUMPRODUCT((COLUMN(B2:H2)={2;4;6;8})*ISBLANK(B2:H 2))

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"jenniebentham" wrote in message
...
I need to be able to count the number of blank cells in a range, but my
range
is made up of non-consecutive cells, ie B2, D2, F2, H2.

I have tried naming the range 'actual' and then using =COUNTBLANK(actual)
but I get #VALUE!

I have also tried =COUNTBLANK(B2,D2,F2,H2) but it will not accept the
formula.

Any suggestions?



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
Counting Consecutive Instances carl Excel Worksheet Functions 3 September 24th 07 07:08 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
Counting Consecutive Cells SteveC Excel Discussion (Misc queries) 16 June 21st 06 06:39 PM
Counting consecutive periods self_made1 Excel Worksheet Functions 1 December 21st 05 05:44 PM
Subtraction formula for consecutive cells in a column, skipping blanks [email protected] Excel Worksheet Functions 2 September 16th 05 12:20 AM


All times are GMT +1. The time now is 02:48 PM.

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

About Us

"It's about Microsoft Excel"