Forum Discussion

Mascarello's avatar
Mascarello
Copper Contributor
Jan 19, 2022

return the date that value

Hallo, I need the hightlight column to return the date that value is filled in

 

 

5 Replies

      • PeterBartholomew1's avatar
        PeterBartholomew1
        Silver Contributor

        Mascarello 

        alannavarro 's solution is broadly correct.  Using a different version of Excel, my solutions look somewhat different, but are broadly similar in approach

        = BYROW(amount,
            LAMBDA(a,XLOOKUP(TRUE,ISNUMBER(a),date,""))
          )
        
        
        = XLOOKUP(
            TRUE,
            ISNUMBER(INDEX(amount,@k,)),
            date,
            "")

        What I have done, since you report that the >0 test does not work, is assume that the apparent blank cells in fact have text content.  The ISNUMBER function works in that situation, though a 0 would then cause a wrong result.

Resources