Formula creation help - apply multiple conditions based on value

Biking Loki

Board Regular
Joined
Aug 25, 2005
Messages
167
First, I wasn't sure of the best way to title this post. Hopefully my description below will be more helpful.

I need to come up with a way to use excel to calculate a formula based on the following.

If an item cost $360,000.00 the following table below needs to be factored in to figure the commission (for lack of a better word).

(Rate per 1,000)
0-249,999.99 2.73
250,000-499,999.99 2.59
500,000-999,999.99 2.38
1,000,000-1,999,999.99 1.58

In my example, the 360,000 price would result in a 967.40 commission. That was calculated by adding (249,999.00/1,000) x 2.73 PLUS ((360,000-250,000)/10000) x 2.59.

Basically, I am looking for a way to put the pricevalue in Cell A1 and have the commission calculated on the table listed above. Is there a way to do that with excel?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
If an item cost $360,000.00 the following table below needs to be factored in to figure the commission (for lack of a better word).
(Rate per 1,000)
0-249,999.99 2.73
250,000-499,999.99 2.59
500,000-999,999.99 2.38
1,000,000-1,999,999.99 1.58
In my example, the 360,000 price would result in a 967.40 commission. That was calculated by adding (249,999.00/1,000) x 2.73 PLUS ((360,000-250,000)/10000) x 2.59.
max
360000967.4002.73
2500002.59682.5682.5
5000002.3812951977.5
10000001.5823804357.5
10000001.5815805937.5
formula
=(((F17-VLOOKUP(F17,mytable,1))/1000)*VLOOKUP(F17,mytable,2))+VLOOKUP(F17,mytable,3)

<colgroup><col span="17"></colgroup><tbody>
</tbody>
 
Upvote 0
Nice one oldbrewer...

Here's an alternate method where you format as a table for the calculations.


Excel 2010
ABCDEF
1$ 360,000.00MinMaxRatePaid
2$ - $ 249,999.99$ 2.73$ 682.50
3$ 250,000.00$ 499,999.99$ 2.59$ 284.90
4$ 500,000.00$ 999,999.99$ 2.39$ -
5$ 1,000,000.00$ 1,999,999.99$ 1.58$ -
6Total$ 967.40
Sheet1
Cell Formulas
RangeFormula
F2=(MIN([@Max],A$1)-MIN([@Min],A$1))/1000*[@Rate]
 
Last edited:
Upvote 0
Quick note on post 3:

Range C1:F5 was formatted as a table and I added Total Row under the Table Tools Design Contextural tab.
 
Upvote 0
I am using Excel 2016. When I copy the formula into Cell F2, I get an error message about syntax. Is there something I am doing wrong in the set up?

Nice one oldbrewer...

Here's an alternate method where you format as a table for the calculations.


Excel 2010
ABCDEF
1$ 360,000.00MinMaxRatePaid
2$ - $ 249,999.99$ 2.73$ 682.50
3$ 250,000.00$ 499,999.99$ 2.59$ 284.90
4$ 500,000.00$ 999,999.99$ 2.39$ -
5$ 1,000,000.00$ 1,999,999.99$ 1.58$ -
6Total$ 967.40
Sheet1
Cell Formulas
RangeFormula
F2=(MIN([@Max],A$1)-MIN([@Min],A$1))/1000*[@Rate]
 
Upvote 0
Try this formula for F2:

=(MIN(Sheet1!$D2,A$1)-MIN(Sheet1!$C2,A$1))/1000*Sheet1!$E2

Then you should be able to drag the selection down to F5. (Note: you might need to change the sheet reference portion of code)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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