DIGIT-ARC read-only archive · snapshot: July 23, 2026

Help with the IF Function in Excel

4 posts · originally from https://geek.digit.in/community/threads/help-with-the-if-function-in-excel.34619/

H
h1ghn3zz Original post #1
Aug 21, 2006 at 10:50 PM
Suppose i wanna use a formula for the following example, how would i go about it?

Column1 - Column2
------------------
<1000----------NIL
1000-2000----------220
2000-3000----------330
..............
10000-11000----------100 etc.

When i enter the values in column1, column2 should show the values according to what has been entered in column1.

Thnx
MysticHalo
Aug 21, 2006 at 11:49 PM
I did this using Office 2007 Beta 2...but i hope the working remains same-:
>>syntax

=if(logical_test,[value_if_true],[value_if_false])

So, for your case, we go like this-:
(in column 2)
=IF(AND(A1<3000,A1>2000),330,IF(AND(A1<2000,A1>1000),230,"xyz")


*(AND SO ON)
S
Aug 22, 2006 at 6:36 AM
You would not need to use AND operator because of nested if.

IF(A1<1000, 0, IF(A1<2000,220,IF(A1<3000,330,IF(...))))

Arun
H
Aug 22, 2006 at 9:36 AM
Thank you both MysticHalo and sakumar79. MysticHalo's suggestion seems to be more useful because i need to 'nest' more than 7 arguments.

Thanks again, guys.