Can you use the formula in one cell as a variable in formulas in other cells?

Copper Contributor

PayPal is changing their fee calculation (was 2.9%+$0.30, becoming 2.89%+$0.49)

Aside from the fact that it seriously eats into my profit margin >:(   I need to adjust my spreadsheet with all my product costs & pricing.  As is, I have the fee deducted from each item individually, but I was wondering if there's a way to set the fee formula in a single cell, then reference that cell in the formula in all other cells.  That way, if the fee changes again, I only have to change that one cell with the fee formula instead of changing every profit margin cell across the entire sheet.

Here's my standard formula for calculating profit margin:

=(N9-K9)-((N9*0.029)+0.3)

N=sell price

K=my cost

1 Reply
Yes, you could put those values in separate cells, then name the cells using the name box in the top left of the worksheet (or use name manager under formulas tab). So, if you named the cells PPFeeVar and PPFeeFix (or whatever your preference), then your formula is:

=(N9-K9)-((N9*PPFeeVar)+PPFeeFix)

If you have lambda feature (or if/when you get it), then you could set up a lambda to do the calculation and just pass the sell price to your lambda formula (I don't have that feature, so can't tell you how to set it up).