Excel में IF Function कैसे इस्तेमाल करें (Decision के लिए)
Read this guide in: English · मराठी · हिंदी
IF function test TRUE हो तो एक result, FALSE हो तो दूसरा — shop sheet पर High/Low या Pass/Fail labels के लिए perfect।
दोस्तों, Amount देखकर “High” या “Low” लिखना है? IF decide करता है। Dashboards और shop trackers को status words चाहिए, सिर्फ़ numbers नहीं। एक test, दो outcomes, fill down।
संक्षिप्त उत्तर
Vertical steps:
- Rule तय करो (जैसे Amount ≥ 100 → High)।
- Amount के बगल status cell क्लिक करो।
=IF(B2>=100,"High","Low")टाइप करो।- Enter।
- Column fill down।
- Number बदलो — label flip होगा।
=IF(B2>=100,"High","Low")
Language: English · मराठी · हिंदी
Before और after
Before
| City | Amount |
|---|---|
| Mumbai | 150 |
| Pune | 80 |
After (Status column)
| City | Amount | Status |
|---|---|---|
| Mumbai | 150 | High |
| Pune | 80 | Low |
Before
आधी (Before)
पहले (Before)
After
नंतर (After)
बाद में (After)
IF क्यों इस्तेमाल करें?
- कभी managers High/Low raw rupees से तेज़ पढ़ते हैं।
- Marks पर Pass/Fail — वही pattern।
- Phone-bill style: bill ≥ 1000 → “Over budget”, else “OK”।
IF क्या है?
IF एक logical test चलाता है। TRUE → दूसरा argument। FALSE → तीसरा argument।
Formula parts
=IF(B2>=100,"High","Low")
B2>=100— test।"High"— true हो तो (text को quotes)।"Low"— false हो तो।
क्या होता है (tiny numbers)
- Mumbai row: 150 ≥ 100 → TRUE → High।
- Pune row: 80 ≥ 100 → FALSE → Low।
- Excel Amount नहीं बदलता; सिर्फ़ label लिखता है।
Vertical practice steps
- दो rows के लिए City + Amount।
- C2 में IF formula।
- C3 तक fill।
- Pune 120 करो → High।
- Pass/Fail: marks पर
=IF(C2>=35,"Pass","Fail")। - बाद में: nested IF या IFS तीन bands (course)।
Nested IF — सिर्फ़ preview
=IF(B2>=150,"Elite",IF(B2>=100,"High","Low"))
- Nested में ऊपर से पहला true जीतता है।
- तीन levels से ज़्यादा → Excel में IFS prefer करो।
Ravindra Bagale's Tip
Text results को quotes। Thresholds के numbers अक्सर बिना quotes। छात्र "100" text और numeric Amount मिलाते हैं — test “टूटा” लगता है। Types एक बार जाँचो।
Practice task
- पाँच shop rows Amount के साथ।
- Status IF ≥ 100।
- दूसरी sheet पर marks Pass/Fail।
- Threshold G1 में रखो;
B2>=$G$1इस्तेमाल करो।
Learn it properly
Related guides: SUMIF/SUMIFS · COUNTIF/COUNTIFS · VLOOKUP
Samajla ka? IF = test, then, else. High/Low और Pass/Fail एक ही idea। आगे SUMIF try करो।
Frequently asked questions
What does IF do?
IF runs a logical test. If TRUE it returns the second argument; if FALSE it returns the third.
Basic IF syntax?
IF(logical_test, value_if_true, value_if_false). Quotes around text results.
Pass/Fail example?
IF(C2>=35,"Pass","Fail") for a marks sheet — same idea as High/Low on sales.
When do I nest IF?
When you need more than two outcomes. Prefer IFS in newer Excel when available.
IF shows FALSE unexpectedly?
Often a missing else value, or the test never matches because of text vs number.
Course lesson?
Chapter 3 — IF, nested IF and IFS. Linked below.