Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I asked a question yesterday and got a quick answer and then today I realized
that I had asked the wrong question. :| Can the IF function look at a number and if the number is less than 249, add 10 between 250 and 750, add 20 between 751 and 1500, add 30 over 1500, add 40 or is this too much for the IF function. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm assuming your first condition should include 249, though you state it as
"less than 249". =IF(A1<=249,A1+10,IF(A1<=750,A1+20,IF(A1<=1500,A1+ 30,A1+40))) HTH, Paul -- "S Swedowski" wrote in message ... I asked a question yesterday and got a quick answer and then today I realized that I had asked the wrong question. :| Can the IF function look at a number and if the number is less than 249, add 10 between 250 and 750, add 20 between 751 and 1500, add 30 over 1500, add 40 or is this too much for the IF function. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Feb 13, 2:40*pm, S Swedowski
wrote: I asked a question yesterday and got a quick answer and then today I realized that I had asked the wrong question. :| Can the IF function look at a number and if the number is less than 249, add 10 between 250 and 750, add 20 between 751 and 1500, add 30 over 1500, add 40 or is this too much for the IF function. * =IF(A1<249,A1+10,if(and(a1249,a1<751),a1+20,if(an d(a1750,a1<1501),a1+30,a1+40))) |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks!!! It worked great.
"Dave F" wrote: On Feb 13, 2:40 pm, S Swedowski wrote: I asked a question yesterday and got a quick answer and then today I realized that I had asked the wrong question. :| Can the IF function look at a number and if the number is less than 249, add 10 between 250 and 750, add 20 between 751 and 1500, add 30 over 1500, add 40 or is this too much for the IF function. =IF(A1<249,A1+10,if(and(a1249,a1<751),a1+20,if(an d(a1750,a1<1501),a1+30,a1+40))) |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=A1+LOOKUP(A1,{0,0.000001,250,751,1501},{0,10,20,3 0,40}) If A1 is empty it returns 0. -- Biff Microsoft Excel MVP "S Swedowski" wrote in message ... I asked a question yesterday and got a quick answer and then today I realized that I had asked the wrong question. :| Can the IF function look at a number and if the number is less than 249, add 10 between 250 and 750, add 20 between 751 and 1500, add 30 over 1500, add 40 or is this too much for the IF function. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with nested IF function | Excel Worksheet Functions | |||
Nested If Function | Excel Worksheet Functions | |||
can you nested sum and round function within if function? | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |