if within a range, then multiply by X

tommyloan

New Member
Joined
Feb 16, 2015
Messages
9
Hello... I need help on using a particular multiplier based on ranges. I am using the SUM function to add column I4 thru I15, and give the total in I16. Then, I need to multiply the number in I16 by the correct multiplier (based on the below chart) and show the result in I17. So for example, if the total of I4 thru I15 is shown in I16 to be $472,000, then I need to multiply by 0.43% and show $2,029.60 in I17. Or if total sales is $2,780,000, then I need to multiply by 0.72% and show $20,016 in I17. In the below chart, "0" is H44, "$499,000" is I44, and "0.43%" is J44. So the chart is saying: if $0 thru $499,999, multiply by 0.43% / if $500,000 thru $999,999 multiply by 0.47% / etc, etc. Thank you in advance.

[TABLE="width: 201"]
<tbody>[TR]
[TD]0[/TD]
[TD]$499,999[/TD]
[TD]0.43%[/TD]
[/TR]
[TR]
[TD]500000[/TD]
[TD]$999,999[/TD]
[TD]0.47%[/TD]
[/TR]
[TR]
[TD]1000000[/TD]
[TD]$1,499,000[/TD]
[TD]0.57%[/TD]
[/TR]
[TR]
[TD]1500000[/TD]
[TD]$1,999,999[/TD]
[TD]0.62%[/TD]
[/TR]
[TR]
[TD]2000000[/TD]
[TD]$2,499,999[/TD]
[TD]0.67%[/TD]
[/TR]
[TR]
[TD]2500000[/TD]
[TD]$2,999,999[/TD]
[TD]0.72%[/TD]
[/TR]
[TR]
[TD]3000000[/TD]
[TD]$3,499,999[/TD]
[TD]0.77%[/TD]
[/TR]
[TR]
[TD]3500000[/TD]
[TD]$3,999,999[/TD]
[TD]0.82%[/TD]
[/TR]
[TR]
[TD]4000000[/TD]
[TD]$10,000,000[/TD]
[TD]0.87%[/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You can do this using VLOOKUP, specifically by setting the last (4th) argument to TRUE.

So, enter that chart somewhere in your workbook, highlight it all, and name the range (I'll use the name "MyRange" for this example).
Then, you can use the following formula in cell I17:
Code:
=VLOOKUP(I16,MyRange,3,True)

See here for an explanation of how it works: https://exceljet.net/tips/how-to-use-vlookup-for-approximate-matches
 
Upvote 0
Very easy.
See: http://www.contextures.com/xlNames01.html#videoname
You do not need to name the range, but I think it makes it easier to work with (you do not need to worry about locking cell references).

BTW, Google is your friend with these type of things. Just Google "Excel name range", and you will gets lots of different links to tutorials and videos!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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