Forum Discussion
RedRobin
May 04, 2019Copper Contributor
Excel Formulas and Functions
I'm creating a spreadsheet to help keep logs of jobs I do daily and weekly. I need a formula to add rows in a column, then subtract a certain amount as long as the amount is over a certain amount.. ...
PeterBartholomew1
May 07, 2019Silver Contributor
There is nothing wrong with an IF statement; it makes the intent of the formula clear. I am less enthusiastic about hard-wiring dollar amounts into the formula.
Also, since you are likely to append data to your table, a dynamic references would be useful for creating totals. From 2007, the preferred way of doing this is through the use of a Table. The formula for Adjusted Amount might then read
= [@Amount] - IF( [@Amount]>51, 14, 6)
It is also possible to use LOOKUP to determine discounts, bonus rates etc. that vary as one moves between threshold values. For example
= LOOKUP([@Amount], AdjustmentTable)
This is illustrated in the attachment.