excel
Yes, ✅ you can do this directly in Excel using a formula — no code or external tool required.
Here’s how you can achieve the same logic using a formula in Column N of the "Icon Tracker" sheet:
π§ What You Want:
For each row:
- Check if value in Column M exists in Column G of the "ICON management" sheet.
- If not found and the value is not
"NA"
, show:
"Icon not present in management Sheet"
. - If value is
"NA"
→ leave blank.
✅ Excel Formula for Column N (e.g., N2):
=IF(OR(M2="NA", ISNUMBER(MATCH(M2, 'ICON management'!G:G, 0))), "", "Icon not present in management Sheet")
π‘ Explanation:
Part | Meaning |
---|---|
M2="NA" |
Checks if current row's value in Column M is "NA" (case-sensitive, use LOWER() for case-insensitive). |
MATCH(M2, 'ICON management'!G:G, 0) |
Looks for M2's value in Column G of "ICON management". Returns row number if found. |
ISNUMBER(...) |
If MATCH returns a number → the value was found. |
OR(...) |
If either condition is true → leave cell empty. |
"Icon not present in management Sheet" |
Shown if value not found and not "NA". |
π Steps:
- Open the "Icon Tracker" sheet.
- Go to cell N2.
- Paste the formula:
=IF(OR(M2="NA", ISNUMBER(MATCH(M2, 'ICON management'!G:G, 0))), "", "Icon not present in management Sheet")
- Drag it down to fill all rows in Column N.
π Optional: Make it Case-Insensitive for "NA"
Use:
=IF(OR(LOWER(M2)="na", ISNUMBER(MATCH(M2, 'ICON management'!G:G, 0))), "", "Icon not present in management Sheet")
Let me know if you want to:
- Highlight unmatched rows with conditional formatting.
- Filter or count unmatched rows.
Excel is powerful — you can absolutely do this without coding!
Comments
Post a Comment