Nest multiple IFs if you want different results based on different values in the same cell

cindygo

New Member
Joined
Nov 30, 2010
Messages
40
I can’t seem to figure this out.

There are only 4 different contracts offered. Depending on the contract signed the commissions is based on if there is a balance owing. For three of the contracts this is true, for the fourth the commission is always the same regardless of PIF. Example:

Contract Commission
$ 5,995.00 If PIF $525, If any balance owing $225
$ 7,990.00 If PIF $700, If any balance owing $300
$ 9,985.00 If PIF $875, If any balance owing $375
$ 1,195.00 Always $125

The spreadsheet has a row for each sale. The commission (D) should calculate from what is entered in (B) and (C).

A B C D
1 Name Contract Balance Owing Commission
2 Client 1 $ 5,995.00 $ - $ 525.00
3 Client 2 $ 5,995.00 $ 4,000.00 $ 225.00
4 Client 3 $ 7,990.00 $ - $ 700.00
5 Client 4 $ 7,990.00 $ 6,950.00 $ 300.00
6 Client 5 $ 9,985.00 $ - $ 875.00
7 Client 6 $ 9,985.00 $ 3,000.00 $ 375.00
8 Client 7 $ 1,195.00 $ - $ 125.00
9 Client 8 $ 1,195.00 $ 1,195.00 $ 125.00

As always, thanks for your help!
Cindy
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
A bit unwieldy but it does the trick...

Excel Workbook
ABCD
1NameContractBalance OwingCommission
2159950525
3259954000225
4379900700
5479906950300
6599850775
7699853000375
8711950125
9811951195125
Sheet1


EDIT - a more efficient solution would be to have separate tables which hold details of contract size and commission payable, and then use INDEX and MATCH to retrieve the correct result.
 
Upvote 0
Not what I thought it would look like but it works perfectly! I understand the idea of separate tables but this will work for this project.
Thanks for your help Neil!
Cindy
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

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