Adding a fee for not reaching a minimum value without a circular reference

spongebob

Board Regular
Joined
Oct 25, 2004
Messages
68
Office Version
  1. 2019
Platform
  1. Windows
Hello All,

On an invoice type of spreadsheet we have some rows that get totaled, we can see in my below example that the total is $6.00, however we have a $15.00 minimum
How can I add in the difference in fee ($9) without creating a circular reference?
I have tried a few ways without success.

Sub total5.00
Tax1.00
Minimum Fee
Total6.00

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
How about
+Fluff v2.xlsm
AB
1
2Sub total5
3Tax1
4Minimum Fee15
5Total15
Data
Cell Formulas
RangeFormula
B5B5=MAX(B4,SUM(B2:B3))
 
Upvote 0
Thank you.
I would like the minimum fee to show 0 when there is no fee, people may think it's been added in to the grand total.
 
Upvote 0
Ok, how about
+Fluff v2.xlsm
AB
1
2Sub total5
3Tax1
4Minimum Fee9
5Total15
Data
Cell Formulas
RangeFormula
B4B4=MAX(0,15-SUM(B2:B3))
B5B5=SUM(B2:B4)
 
Upvote 0
Thank you.

It looks like no matter what I do, it's a circular reference.
If I simply make the total have the max function, it will show the correct amount, but it will never have a row reflecting that it's a minimum fee and how much additional that is.
 
Upvote 0
I'm afraid I don't understand, the formulae I showed in post#4 do not involve a circular reference.
If post#4 is not what you are looking for, then please post some sample data of your actual layout, using the XL2BB add-in & include expected results.
 
Upvote 0
I see what is happening.
The SUB is getting the numbers from above, which includes the fee, so visually it's not the same.
And therefore its circular... I have to reorganize that part to be more like the example.
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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