Max formula for multiple columns

david col

New Member
Joined
Aug 27, 2016
Messages
14
Hi
I have a sheet where I am looking for a formula to add to C14,D14,E14,F14.G14 & H14 to calculate 15% of C13,D13,E13,F13,G13 & H13 up to a limit e.g. the maximum is 20,000 over a few months month. E.G if profit is sufficient in cells C14,D14 & E14 or any combination of columns where 15|% of the total exceeds the 20,000, I need the last column to just result in the balance e.g. if only say 5,000 owing at column E is then E14 would result just 5,000 and the remaining cells F14,G14 & H14 would need to result in zero. Similarly if C14 happened to result in the full 20,000, all other cells D14, E14 etc would result in Zero.

Image attached.

Any help with this is appreciated thanks.

I am using Excel 2010.

Screenshot 2021-04-18 at 20.14.18.png
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

You probably should have shown Expected Results in C14:H14 to help clarify your description...
Is this what your want, formula requires B14 to be Blank.

Book3.xlsx
ABCDEFGH
1
2
3Loan15000Payback15%of Profit Monthly
4
5
6
7
8
9
10
11
12
13200002500021000370002700042000
14300037503150510000
Sheet922
Cell Formulas
RangeFormula
C14:H14C14=IF(SUM($B14:B14,C13*$F3)>=$C3,$C3-SUM($B14:B14),C13*$F3)
 
Upvote 0
Solution
Hi,

You probably should have shown Expected Results in C14:H14 to help clarify your description...
Is this what your want, formula requires B14 to be Blank.

Book3.xlsx
ABCDEFGH
1
2
3Loan15000Payback15%of Profit Monthly
4
5
6
7
8
9
10
11
12
13200002500021000370002700042000
14300037503150510000
Sheet922
Cell Formulas
RangeFormula
C14:H14C14=IF(SUM($B14:B14,C13*$F3)>=$C3,$C3-SUM($B14:B14),C13*$F3)
Fantastic that is spot on .. Many thanks I do appreciate the help
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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