My test data is below
id clin_cpt pb_cpt
1 123 123
2 122 121
2 123 122
I’m trying to build a conditional format that will highlight the clin_cpt row, if that clin_cpt value is in the pb_cpt column for the same id. So in this case the clin_cpt (123) for id 1 would be highlighted because the same value is in id1 pb_cpt.
For id2 the clin_cpt of 122 would also be highlighted as it matches the pb_cpt value on the next row (but it is the same id). Yes there will be some duplicate id’s.
I was thinking this would be perfect as a conditional formatting for a break section (id) but could not figure out how to do it. Is this possible?
Highlighting id 1 is a basic rule - clint_cpt = pb_cpt as you may have already discovered.
What has caused the two rows to produce what they have for id2? I’d expect a Cartesian product of
2 122 121
2 123 122
2 122 122
2 123 121
instead of what you’ve put below.
I’m comparing the primary clinical cpt code versus the primary professional billed cpt code, then the secondary of each and so on. So an id might have multiples of each code.
The tables I’m pulling from have numerous other fields, but for this request I’m only returning the id, clinical cpt code, professional billed cpt code and the surgery date. In my example I left the date out as I was just trying to simplify the example.