I have a sheet where I'm tracking revisions which could affect up to 4 parts, and I'm trying to figure out the best formula for cells A2:D2 to do the following:
- Get the part name to search for from the cell above
- Search range G2:AL2 for the first match of the part name which also has a checkmark in the cell directly to the left of it
- Return the revision number displayed in the corresponding merged header cell in Row G1:AL1 above it
In my example, the formula in Cell C2 would search for the name "PART C" in range G2:AL2 with a checked checkbox to its right, and would find the first match in cell T2 with the header value of "02", so Cell C2 would display "02".

