counting multiple blanks

Double99

New Member
Joined
Jul 11, 2011
Messages
29
Hello

I have a question to ask...

I have 14 cells all in different columns (not adjacent to one another). and I need a formula that says if all 14 cells are blank then return a value of '0'. If one or more of the cells contains data then return a value of '1'.

I'm not sure how to do this or what is the best way?

Many Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello

I have a question to ask...

I have 14 cells all in different columns (not adjacent to one another). and I need a formula that says if all 14 cells are blank then return a value of '0'. If one or more of the cells contains data then return a value of '1'.

I'm not sure how to do this or what is the best way?

Many Thanks
Try something like this...

=--(COUNTA(A1,B2,C3,E4,F5,G6,H4,H10,I7,I17,J1,J12,J15,J19)>0)

Just use the correct cell references.
 
Upvote 0
Hmmm...

Having put this into Excel, I realise that what I've asked for is slightly wrong...

What formula would I put in to return the value of '1' when ALL 14 cells contain contents, and return the value of '0' when one or more cells are blank

Sorry to be pain

Cris
 
Upvote 0
If these "values" could be either text or numbers, try:

=IF(COUNTA(A1:D4)=14,1,0)

Again, change the range to suit your actual data.

Matty
 
Upvote 0
What formula would I put in to return the value of '1' when ALL 14 cells contain contents, and return the value of '0' when one or more cells are blank

=SIGN(NOT(COUNTBLANK(«your range here»)))

or

=--NOT(COUNTBLANK(«your range here»))

ought to do the try.
 
Last edited:
Upvote 0
Well now that I look at it, editing Biff's would be easy enough as well...

=--(COUNTA(A1,B2,C3,E4,F5,G6,H4,H10,I7,I17,J1,J12,J15,J19)<>14)

The only advantage to the ones I posted above is that you needn't worry about having to change the "14" bit if the number of cells being checked for blanks changes.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,758
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top