Apr 26 2024 05:41 AM
I am trying to lookup the value in cell A2 in column H and return a Yes if that value is in Column H and a No if it is not. I have tried using the below formulas, but it keeps returning "No" on values I can clearly see are in Column H. I have tried to change the formatting of both columns, but still no luck.
=IF(COUNTIF(H:H,A2)>0,"Yes","No")
=IF(ISNUMBER(MATCH(A2,H:H,0)),"Yes","No")
Apr 26 2024 05:53 AM
@dantegarzia Can you show what you have in A2 and column H? Looks may deceive and what you see as same values may be seen by Excel as different values.
Apr 26 2024 06:04 AM
@Riny_van_Eekelen This is what the data looks like using the IF COUNTIF formula I mentioned. As you can see it returns no, even though that value is in column H
Apr 26 2024 06:09 AM - edited Apr 26 2024 06:10 AM
@dantegarzia Enter this in an empty cell:
=A10=H14 (assuming these are the cell that you marked in yellow)
What do you get?
Apr 26 2024 06:11 AM
Apr 26 2024 06:14 AM
@dantegarzia Then they don't contain the same values. would need to guess without seeing the file. Can you upload it to Onedrive or similar and post a link here?
Apr 26 2024 06:17 AM
Apr 26 2024 06:20 AM - edited Apr 26 2024 06:21 AM
Yes! Copying from different sources can cause such side effects. Especially when the copy and paste from the web is involved at some stage.
Apr 26 2024 06:23 AM
Apr 26 2024 06:27 AM
@dantegarzia Can't tell without knowing what's causing this. Sorry.
Apr 26 2024 07:58 AM