I am attempting to compare multiple items against multiple worksheets, to find out if certain property IDs are interacting with the appropriate item IDs, dependent on a licensing condition.
Examples:
In Worksheet 1, I have a pivot identifying all the unique property IDs. I use a pivot because each property ID will appear multiple times in the data.
That pivot also identifies the unique licensing condition against each property ID. It looks like:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Property IDs[/TD]
[TD]Licensing Condition[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]234[/TD]
[/TR]
[TR]
[TD]CDE[/TD]
[TD="align: right"]345[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: right"]456[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD="align: right"]567[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 has the licensing condition information. Each license lists allowable Item IDs. Unfortunately, it does so individually, and may repeat, like so:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Licensing Condition[/TD]
[TD]Item IDs[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]Item 1[/TD]
[/TR]
</tbody>[/TABLE]
And finally, on the third sheet, I have a data set which has Property IDs, and which Item IDs they interacted with:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Property ID[/TD]
[TD]Item ID[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]Abc[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]bcd[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]CdE[/TD]
[TD]Item 3[/TD]
[/TR]
</tbody>[/TABLE]
My end goal is to identify, per property ID, if there has been an interaction with an Item ID not allowable according to the licensing condition.
To end product would ideally look like:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Property IDs[/TD]
[TD]Licensing Condition[/TD]
[TD]Has an unconditional interaction occurred?[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]123[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]234[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]CDE[/TD]
[TD="align: right"]345[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: right"]456[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD="align: right"]567[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
I'm not sure where to start with this. I've tried:
But that didn't work, and I don't think it was the appropriate route to go down.
Any help is greatly appreciated, and thank you for taking the time to read this far!
Examples:
In Worksheet 1, I have a pivot identifying all the unique property IDs. I use a pivot because each property ID will appear multiple times in the data.
That pivot also identifies the unique licensing condition against each property ID. It looks like:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Property IDs[/TD]
[TD]Licensing Condition[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]123[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]234[/TD]
[/TR]
[TR]
[TD]CDE[/TD]
[TD="align: right"]345[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: right"]456[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD="align: right"]567[/TD]
[/TR]
</tbody>[/TABLE]
Worksheet 2 has the licensing condition information. Each license lists allowable Item IDs. Unfortunately, it does so individually, and may repeat, like so:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Licensing Condition[/TD]
[TD]Item IDs[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD="align: right"]234[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]Item 1[/TD]
[/TR]
</tbody>[/TABLE]
And finally, on the third sheet, I have a data set which has Property IDs, and which Item IDs they interacted with:
[TABLE="class: grid, width: 236"]
<tbody>[TR]
[TD]Property ID[/TD]
[TD]Item ID[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]Abc[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]bcd[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]Item 4[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD]Item 2[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD]Item 3[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD]Item 1[/TD]
[/TR]
[TR]
[TD]CdE[/TD]
[TD]Item 3[/TD]
[/TR]
</tbody>[/TABLE]
My end goal is to identify, per property ID, if there has been an interaction with an Item ID not allowable according to the licensing condition.
To end product would ideally look like:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Property IDs[/TD]
[TD]Licensing Condition[/TD]
[TD]Has an unconditional interaction occurred?[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD="align: right"]123[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]BCD[/TD]
[TD="align: right"]234[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]CDE[/TD]
[TD="align: right"]345[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD="align: right"]456[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]EFG[/TD]
[TD="align: right"]567[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
I'm not sure where to start with this. I've tried:
=SUMPRODUCT(([@[Wksheet 1 Property ID]]=Wksheet 2 [Property ID])*([@[Wksheet 1 Property ID]]=Wksheet 3 [Property ID])*(Wksheet 2 [Item ID]=Wksheet 3[Item ID])*(1))
But that didn't work, and I don't think it was the appropriate route to go down.
Any help is greatly appreciated, and thank you for taking the time to read this far!
Last edited: