Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Counting Consecutive Instances | Excel Worksheet Functions | |||
copy range of cells with blanks then paste without blanks | Excel Worksheet Functions | |||
Counting Consecutive Cells | Excel Discussion (Misc queries) | |||
Counting consecutive periods | Excel Worksheet Functions | |||
Subtraction formula for consecutive cells in a column, skipping blanks | Excel Worksheet Functions |