A tricky lookup question

Adam P

New Member
Joined
Aug 17, 2006
Messages
7
I have a column of values in currency form. I need a formula that will look each value up in a "range of ranges" and apply the corresponding percentage to the original value, i.e. if the value is between $0 and $5000, multiply by 10%; if the value is between $5001 and 10000, multiply by 13%; if the value is between $10001 and $20000, multiply by 15%, and so on.

Is this possible? Anybody have any ideas?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
are you going to have more than 7 different percentages? if not than an if statement would work

Code:
if(and(a2<20000,a2>10000),a2*15%,if(and(a2<10001,a2>5000),a2*13%,....and you get the idea)
 
Upvote 0
Hello Adam

Have you used a VLOOKUP before? You could input a table with two sets of values: the first column to contain the boundaries eg $0,$5001,$10,001 etc and the second column to hold your percentages corresponding to that vaue eg 10%,13%,15% etc. Then the formula you would need would resemble:

=VLOOKUP(A1,Values!$A$1:$B$10,2)

Where your values are containe in A1:B10 of sheet Values (rename as appropriate).

Make sense?

Richard
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top