Two "if"s in a formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am not getting any result with this formula. I have tried it two different
times.

When I use this:
=IF(D38=1.09,"$1.09",0),IF(D38=4.49,"$1.09",0)
I get #Value!

When I use this:
IF(D38=1.09,"$1.09",0)*IF(D38=4.49,"$1.09",0)
I get 0

I am trying to have the cell either say $1.09 or $0

Can someone please help? Thanks!
 
=IF(OR(D38=1.09,D38=4.49),"$1.09",0)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Try something like this:

=IF(OR(D38=1.09,D38=4.49),"$1.09",0)

Note: that will return TEXT of "$1.09"

If you want it to return a numeric value, use this formula and format the
cell as currency:
=IF(OR(D38=1.09,D38=4.49),1.09,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
Thanks for your help! It worked!!!!

Ron Coderre said:
Try something like this:

=IF(OR(D38=1.09,D38=4.49),"$1.09",0)

Note: that will return TEXT of "$1.09"

If you want it to return a numeric value, use this formula and format the
cell as currency:
=IF(OR(D38=1.09,D38=4.49),1.09,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 

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

Back
Top