I have managed to construct a formula that calculates a tiered discount based on the input of two cells (D6 & D7):
=(SUMPRODUCT(--(((D6+D7)/12)>{0,50000,150000,300000,500000,1000000}),--(((D6+D7)/12)-{0,50000,150000,300000,500000,1000000}),{0.55,-0.1,-0.1,-0.1,-0.1,-0.05}))*12
I am now looking to make the formula variable, i.e. rather than using values for bands and the pricing, I would like to reference cells for those values. When I try to replace a value with a cell reference, I get the following error:
There's a problem with this formula
Not trying to type a formula?
When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula:
• you type: =1+1, cell shows: 2
To get around this, type an apostrophe ( ' ) first:
• you type: '=1+1, cell shows: =1+1
Any suggestions?
Bookmarks