If A1=HR then...

Z

ZOEY

I have been trying to get a formula to work for the following:

Cell A3 Cell D3 Cell H3 Cell I3 Cell K3
HR 0.00 0.00 -10.00 (answer in thi
example -10.00)

I need a formula in Cell K3 that would do the following; If A3=HR, the
enter value in D3 unless blank or zero, then enter value from H3 unles
blank or zero, then enter value from I3.

I can get it to work if I only have 2 cells for it to look. How can
get it to consider 3 different cells? There will only be one of th
three cells with a value.

Thanks Zoe
 
G

Guest

One solution would be to nest your "ifs" .
I didn't test this but it's close to what it sounds like you want. Not sure
if the test for text will work.

if(A3<>0,(if(D3=0,I3,D3),"")

Or this way.
=IF(A1<>0,MAX(B1,C1,D1),"none")

"> I have been trying to get a formula to work for the following:
 
D

daddylonglegs

If only one of the cells can have a value just sum them

=IF(A3="HR",SUM(D3,H3:I3),""
 
S

Steve Yandl

Try this,

=IF(A3="HR",IF(OR(ISBLANK(D3),D3=0),IF(OR(ISBLANK(H3),H3=0),I3,H3),D3),"")


Steve
 
D

daddylonglegs

Hi Steve,

Of course you're right. I'm assuming the cells will either be blank o
numeric...., perhaps I shouldn't be...
 
Z

ZOEY

:)

Thank you ALL for the replies!! DaddyLongLegs... It worked! The
cells will only have numeric.

Zoe
 

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