Forum Discussion

sksk2424's avatar
sksk2424
Copper Contributor
Nov 17, 2022

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...
  • Patrick2788's avatar
    Patrick2788
    Nov 17, 2022

    sksk2424 

    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)

Resources