I have 2sheets, sheet A and Sheet B, for Vlookup in excel-Sheet B i need unique id for that i need to concatenate multiple cells and Pivot the concatenated column so that if any duplicates that will be combined and will get desired output and now with this pivot output i have to lookup in Sheet A if it is found then that row should fill with Green color.
Sheet A
Name
Date
Shares
Concetanate
A
6/30/2023
200
A30/06/2023 200
B
6/30/2023
300
B30/06/2023 300
C
6/30/2023
400
C30/06/2023 400
Sheet B
Name
Date
Shares
Concatenate
X
6/30/2023
200
X30/06/2023 200
Y
6/30/2023
300
Y30/06/2023 300
C
6/30/2023
400
C30/06/2023 400
so in the above example column 4 is concatenated one using col 1,2,3 once done we need to create Pivot and with this Pivot will lookup in Sheet A if match found then should highlight in green In this case “C” is there in both sheets.
Inside the second for each use if codnition with SheetAcurrentRow.ByField("Column1").StringValue = SheetBcurrentRow.ByField("Column1").StringValue and SheetAcurrentRow.ByField("Column2").StringValue = SheetBcurrentRow.ByField("Column2").StringValue and SheetAcurrentRow.ByField("Column3").StringValue = SheetBcurrentRow.ByField("Column3").StringValue
On then side use format cell and give SheetAcurrentRow and in format select green color