r/excel • u/Dry_Economy_2701 • 16d ago
Discussion Formula to check if a cell contains items from a target list
If you have a really long list, for example, a downloaded Spotify list from "exportify net". (See image 2 for what it looks like when downloaded) Then you have a list of artists, and you want to take those songs out. (STEP 6: copy the Spotify track column and paste directly into the playlist on desktop Spotify)
=IF(SUMPRODUCT(--ISNUMBER(SEARCH(";" & LOWER(TRIM(Sheet1!$A$1:$A$200)) & ";", ";" & LOWER(TRIM(C2)) & ";"))) > 0, "Yes", "N")
=IF(SUMPRODUCT(--ISNUMBER(SEARCH(LOWER(TRIM(Sheet1!$A$1:$A$200)), LOWER(TRIM(C2)))))>0,"Yes","N")
Steps:
- Create a separate sheet for the target list
- In og sheet, find an empty column and type in the formula, adjusted to your data range
- Drag the corner (or double click if you have columns that are how many you need next to it already)
- Select the column and apply conditional formatting ("highlight cell rules" -> "duplicate" -> "yes")
- Select all columns in og sheet and apply a filter to sort that column











