If statements (1 Viewer)

sonny

Registered User.
Local time
Today, 08:23
Joined
Mar 2, 2004
Messages
140
I have this formula in a cell but dont want it to add the Salaries if one or both of 2 other fileds are empty.

=SUM(D35:D46)+Salaries!C5+Salaries!C6

Salaries!C5 needs to be added only if cell D34 has a value
Salaries!C6 needs to be added only if cell D47 has a value

I cant figure out how the statement would be, any help would be appreciated...
 

shades

Registered User.
Local time
Today, 11:23
Joined
Mar 25, 2002
Messages
516
Howdy.

=IF(OR(Salaries!C5="",Salaries!C6=""),"",SUM(D35: D46))

See if this works for you, and if I have understood your setup.
________
Buy Herbalaire Vaporizer
 
Last edited:

Brianwarnock

Retired
Local time
Today, 17:23
Joined
Jun 2, 2003
Messages
12,701
You haven't responded to the previous post but the reply was not how I understood the question, I read it that you require

Code:
=SUM(D35:D46)+IF(D34<>"",salaries!C5)+IF(D47<>"",salaries!C6)
If a blank is also considered not to be a value then

Code:
=SUM(D35:D46)+IF(AND(D34<>"",D34<>" "),salaries!C5)+IF(AND(D47<>"",D47<>" "),salaries!C6)

Brian
 

Users who are viewing this thread

Top Bottom