You either need to hardcode the tabs into the formula, or use indirect to make ti where you create a list of tab names and the formula uses that to populate it. I’m not sure of any easy way to use a formula to look across sheets without VBA. You’d need to insert a formula that givevs you the worksheet name in the same spot in each worksheet to make this easy
I don’t know if there is a built-in way to do this.
I suppose you could make a big dynamic array of all the Workbook B fields, and then perform a lookup on this array. You would have to manually construct the array once, though.
Otherwise, you could use a macro or custom function, where you loop a lookup across workbook names defined in some list.
If you can add the name within the same cell of each tab im sure you could use a sumif across the tabs that pulls a binary reference (if equal then 1, if not =0) that will allow you to reference the tab’s name.
Probably a lot of work but if you’re reusing this file then probably not a waste of time.