I would suggest that you create a small table somewhere which contains
your cut-offs, factors and comparison values, as follows:
0 0.36 217.80
751 0.32 275.20
1001 0.30 332.65
and so on for your seven conditions. I'm not sure if your first value
should be 100, as this is shown in your formula. Suppose this table is
located from X1 to Z7 on the same sheet. I imagine that F17 contains
the number to be acted upon, so try this formula:
=MAX(F17*VLOOKUP(F17,X$1:Z$7,2,1),VLOOKUP(F17,X$1:Z$7,3,1))
If the first value in your table is 100, you don't specify what you
want to do if F17 is less than this.
The formula can be copied down if you have other values in column F.
Hope this helps.
Pete
lokideviluk wrote:
|