Formula for calculating the value but only if within a range

aimling

New Member
Joined
Jan 30, 2015
Messages
2
Hello, self taught Excel student here, and now I am stuck.

I am trying to make a spreadsheet that automatically calculates my employee's variable commission. I need the cells to calculate the value of the revenue they have made between £17000 and £30000 (col2); between £30000 and £45000 (col3); and £45000 and above (col4).

For example
Person A made £20000 (A1). Her cells would read £3000 (A2); £0 (A3); £0 (A4)
Person B made £35000 (B1). Her cells would read £13000 (B2); £5000 (B3); £0 (B4)
Person C made £47000 (C1). Her cells would read £13000 (C2); £15000 (C3); £2000 (C4).

Can anyone recommend the formula to use?

I've tried SUM IFs which work when the cells falls within the range but then when the consultant's revenue gets higher it, it works within the new range, but the lower range cells starts to miscalculate.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the board!

For A2, try =MAX(0,MIN(A1,30000)-17000)
For A3, =MAX(0,MIN(A1,45000)-30000)
For A4, =MAX(0,A1-45000)
 
Upvote 0
Works beautifully!!! Thank you so much Jason, I was close to getting there by myself as I was debating around needing to cap the figure, I just forgot about the MAX function!

So simple yet so effective! Love it!

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,826
Members
453,377
Latest member
JoyousOne

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