gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
give formula if column have a specific url then put yes
- User
give formula if column have a specific url then put yes
- Assistant
If you want to check if a cell in a column contains a specific URL and then return "Yes" if it does, you can use the IF and SEARCH (or FIND) functions in Excel or Google Sheets.
Example:
Assuming your URLs are in column A, and you want to check if the URL contains
"example.com", you can put this formula in column B:excel=IF(ISNUMBER(SEARCH("example.com", A1)), "Yes", "")Explanation:
SEARCH("example.com", A1): looks for the substring"example.com"inside the text in cell A1. It returns a number if found (position), or an error if not found.ISNUMBER(...): returns TRUE ifSEARCHfound the substring (because then it returns a number).IF(..., "Yes", ""): ifISNUMBERis TRUE, output "Yes". Otherwise, output an empty string.
If you want to check exact match (the entire cell is exactly the URL):
excel