Need help with an Excel Formula

Copper Contributor

I need to input a formula into cell B2 that will take the value from A2 and divide it by a set figure if it is less than, equal to or great than a set parameter...

 

example: if the value is in B2 is <10, then /.7, if it is >10 but <30 then /.72, >30 but <60 then /.75, >61 then /.8

3 Replies

@wunderj 

I suggest making a two column lookup table for your divisors. The first column will be the bottom of each bracket, while the second is the corresponding divisor. My lookup table was in cells G2:H5, so I was able to use a VLOOKUP formula in cell B2 like:

=A2/VLOOKUP(A2,G2:H5,2)

image.png

@wunderj You may use below formula in cell B2

 

=IF(A2<10,A2/0.7,IF(A2<30,A2/0.72,IF(A2<60,A2/0.75,A2/0.8)))

 

If Formula.JPG

@wunderj 

Usual question is what it shall be if B2 is equal to 10, or 30, or 60, or 61