Is there a way to use RC notation in the IMPORTRANGE function? What I need to do is to import a certain column, which I'm finding using MATCH in the first row (headers)
=importrange("linktosheet","sheet!c" & match(importrange("linktosheet","sheet!1:1"),"headername") )
<- which would return the n-th column
I tried to use CHAR to get the column letter from the MATCH value, but it means I have to repeat the MATCH function twice; plus, it works up to column Z; I would need to add another function to do two-letter columns.
Another way would be to use hlookup or something, but I'm afraid that would be very inefficient.
offset_rows = 0
,offset_columns = your match() result
andwidth = 1
?