Thread: IF Statement
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs daddylonglegs is offline
external usenet poster
 
Posts: 287
Default IF Statement

You have to refer to E39+E40 in every clause, e.g.

=IF(E39+E40<10.01,3,IF(E39+E40<25,4,IF(E39+E40<40, 5,6)))

or you could try LOOKUP...with a table or hard-coded into the formula like
this

=LOOKUP(E39+E40,{0,10.01,25,40;3,4,5,6})

"Snake_Plisken" wrote:

I have created an Excel Order form. After the Subtotal and Tax have been
calculated, I want the form to automatically put in the handling charges.
The IF Statement that I have used to format the cell is:
=IF((E39+E40)<10.01,3,IF(10.01<25,4,IF(25.01<40,5) ))---where E39 = subtotal
and E40 = tax
Now this formula works great if order is less than 10.01--brings back 3 as
result. And if order is between 10.01 and 25 it brings back 4 as result.
However, it does not work if amount is above 25.01---still brings back 4 as
result when it should bring back 5. I would also like to continue IF
statement in this cell to bring back results up to $100.
Am I doing something wrong here? Why does formula work great up to a point,
but no further??
Could someone please help.

Thank you