Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Would you please help me create a formual that will return one of five values?
If B11 is less than 1000, enter 0 in D11 If B11 is more than 1000 and less than 2000, enter 1 in D11 If B11 is more than 2000 and less than 3000 enter 2 in D11 if B11 is more than 3000 and less than 4000 enter 3 in D11 if B11 is equal to or greater than 4000 enter 4 in D11 Thank you very very much! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You haven't defined what you want if B11 is equal to 1000, or equal to 2000,
etc. You could look in Excel help for the syntax of the IF function, and look at the examples they give, which include examples of nested IF statements. Another option is: =MEDIAN(0,INT(B11/1000),4) -- David Biddulph "BearlyCat" wrote in message ... Would you please help me create a formual that will return one of five values? If B11 is less than 1000, enter 0 in D11 If B11 is more than 1000 and less than 2000, enter 1 in D11 If B11 is more than 2000 and less than 3000 enter 2 in D11 if B11 is more than 3000 and less than 4000 enter 3 in D11 if B11 is equal to or greater than 4000 enter 4 in D11 Thank you very very much! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this in D11
=LOOKUP(B11,{0,1000,2000,3000,4000},{0,1,2,3,4}) You didn't say what to do with exactly 1000, 2000, 3000 or 4000 Are they considered as greater than? The formula above treats as equal to or greater than. Gord Dibben MS Excel MVP On Thu, 22 Feb 2007 17:27:13 -0800, BearlyCat wrote: Would you please help me create a formual that will return one of five values? If B11 is less than 1000, enter 0 in D11 If B11 is more than 1000 and less than 2000, enter 1 in D11 If B11 is more than 2000 and less than 3000 enter 2 in D11 if B11 is more than 3000 and less than 4000 enter 3 in D11 if B11 is equal to or greater than 4000 enter 4 in D11 Thank you very very much! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you for your help and thank you for pointing that out. You can't read
my mind! 1000 = 1, 2000 = 2, 3000=3, 4000=4. "David Biddulph" wrote: You haven't defined what you want if B11 is equal to 1000, or equal to 2000, etc. You could look in Excel help for the syntax of the IF function, and look at the examples they give, which include examples of nested IF statements. Another option is: =MEDIAN(0,INT(B11/1000),4) -- David Biddulph "BearlyCat" wrote in message ... Would you please help me create a formual that will return one of five values? If B11 is less than 1000, enter 0 in D11 If B11 is more than 1000 and less than 2000, enter 1 in D11 If B11 is more than 2000 and less than 3000 enter 2 in D11 if B11 is more than 3000 and less than 4000 enter 3 in D11 if B11 is equal to or greater than 4000 enter 4 in D11 Thank you very very much! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you too for pointing that out and for your help. When B11 = 1000, D11
=1, 2000=2, 3000=3 and 4000=4. "Gord Dibben" wrote: Try this in D11 =LOOKUP(B11,{0,1000,2000,3000,4000},{0,1,2,3,4}) You didn't say what to do with exactly 1000, 2000, 3000 or 4000 Are they considered as greater than? The formula above treats as equal to or greater than. Gord Dibben MS Excel MVP On Thu, 22 Feb 2007 17:27:13 -0800, BearlyCat wrote: Would you please help me create a formual that will return one of five values? If B11 is less than 1000, enter 0 in D11 If B11 is more than 1000 and less than 2000, enter 1 in D11 If B11 is more than 2000 and less than 3000 enter 2 in D11 if B11 is more than 3000 and less than 4000 enter 3 in D11 if B11 is equal to or greater than 4000 enter 4 in D11 Thank you very very much! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
To filter for 100 documents out of 1000 | Excel Discussion (Misc queries) | |||
Multiply/ Round by 1000 | Excel Discussion (Misc queries) | |||
1000 to 1 and 1 to 1000 | Excel Worksheet Functions | |||
1000+$K$5/1000 -what does $ indicate in formula | Excel Worksheet Functions | |||
I am trying to figure out how to add per 1000 | Excel Worksheet Functions |