Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
philo351
 
Posts: n/a
Default IF/WHEN forumla fo when a cell is between two numbers


I'm trying to use a multiple "multiple" IF/WHEN formula for when a
number falls between two numbers. For example, if a number falls
anywhere between 1000 and 1999, then I need result A. If the number
falls between 2000 and 2999, then I need result B. For anything falling
between 3000-3999, I need result B ...etc.

Currently I'm hoping to apply this to a multiple IF/WHEN forumula which
is as follows

=IF((B21000),A,IF((B22000),B,IF((B23000),C,IF(( B24000),D,""))))</blockquotenow
obviously this isn't going to work. I need each condition to apply to a
range between two numbers which would operate this
way<blockquote[b]=IF((B2 is between 1000 and 2999),A,IF((B2is between
2000 and 2999),B,IF((B2is between 3000 and 3999),C,IF((B2 is between
4000 and 4999),D,""))))

any ideas? do I need to write a VBA script for this?


--
philo351
------------------------------------------------------------------------
philo351's Profile: http://www.excelforum.com/member.php...o&userid=30295
View this thread: http://www.excelforum.com/showthread...hreadid=499623

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DaveO
 
Posts: n/a
Default IF/WHEN forumla fo when a cell is between two numbers

You should be able to use the PRODUCT function I think....

You'd need to create a table of you values such as....

This example would sit in cells A1 to C3 on Sheet2.

Lower Bound Upper Bound Value
1000 1999 A
2000 2999 B

etc....

The you could do this....

=PRODUCT(--({Enter cell reference with the numeric value you're interested
in}=Sheet2!A1:A3), --({Enter the same cell reference as
before}<=Sheet2!B1:B3), Sheet2!C1:C3)

This should just about work. If not, look up the PRODUCT function and it
should help further.

HTH.

"philo351" wrote:


I'm trying to use a multiple "multiple" IF/WHEN formula for when a
number falls between two numbers. For example, if a number falls
anywhere between 1000 and 1999, then I need result A. If the number
falls between 2000 and 2999, then I need result B. For anything falling
between 3000-3999, I need result B ...etc.

Currently I'm hoping to apply this to a multiple IF/WHEN forumula which
is as follows

=IF((B21000),A,IF((B22000),B,IF((B23000),C,IF(( B24000),D,""))))</blockquotenow
obviously this isn't going to work. I need each condition to apply to a
range between two numbers which would operate this
way<blockquote[b]=IF((B2 is between 1000 and 2999),A,IF((B2is between
2000 and 2999),B,IF((B2is between 3000 and 3999),C,IF((B2 is between
4000 and 4999),D,""))))

any ideas? do I need to write a VBA script for this?


--
philo351
------------------------------------------------------------------------
philo351's Profile: http://www.excelforum.com/member.php...o&userid=30295
View this thread: http://www.excelforum.com/showthread...hreadid=499623


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
Adding numbers in one cell and showing total in seperate cell Deernad Construction Excel Discussion (Misc queries) 12 November 29th 05 07:32 PM
How do I hide the zero in the "sum" cell until numbers are put in the cells that are being added? Radman Excel Worksheet Functions 6 October 9th 05 04:25 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
create a cell that accumulates, numbers from another cell... sombull Excel Discussion (Misc queries) 1 February 18th 05 04:45 PM


All times are GMT +1. The time now is 11:02 PM.

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

About Us

"It's about Microsoft Excel"