Calculating based on two cell values, one of which will fall into a range of numbers

jesstaylor

New Member
Joined
Dec 31, 2014
Messages
2
Okay, so I have a payout to figure out based on two things in my sheet. One is a solid number (number of products) the other is an average balance that will fall into one of 5 ranges of values. # of products will be 1-8, anything over 8 should calculate at 8, but needs to still be able to show as more on the sheet (confusing I'm aware). Each value of products and corresponding range has a different payout value. I'm thinking this should be some type of VLOOKUP but I'm not sure.

So an example would look like:
# of productsAverage BalancePayout(helper column for avg bal range matching if necessary)
31952.25*formula*<payout here should yield $15 based on below table

<tbody>
</tbody>


If an error occurs I would like it to show a value of $0 in the Payout.
The actual payout table in the sheet looks ridiculous because of each product value/balance combo having a different value, it looks like this though: If I need to have # of products as 8 then >8 I can, the values for payout will be the same though. Any help with this would be greatly appreciated
PAYOUT # of productsAverage Balance
$ - 10-99
$ - 1100-250
$ - 1251-1000
$ 5.00 11001-2500
$ 5.00 1>2500
$ - 20-99
$ - 2100-250
$ 5.00 2251-1000
$ 5.00 21001-2500
$ 5.00 2>2500
$ - 30-99
$ 5.00 3100-250
$ 10.00 3251-1000
$ 15.00 31001-2500
$ 20.00 3>2500
$ - 40-99
$ 5.00 4100-250
$ 15.00 4251-1000
$ 20.00 41001-2500
$ 25.00 4>2500
$ - 50-99
$ 5.00 5100-250
$ 20.00 5251-1000
$ 25.00 51001-2500
$ 30.00 5>2500
$ - 60-99
$ 10.00 6100-250
$ 25.00 6251-1000
$ 30.00 61001-2500
$ 35.00 6>2500
$ - 70-99
$ 10.00 7100-250
$ 30.00 7251-1000
$ 35.00 71001-2500
$ 45.00 7>2500
$ - >=80-99
$ 10.00 >=8100-250
$ 35.00 >=8251-1000
$ 40.00 >=81001-2500
$ 50.00 >=8>2500

<tbody>
</tbody><colgroup><col><col><col></colgroup>

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi,

There is a relatively straightforward way to do what you want.

You could create a new worksheet (call it "Payout Table") and copy and paste the cells below into the top left (i.e. cell A1) of this new sheet...

Payout Table

1
2
3
4
5
6
7
8
0
$ -
$ -
$ -
$ -
$ -
$ -
$ -
$ -
100
$ -
$ -
$ 5.00
$ 5.00
$ 5.00
$ 10.00
$ 10.00
$ 10.00
251
$ -
$ 5.00
$ 10.00
$ 15.00
$ 20.00
$ 25.00
$ 30.00
$ 35.00
1001
$ 5.00
$ 5.00
$ 15.00
$ 20.00
$ 25.00
$ 30.00
$ 35.00
$ 40.00
2500
$ 5.00
$ 5.00
$ 20.00
$ 25.00
$ 30.00
$ 35.00
$ 45.00
$ 50.00

<tbody>
</tbody>


Then, paste this formula into your main calculation sheet - in the example you gave, this would be pasted into cell C2...

Code:
=VLOOKUP(B2,'Payout Table'!$A$2:$I$6,1+(MATCH(A2,'Payout Table'!$B$1:$I$1)))

It seems to give correct payout results. It shouldn't show any errors so long as there is a number in the # Products and Avg Balance cells.

Hope it helps

Jon
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,741
Members
449,050
Latest member
excelknuckles

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