Highlighting duplicate data based on two conditions
Comments
-
@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?
-
This content has been removed.
-
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?
-
This content has been removed.
-
This content has been removed.
-
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"?
-
This content has been removed.
-
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, ..........................................................
-
This content has been removed.
-
You need an @row reference after the [ID#] column reference.
=IF(CONTAINS([ID#]@row; {DRINV ID# }) = true; 1)
-
This content has been removed.
-
How did you create your cross sheet reference? I notice a space between "ID#" and the closing curly bracket. Does that belong there?
-
This content has been removed.
-
Make sure you are following the proper steps to create the cross sheet reference.
-
This content has been removed.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!