Forum Discussion
sksk2424
Nov 17, 2022Copper Contributor
Dynamic lookup (Index?) function
Hello everyone, my rows contain different KPIs and their values. The columns state the according month of the value entry per KPI (column B-M depict Jan22 to Dec22). Via the LOOKUP function I...
- Nov 17, 2022
This may work for you:
=LET(range,A1:M26,r,XMATCH(TRUE,A:A,1)-1,c,XMATCH(TODAY(),A1:Z1,1),Current,INDEX(range,r,c),Previous,INDEX(range,r,c-1),Current-Previous)
Patrick2788
Silver Contributor
To provide a solution for this request, we're going to need to know what your vertical intersection looks like. The months run left-to-right in columns. Do you have numbers representing days of the month running vertical like this?
Also, if you're using LOOKUP, it suggests you might be on an older version of Excel. Which version do you have?
sksk2424
Nov 17, 2022Copper Contributor
Excel version: Version 2202 Build 16.0.14931.20764 64 Bit
Somehow, I can't send a screenshot...
Vertical/rows: Different KPIs in the first column and the columns after are values regarding the KPI in the respective row and the date stated in the row above. So it is really just a calculation within one row.