Highlighting duplicate data based on two conditions

24

Comments

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    @director62476 What do you mean by "does not work"? Is it generating an error or unexpected results?


    I am not sure I understand your question though...


    You have 11 sheets. The main sheet plus 10 others. You want a formula on each of the 10 sheets that will flag if the ID is found in the main sheet?

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Ah. Ok. My apologies. I forgot that you needed semicolons. Try changing it and see if that corrects the issue.


    Never be shy about asking for help. All that does is make it even longer before you can get some help. No judgement here.


    New Request: I am still not sure I follow. You want a formula on all 10 sheets to tell you if an ID is on any of the other 9?

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭
    edited 02/07/20

    Ok. So let's just go ahead and start on sheet 1...


    Would you like it to tell you which sheet(s) the other name is so that you can narrow down your search?


    For example: The ID# is found on Sheets 3 and 8. Would you want it to just check a box or flag a cell, or would you rather see "Sheet 3 and Sheet 8"?

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    You won't necessarily have to remove it. You could either add to it so that the same flag appears for dups on the same sheet or the others, you could add another flag column to differentiate between same sheet vs others, or you could even add in a column for each sheet to flag. The main difference is going to be how many columns you want to use.


    Here's the basics...


    =CONTAINS([ID#], {Sheet 2 ID# Column})


    Since CONTAINS is a true/false, it will flag if true or leave blank if false. Using this logic, you can create a nested IF to have one column flagged if it is found in one or more other sheets, drop the formula as-is into it's own column (one column for each sheet) to flag which sheet(s) you are looking for, or add the nested IF to your current dup formula to have same sheet and other sheets all flagged in the same column.


    Nested IF example:

    =IF(CONTAINS([ID#], {Sheet 2 ID# Column}) = true, 1, IF(CONTAINS([ID#], {Sheet 3 ID# Column}) = true, 1, IF(CONTAINS([ID#], {Sheet 4 ID# Column}) = true, 1, ..........................................................

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    You need an @row reference after the [ID#] column reference.


    =IF(CONTAINS([ID#]@row; {DRINV ID# }) = true; 1)

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    How did you create your cross sheet reference? I notice a space between "ID#" and the closing curly bracket. Does that belong there?

    thinkspi.com

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Make sure you are following the proper steps to create the cross sheet reference.

    thinkspi.com

Sign In or Register to comment.