Forum Discussion

Edward_Ndambala's avatar
Edward_Ndambala
Copper Contributor
May 01, 2024
Solved

EXCEL FORMULAS

Hey everyone.   I have daily data which excludes weekend and public holidays. When i want to do an annual percentage change calculation, one of the dates could possibly be weekend or public holiday...
  • HansVogelaar's avatar
    HansVogelaar
    May 02, 2024

    Edward_Ndambala 

    Let's say you have a range named Holidays that lists public holidays.

    And let's say you want to compare Net Asset Value (column C) with the previous year.

    For row 2, the previous year's value is

     

    INDEX($C$2:$C$5000, XMATCH(1, ($B$2:$B$5000=$B2)*($L$2:$L$5000=WORKDAY(EDATE($L2, -12)+1, -1, Holidays))))

     

    So the increase/decrease is

     

    =C2/INDEX($C$2:$C$5000, XMATCH(1, ($B$2:$B$5000=$B2)*($L$2:$L$5000=WORKDAY(EDATE($L2, -12)+1, -1, Holidays))))-1

Resources