IF then statement question

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

Guest

Hi,

I have four cells of data (A1 through D1). I have created an If then
statement where If A1 is less than 500, D1 = B1. I also want to have it so
that If A1 > 500 then D1=C1. How would I write a formula for this. Can
anyone help?

Thanks
 
Try something like:

=IF(A1<500,B1,C1)
or
=IF(A1<500,B1,IF(A1>500,D1,0))
if A1 = 500 then this formula will return 0, adjust to suit!

HTH
Jean-Guy
 
Use two IFs, one to check if A1<500 and the other to check if A1>500. Type in
cell D1:

=IF(A1<500, B1, IF(A1>500, C1, "A1=500"))

Note that if A1 = 500 the formula will show "A1=500" because you didn't tell
what to do if A1=500. If you say that if A1 is less than or equal to 500,
D1=B1 then the formula is simpler:

=IF(A1<=500, B1, C1)
 

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

Similar Threads

Format of cell 1
Nested IF Help 3
Format of cell 1
Formula for If "" AND "" are true... 3
Help for - IF Formula 2
Looking at multiple cells 3
Forcing User inputs 1
Not sure how to format this if statement 2

Back
Top