Help with excel formula to match data from one sheet to another

Anonymous
2024-10-01T18:31:17+00:00

I am trying to create a formula to search for one cell (for example, in 1st picture 96) anywhere in another sheet (2nd picture). I would like to then apply this formula to all the cells in one column. For example, in sheet1 cell 6, search all of sheet2 column A and if 96 exists in sheet2 then return true or format yellow, etc. Then I would like to do the same formula to for each cell in sheet1: does this cell value exist in sheet2, if so highlight yellow.Using excel 2016, I've tried vlookup but cannot get it to work. Thank you.

Image upload not working. Linked here:

https://files.catbox.moe/3orabd.png

https://files.catbox.moe/c5s2yz.png

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2024-10-02T23:13:18+00:00

    Hi Jason

    You need to remove the $ sign before the 6 in your formula,

    Try the formula

    =ISNUMBER(MATCH(A6,Sheet2!$A$1:$A$10,0))

    Regards

    Jeovany

    1 person found this answer helpful.
    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-10-01T23:04:17+00:00

    Hi Jason

    To highlight the values in Sheet1 that match the ones in Sheet2, you may use Conditional Formatting with the formula rule

    =ISNUMBER(MATCH($A2,Sheet2!$A:$A,0))

    Please, Adapt the formula according to your real scenario

    Do let me know if you need more help

    Regards

    Jeovany

    0 comments No comments
  2. Anonymous
    2024-10-02T03:06:38+00:00

    =COUNTIF(Sheet2!A:A,Sheet1!A2)

    If you want to show True or False

    =COUNTIF(Sheet2!A:A,Sheet1!A2)>0

    If you just want to show True for exist value.

    =IF(COUNTIF(Sheet2!A:A,Sheet1!A2),TRUE,"")

    0 comments No comments
  3. Anonymous
    2024-10-02T21:12:59+00:00

    Thanks for your help. I think it seems to be working. This is what I made: =ISNUMBER(MATCH($A$6,Sheet2!$A$1:$A$10,0))

    However if I try to click the bottom right of the cell (black crosshair) and drag it down to replicate it for the other corresponding values (for example does A7 exist in Sheet2, does A8 exist, etc.), it just repeats the same rule but adds "applies to" my selection. I would like it to replace A6 with A7, etc. when I drag the crosshair down. Is there a way to do that?

    0 comments No comments
  4. Anonymous
    2024-10-03T11:49:33+00:00

    I think it's working, thank you!!! Do you know how to have it also put a word in the cell if the value is found? For example, if the cell value is found in sheet 2 return the word TRUE and highlight yellow? I got it to fill/highlight the blank cell. Thank you again.

    0 comments No comments