Help on an IF formula

G

Gerard Sanchez

Hi,

Here's what I am trying to do:

What I am trying to do is that IF ranges C20:C53, F20:F53, and I20:I51 are
all blank-- I not am talking about zero value, but no value/blank
cells--then SUM these ranges (B20:B53,E20:E53,H20:H51). But if ranges
C20:C53, F20:F53, and I20:I51 are not blank, put in the text "NOT BALANCED."

Here's the IF formula I came up with:

=IF(ISBLANK(C20:C53,F20:F53,I20:I51),SUM(B20:B53,E20:E53,H20:H51),"NOT
BALANCED !")

Here's the Result:

"To many arguments" error. I realized that ISBLANK function can only refer
to only one cell at a time. So no luck.


Does anybody have any ideas how to translate what I am trying to do into a
formula?

Thanks
 
T

T. Valko

It's not real clear what you mean by: if [the] ranges are not blank.

Does that mean if *every* cell is not blank?

See if this does what you want:

=IF(COUNT(C20:C53,F20:F53,I20:I51)=0,SUM(B20:B53,E20:E53,H20:H51),"Not
Balanced")
 
G

Gerard Sanchez

YES! That worked!

Here I was, going through Alot of different function going about the
problem.

Thank you soo much T.

--Gerard


T. Valko said:
It's not real clear what you mean by: if [the] ranges are not blank.

Does that mean if *every* cell is not blank?

See if this does what you want:

=IF(COUNT(C20:C53,F20:F53,I20:I51)=0,SUM(B20:B53,E20:E53,H20:H51),"Not
Balanced")

--
Biff
Microsoft Excel MVP


Gerard Sanchez said:
Hi,

Here's what I am trying to do:

What I am trying to do is that IF ranges C20:C53, F20:F53, and I20:I51
are all blank-- I not am talking about zero value, but no value/blank
cells--then SUM these ranges (B20:B53,E20:E53,H20:H51). But if ranges
C20:C53, F20:F53, and I20:I51 are not blank, put in the text "NOT
BALANCED."

Here's the IF formula I came up with:

=IF(ISBLANK(C20:C53,F20:F53,I20:I51),SUM(B20:B53,E20:E53,H20:H51),"NOT
BALANCED !")

Here's the Result:

"To many arguments" error. I realized that ISBLANK function can only
refer to only one cell at a time. So no luck.


Does anybody have any ideas how to translate what I am trying to do into
a formula?

Thanks
 
T

T. Valko

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Gerard Sanchez said:
YES! That worked!

Here I was, going through Alot of different function going about the
problem.

Thank you soo much T.

--Gerard


T. Valko said:
It's not real clear what you mean by: if [the] ranges are not blank.

Does that mean if *every* cell is not blank?

See if this does what you want:

=IF(COUNT(C20:C53,F20:F53,I20:I51)=0,SUM(B20:B53,E20:E53,H20:H51),"Not
Balanced")

--
Biff
Microsoft Excel MVP


Gerard Sanchez said:
Hi,

Here's what I am trying to do:

What I am trying to do is that IF ranges C20:C53, F20:F53, and I20:I51
are all blank-- I not am talking about zero value, but no value/blank
cells--then SUM these ranges (B20:B53,E20:E53,H20:H51). But if ranges
C20:C53, F20:F53, and I20:I51 are not blank, put in the text "NOT
BALANCED."

Here's the IF formula I came up with:

=IF(ISBLANK(C20:C53,F20:F53,I20:I51),SUM(B20:B53,E20:E53,H20:H51),"NOT
BALANCED !")

Here's the Result:

"To many arguments" error. I realized that ISBLANK function can only
refer to only one cell at a time. So no luck.


Does anybody have any ideas how to translate what I am trying to do into
a formula?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top