I have a lookup list (but not a table!) with names vertically, and a data table with names (that should be?) in the lookup list horizontally, eg
Lookup List
V
W
X
Y
Z
Table columns (MnthData)
A, V, W, X, Y, Z, where A contains dates in ascending order. The column order may not be the same as the list.
I want to lookup a name in the lookup list eg Z and return the latest value from (last row of) the data table where the header is "Z".
Bearing in mind I have attempted to simplify the example and my formula below, not a bad thing, I end up with
=XLOOKUP($V$9:$V$13,MnthData[[#Headers],{B]:[F]],INDIRECT("B"&COUNT(MnthData[Date])+8):INDIRECT("F"&COUNT(MnthData[Date])+8),"")
+8 because that's where the data in the MnthData data table starts.
This works (at least in my full version of the formula), but I really dislike using INDIRECT(). So I'm looking for a better way of doing it.
I may have messed up simplifying the formula but hope you get the idea.
Lookup List
V
W
X
Y
Z
Table columns (MnthData)
A, V, W, X, Y, Z, where A contains dates in ascending order. The column order may not be the same as the list.
I want to lookup a name in the lookup list eg Z and return the latest value from (last row of) the data table where the header is "Z".
Bearing in mind I have attempted to simplify the example and my formula below, not a bad thing, I end up with
=XLOOKUP($V$9:$V$13,MnthData[[#Headers],{B]:[F]],INDIRECT("B"&COUNT(MnthData[Date])+8):INDIRECT("F"&COUNT(MnthData[Date])+8),"")
+8 because that's where the data in the MnthData data table starts.
This works (at least in my full version of the formula), but I really dislike using INDIRECT(). So I'm looking for a better way of doing it.
I may have messed up simplifying the formula but hope you get the idea.