#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional Formula

I want to compare multiple ranges of numbers to a number and when that number
falls within one of those ranges, diplay a given number. For example, say
there are 3 ranges of numbers: 80-84, 85-89, 90-94. I want to compare a
number that will be anywhere from 80 to 94 in a cell to those three ranges.
If the formula to see if the number is in the range 80-84, display the number
5; if the number is in the range 85-89, display the number 6, and if the
number is in the range 90-94, display the number 7. How do I construct that
formula? Thanks in advance for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Conditional Formula

Try the below
=IF(AND(A1=80,A1<=94),LOOKUP(A1,{80,85,90},{5,6,7 }),"")

If this post helps click Yes
---------------
Jacob Skaria


"Dave P." wrote:

I want to compare multiple ranges of numbers to a number and when that number
falls within one of those ranges, diplay a given number. For example, say
there are 3 ranges of numbers: 80-84, 85-89, 90-94. I want to compare a
number that will be anywhere from 80 to 94 in a cell to those three ranges.
If the formula to see if the number is in the range 80-84, display the number
5; if the number is in the range 85-89, display the number 6, and if the
number is in the range 90-94, display the number 7. How do I construct that
formula? Thanks in advance for your help.

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
Conditional Formula klmiura Excel Worksheet Functions 2 February 11th 09 08:56 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula, Conditional Formula Needed Karl Excel Discussion (Misc queries) 12 June 23rd 07 04:12 AM
conditional formula pattyling Excel Worksheet Functions 4 March 1st 07 10:18 PM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM


All times are GMT +1. The time now is 04:01 PM.

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"