A note for me how this works:
=XLOOKUP( Search criterion; Search Array; Result Array; Result if not found; Match Mode; Search Mode)
Will search for a value in the given search area and (depending on the search mode) will return a certain value from the search area.
- Search criterion: Value of TODAY()
- Search Array: Where the result will be searched for
- Result Array: “reference of the array or range to return” (so min and max values?)
- Result if not found: Value if lookup fails (Not used here)
- Match Mode: Type of match (1 = “attempt exact match. If Search criterion value is not found, then return the next larger item.”)
- Search Mode: How the value is looked up in the Search Array (Not used here)
=XLOOKUP(TODAY();A1:A50;A1:A50;;1)
This will search for the value of TODAY() in area A1:A50 with min and max values of A1:A50, does nothing if it fails and will return the value searched for (TODAY) or the next higher value.
Source: XLOOKUP Function (from help.libreoffice.org)