Formula to calculate contact base with 20% threshold credit or bill

HColeman

New Member
Joined
Sep 9, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a contract base price of $4.00 with a 20%threshold to credit or bill customer if the actual price of a product is 20% less or greater than the contact base price. The amount to bill the customer will be the difference of the 20% threshold amount and actual price. I need a formula to calculate this.

If I put the contract base price of $4.00, in cell C3
And, the actual purchase price of $5.25 in cell C4
What formula can I use to calculate the billable amount above or below the threshold amount?

Example:

Base Price $4.00
Purchase Price $5.25
That is 20% greater than the base price.
I need the formula to calculate $5.25 - $4.80
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
T202209a.xlsm
ABCD
1
2
3Contract4.0020%
4Actual5.25
5Difference0.45
6
3a
Cell Formulas
RangeFormula
C5C5=C4-C3*(1+D3)
 
Upvote 0
The formula does given above works if the amount is greater than the 20% threshold, but does not work if it is less than the 20% threshold. I need for the formula to calculate both ways.

Example 1 Greater than the 20% threshold:
Base Price $4.00
Purchase Price $5.25
20% Above Threshold - Anything above $4.80
Difference .45

Example 2 Less than the 20% threshold
Base Price $4.00
Purchase Price $3.00
20% Below Threshold - Anything Below $3.20
Difference (.20)

What formula would I use to calculate both? I think it would be an IF formula, but not sure what.
 
Upvote 0
What formula did you try?


T202209a.xlsm
ABCD
1
2
3Contract4.0020%
4Actual5.25
5Difference0.45
6
3a
Cell Formulas
RangeFormula
C5C5=IF(C4>C3,C4-C3*(1+D3),C4-C3*(1-D3))
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,835
Members
449,471
Latest member
lachbee

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