Forum Discussion

KalyanPrasad's avatar
KalyanPrasad
Copper Contributor
Aug 19, 2024
Solved

I need to return a value corresponding to date

Hello,    my input data says this. Before 01-August, the administration of City 1 was overseen & supported by State 1 After 10th-August, City 1 was supported by State2, and from date 20th-...
  • SergeiBaklan's avatar
    Aug 19, 2024

    KalyanPrasad 

    As variant

    =INDEX( XLOOKUP([@Date], 1*DROP(Source[#Headers],,1),DROP(Source,,1),,-1),
            XMATCH([@City],Source[City] ) )

Resources