Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF B11 is less than 1000, enter 0 in D11, IF B11 is between...

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default IF B11 is less than 1000, enter 0 in D11, IF B11 is between...

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default IF B11 is less than 1000, enter 0 in D11, IF B11 is between...

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF B11 is less than 1000, enter 0 in D11, IF B11 is between...

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF B11 is less than 1000, enter 0 in D11, IF B11 is between...

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
To filter for 100 documents out of 1000 Dolphinv4 Excel Discussion (Misc queries) 3 January 22nd 07 01:38 PM
Multiply/ Round by 1000 Vix Excel Discussion (Misc queries) 3 December 21st 06 05:07 PM
1000 to 1 and 1 to 1000 Olle Excel Worksheet Functions 5 October 6th 06 02:41 PM
1000+$K$5/1000 -what does $ indicate in formula Coolbhims Excel Worksheet Functions 1 March 16th 06 11:51 AM
I am trying to figure out how to add per 1000 DG Excel Worksheet Functions 5 July 13th 05 02:46 AM


All times are GMT +1. The time now is 07:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"