Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I would like a function to return a value that fits its range

For example:
0-$500 = 20%
501-$1000 = 15%
1001-$5000 = 12.5%

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default I would like a function to return a value that fits its range

One way:

=LOOKUP(A1,{0,501,1001},{0.20,0.15,0.125}) with cell formatted as %

or look at VLOOKUP function

"rpbsr" wrote:

For example:
0-$500 = 20%
501-$1000 = 15%
1001-$5000 = 12.5%

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Ian is offline
external usenet poster
 
Posts: 238
Default I would like a function to return a value that fits its range

=IF(B1<=500, 0.2,IF(B1<=1000,0.15,IF(B1<=5000,0.125,0))) and format as
percentage.

I've assumed that anything over the maximum in a range goes into the next
range (eg.$500.01) and that anything over 5000 results in 0.

--
Ian
--
"rpbsr" wrote in message
...
For example:
0-$500 = 20%
501-$1000 = 15%
1001-$5000 = 12.5%

Thank you!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I would like a function to return a value that fits its range

That's perfect Ian. Thanks.

"Ian" wrote:

=IF(B1<=500, 0.2,IF(B1<=1000,0.15,IF(B1<=5000,0.125,0))) and format as
percentage.

I've assumed that anything over the maximum in a range goes into the next
range (eg.$500.01) and that anything over 5000 results in 0.

--
Ian
--
"rpbsr" wrote in message
...
For example:
0-$500 = 20%
501-$1000 = 15%
1001-$5000 = 12.5%

Thank you!




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian Ian is offline
external usenet poster
 
Posts: 238
Default I would like a function to return a value that fits its range

Glad it worked.

Thanks for the feedback.

--
Ian
--
"rpbsr" wrote in message
...
That's perfect Ian. Thanks.

"Ian" wrote:

=IF(B1<=500, 0.2,IF(B1<=1000,0.15,IF(B1<=5000,0.125,0))) and format as
percentage.

I've assumed that anything over the maximum in a range goes into the next
range (eg.$500.01) and that anything over 5000 results in 0.

--
Ian
--
"rpbsr" wrote in message
...
For example:
0-$500 = 20%
501-$1000 = 15%
1001-$5000 = 12.5%

Thank you!








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
Passing a range name as an argument to the Index Function Michael Sharpe Excel Discussion (Misc queries) 3 September 5th 12 01:33 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
calculating return in a range kman Excel Worksheet Functions 5 December 27th 05 12:49 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 05:37 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"