Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How do I compare a result to a range of values?

I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How do I compare a result to a range of values?

I don't understand the rules sufficiently wher you say etc but it souns like
you need a table of percentages/bonuses thus
A B
22.5 7200
23.8 6600
25.9 6200

You then lookup a value (say) 23.0 in C1 with this formula

=VLOOKUP(C1,A1:B3,2,TRUE)

C1 in this example will return 7200 until it increases to 23.8 after which
it will return 6600.

Mike
"UnisourceforNPH" wrote:

I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How do I compare a result to a range of values?

Try VLOOKUP.
--
David Biddulph

"UnisourceforNPH" wrote in
message ...
I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I compare a result to a range of values?

You need to use the lower boundary for each interval:

...........A............B
1........0.........7200
2.....22.6.......6600
3.....23.9.......????

Biff

"Mike H" wrote in message
...
I don't understand the rules sufficiently wher you say etc but it souns
like
you need a table of percentages/bonuses thus
A B
22.5 7200
23.8 6600
25.9 6200

You then lookup a value (say) 23.0 in C1 with this formula

=VLOOKUP(C1,A1:B3,2,TRUE)

C1 in this example will return 7200 until it increases to 23.8 after
which
it will return 6600.

Mike
"UnisourceforNPH" wrote:

I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How do I compare a result to a range of values?

why?

"T. Valko" wrote:

You need to use the lower boundary for each interval:

...........A............B
1........0.........7200
2.....22.6.......6600
3.....23.9.......????

Biff

"Mike H" wrote in message
...
I don't understand the rules sufficiently wher you say etc but it souns
like
you need a table of percentages/bonuses thus
A B
22.5 7200
23.8 6600
25.9 6200

You then lookup a value (say) 23.0 in C1 with this formula

=VLOOKUP(C1,A1:B3,2,TRUE)

C1 in this example will return 7200 until it increases to 23.8 after
which
it will return 6600.

Mike
"UnisourceforNPH" wrote:

I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How do I compare a result to a range of values?

The "and so on" part always means at least two posts but here's an example.

=LOOKUP(A1,{22.6,22.6,23.9,24.7,25.8,26.9},{7200,6 600,6000,5500,5000,4500})


Gord Dibben MS Excel MVP


On Tue, 12 Jun 2007 11:23:01 -0700, UnisourceforNPH
wrote:

I have a percentage (26.9%) that I need to compare to a table to see what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able to
return a bonus value for whenever the percentage falls.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I compare a result to a range of values?

The first interval is 0 to 22.5 = 7200

Using your formula and table, if C1 = 13.5 the result is #N/A. The correct
result should be 7200.

The second interval is 22.6 to 23.8 = 6600

Using your formula and table, if C1 = 22.6 the result is 7200. The correct
result should be 6600.

Biff

"Mike H" wrote in message
...
why?

"T. Valko" wrote:

You need to use the lower boundary for each interval:

...........A............B
1........0.........7200
2.....22.6.......6600
3.....23.9.......????

Biff

"Mike H" wrote in message
...
I don't understand the rules sufficiently wher you say etc but it souns
like
you need a table of percentages/bonuses thus
A B
22.5 7200
23.8 6600
25.9 6200

You then lookup a value (say) 23.0 in C1 with this formula

=VLOOKUP(C1,A1:B3,2,TRUE)

C1 in this example will return 7200 until it increases to 23.8 after
which
it will return 6600.

Mike
"UnisourceforNPH" wrote:

I have a percentage (26.9%) that I need to compare to a table to see
what
amount of bonus my group receives.
(ie 0-22.5%=$7200, 22.6%-23.8%=$6600) and so on. So I need to be able
to
return a bonus value for whenever the percentage falls.






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
Range of Values Returns One Result Rif Excel Worksheet Functions 2 September 30th 06 12:04 PM
Compare to a range of values using "from/to" Lisa O. Excel Discussion (Misc queries) 7 May 23rd 06 07:00 PM
Compare alpha and numeric values within a range Greg Excel Worksheet Functions 9 May 5th 06 05:17 AM
Compare cell = one result Aaron Saulisberry Excel Discussion (Misc queries) 7 January 23rd 06 04:52 AM
compare one row to another and sum the result foxwave Excel Discussion (Misc queries) 7 March 21st 05 07:49 AM


All times are GMT +1. The time now is 06:57 AM.

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"