Link to home
Start Free TrialLog in
Avatar of exp vg
exp vg

asked on

Excel - Nested If

Please offer why the following is not working:

=IF(I2<2000,"$2000",IF(2000<=I2<=6000,I2,IF(I2>6000,"$6000")))

Basically, if the amount is below 2000, the resulting output is 2000.

If the value is >= 2000 and <= 6000, the value is from cell I2

If the value is greater than 6000, the resulting output will be 6000.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Anwar Saiah
Anwar Saiah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of exp vg
exp vg

ASKER

Thank you.
Although the question is closed a simpler approach could be

=max(min(i2,"$6000"),"$2000")
Avatar of exp vg

ASKER

Thank you Saqib