Have a look at the attached.
First somewhere on the side, list all the sheets involved. I listed them in Q5:Q11, for example.
Then in R5 I entered formula:
=IF(INDIRECT("'"&$Q5&"'!D32")="Obradi",INDIRECT("'"&$Q5&"'!A21"),"")
and copied down. This looks at the sheet which is named in Q5 and sees if Obradi is in D32, and if it is it returns the "green" dimension otherwise it remains blank.
Note: You may have to change the some references because some of your sheets have the "yellow", "green" and/or "red" cells in different locations.
You can copy that formula down.
The formulas in the next 2 columns are similar, but they get back the "yellow" and "red" data:
Now in the main table, to get the Sheetnames that have dimensional info, into columns B:D, you have to unmerge the column, so I recommend you delete C and D and just make B wider and center the text....
Then in B17 you enter:
=IFERROR(INDEX(O$5:O$11,SMALL(IF(ISNUMBER(P$5:P$11),ROW(O$5:O$11)-ROW(O$5)+1),ROWS($A$1:$A1))),"")
This is an array formula and you have to hold the CTRL and SHIFT keys down before pressing ENTER so that the { } brackets appear, then you can copy the formula down.
To get the "green" info, it is a similar array entered formula:
=IFERROR(INDEX(R$5:R$11,SMALL(IF(ISNUMBER(R$5:R$11),ROW(R$5:R$11)-ROW(R$5)+1),ROWS($A$1:$A1))),"")
Then "yellow" and "red" columns would be similar.
Bookmarks