So I’ve put together a spreadsheet tracking one of my fantasy baseball leagues. (I know what you’re thinking, and the answer is yes, I’m very popular at parties.)
So each week I pull in the rankings and underlying stats (or at least, I have since week 8). Today, I created a dynamic chart that changes based on the particular stat I want to look at. The problem is that I have no idea how it works. Let me try to recreate it with a little less noise:
The filter I understand. I want to pull the number of runs (“”) from Team A (“RawData!B:B”) in Week 1 (“RawData!A:A). The MATCH portion figures out which column in RawData the drop down is referring to. The QUERY/SELECT/SUBSTITUTE turns the match (when isolated, returns the letter of the column) into a column designation, but I don’t know HOW it does that.
I’m not sure what you mean by ‘column designation’, but I’m going to assume you mean A, B, C …
The ADDRESS function returns a cell address in the form of a text. In this case that’s going to be row 1, & whatever column is returned by MATCH. You say MATCH returns the letter of the column, so let’s say ADDRESS returns C1.
As I read your formula, SUBSTITUTE will then search cell C1 for a ‘1’, substitute a blank (“”) for that 1, leaving a ‘C’. Since you say the column letter was returned by MATCH, this would be a whole set of unnecessary steps so I’m probably misunderstanding the question. And it’s been a while since I programmed in Google, so I may be overlooking something. But I enjoyed trying to puzzle it out so I’ll post this anyway.
I don’t believe you have copied the formula correctly.
MATCH function only looks at a single row or column, you have it searching in A1:D5. As written it should return an N/A
The FILTER portion of your formula is superfluous.
You are filtering the output of a QUERY function, the query function is capable of filtering, sorting, aggregating, etc.