gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
write the formula for matching two columns if matched then wrute yes
- User
write the formula for matching two columns if matched then wrute yes
- Assistant
To compare two columns in Excel and write "Yes" if the values match, you can use the following formula:
excel=IF(A1=B1, "Yes", "")Explanation:
- Replace
A1andB1with the actual cell references you want to compare. - If the values in the two cells are equal, the formula returns "Yes".
- If they are not equal, it returns an empty string (
"").
You can drag this formula down to compare multiple rows.
- Replace