Forum Discussion
TIGER-18
Nov 13, 2023Copper Contributor
highlight duplicates in sheets with 2 criteria
I Have a workbook with multiple sheets and I want to highlight the row if the value in column A "Shipment NO" & column E "SKU" both have been duplicated in other sheets below is what I'm looking for.
Sheet1
| Shipment NO. | Phone NO. | INVO | Material | SKU | Description |
| H/2020/11/135 | 580150569 | 7851038491 | 68828875 | 218245 | YLTB Frsh BW UT 12X300X2g |
| H/2020/10/180 | 580150570 | 7851038495 | 68828875 | 218250 | YL(O2) UT 48X200g |
| H/2020/10/181 | 580150571 | 7851038496 | 68829130 | 218250 | Estb ChargeRoll UT 12X100X2g |
| H/2020/10/182 | 580150572 | 7851038497 | 68828894 | 218250 | YLTB Fresh BW UT 24X150X2g |
| H/2020/10/183 | 580150573 | 7851038498 | 68828875 | 218250 | YLTP (O2) UT 48X200g |
| H/2020/11/140 | 580150574 | 7851038499 | 68828884 | 218250 | YLTB Frsh BW UT 12X300X2g |
| H/2020/11/190 | 580150575 | 7851038500 | 68828884 | 219955 | YLTB Frsh BW UT 12X300X2g |
| H/2020/11/190 | 580150576 | 7851038501 | 68828875 | 218250 | YL Catering TB 2 gm |
| H/2020/11/192 | 580150577 | 7851038502 | 68871880 | 218250 | YLTB Fresh GT UT 24X100X2g |
| H/2020/11/193 | 580150578 | 7851038503 | 68829130 | 218250 | UT 12X100X2g |
Sheet2
| Shipment NO. | Phone NO. | INVO | Material | SKU | Description |
| H/2020/11/135 | 580150569 | 7851038491 | 68828875 | 218245 | YLTB Frsh BW UT 12X300X2g |
| H/2020/11/136 | 580150570 | 7851038495 | 68828875 | 218246 | YL(O2) UT 48X200g |
| H/2020/11/136 | 580150571 | 7851038496 | 68829130 | 218247 | Estb ChargeRoll UT 12X100X2g |
| H/2020/11/136 | 580150572 | 7851038497 | 68828894 | 218248 | YLTB Fresh BW UT 24X150X2g |
| H/2020/11/190 | 580150573 | 7851038498 | 68828875 | 219955 | YLTP (O2) UT 48X200g |
| H/2020/11/100 | 580150574 | 7851038499 | 68828884 | 218250 | YLTB Frsh BW UT 12X300X2g |
| H/2020/11/101 | 580150575 | 7851038500 | 68828884 | 218250 | YLTB Frsh BW UT 12X300X2g |
| H/2020/11/102 | 580150576 | 7851038501 | 68828875 | 218252 | YL Catering TB 2 gm |
| H/2020/11/103 | 580150577 | 7851038502 | 68871880 | 218253 | YLTB Fresh GT UT 24X100X2g |
| H/2020/11/104 | 580150578 | 7851038503 | 68829130 | 218268 | YLTB Fresh GT UT 24X100X2g |
Sheet3
| Shipment NO. | Phone NO. | INVO | Material | SKU | Description |
| H/2022/12/135 | 580150569 | 7851038491 | 68828875 | 218245 | YLTB Frsh BW UT 12X300X2g |
| H/2022/12/136 | 580150570 | 7851038495 | 68828875 | 218246 | YL(O2) UT 48X200g |
| H/2022/12/137 | 580150571 | 7851038496 | 68829130 | 218247 | Estb ChargeRoll UT 12X100X2g |
| H/2022/12/138 | 580150572 | 7851038497 | 68828894 | 218248 | YLTB Fresh BW UT 24X150X2g |
| H/2022/12/139 | 580150573 | 7851038498 | 68828875 | 218249 | YLTP (O2) UT 48X200g |
| H/2020/11/100 | 580150574 | 7851038499 | 68828884 | 218250 | YLTB Frsh BW UT 12X300X2g |
| H/2022/12/141 | 580150575 | 7851038500 | 68828884 | 218250 | YLTB Frsh BW UT 12X300X2g |
| H/2022/12/142 | 580150576 | 7851038501 | 68828875 | 218252 | YL Catering TB 2 gm |
| H/2022/12/143 | 580150577 | 7851038502 | 68871880 | 218253 | YLTB Fresh GT UT 24X100X2g |
| H/2022/12/144 | 580150578 | 7851038503 | 68829130 | 218268 | YLTB Fresh GT UT 24X100X2g |
here is the result of what I'm looking for:
sheet1sheet2sheet3
11 Replies
- peiyezhuBronze ContributorSKU are in column E?
- LorenzoSilver Contributor
Hi TIGER-18
I want to highlight the row if the value in column A "Shipment NO" & column B "SKU" (SKU are in column E)
#1 I have the following row highlighted in Sheet2. Misunderstanding on my side or your mistake?
#2 Are you on Windows with Excel >/= 2016 or on Mac with Excel 365 up to date?
- LorenzoSilver Contributor
Hi TIGER-18
In attached file a Power Query based solution:
- Data in Sheet1-Sheet3 fhttps://support.microsoft.com/en-us/office/format-an-excel-table-6789619f-c889-495c-99c2-2f971c0e2370
- 3 queries - respectively for Sheet1, Sheet2 and Sheet3 - load on SHEET_TO_HIDE (TRUE means a duplicate was found in any of the other 2 sheets/tables)
- Conditional Formatting rules in Sheet1-Sheet3 refer to the 3 tables in SHEET_TO_HIDE
- The 3 queries auto-refresh when the file opens. You can also ask a Refresh by going to Data (tab) > Refresh All. It's also possible to configure the queries to auto-refresh every n minutes if you need...