Problem: I need to summarize hundreds of sheets that all contain the same column header but are not always on the same column number. Is there a smart way to get the column for a range based on what the header row says (always row 2)?
=COUNTIFS((importrange(B2, "Form Responses 1!Q3:Q")),"YES",(importrange(B2, "Form Responses 1!Y3:Y")),"")Essentially this would summarize the quantity of pending items on a sheet for my team. Checks if the line item is approved to action and the status of it being actioned.
where B2 is the link of the targeted spreadsheetwhere Q is the indication that a form response requires action (need to be dynamic based on header name "Approved")where Y is the indication that that line item has been actioned (need to be dynamic based on header name "Task")