Well, what I think you are trying to do is return the column number of [weekday]. Assuming weekday is a header in Table1 and lets say it's the 3rd column... using a MATCH formula will return the column number. MATCH("Weekday",Table1[#Headers],0). This will return the value 3, which is what the VLOOKUP is asking for. What's happening there is the match formula is looking in the range of the table header row and looking for the workd weekday. When, it finds it, it returns the column it was in. "0" is used to indicate it needs to be an exact match.
So i think this should work.
Bookmarks