Forum Discussion

GeorgieAnne's avatar
GeorgieAnne
Iron Contributor
Aug 04, 2024

Gas (Petrol) Prices and how they fluctuate…

Hello Excellers,   I hope you are doing EXCELlent ,   Ever since the "Conflict" in Ukraine I have been tracking the price of gas (petrol) as a project that I am interested in. And once you see th...
  • HansVogelaar's avatar
    HansVogelaar
    Aug 11, 2024

    GeorgieAnne 

    Thanks. The formula

     

    =IF(AND(A2<=A1, A2<A3), LET(r, (A3:A$73<=A2)*ROW(A3:A$73), m, MIN(IF(r>0, r)), IF(m=0, "", m-ROW(A2))), "")

     

    returns the number of days from the last day before an increase to the first date after that with the same or a lower value.

Resources