return the date that value

%3CLINGO-SUB%20id%3D%22lingo-sub-3066427%22%20slang%3D%22en-US%22%3Ereturn%20the%20date%20that%20value%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3066427%22%20slang%3D%22en-US%22%3E%3CP%3EHallo%2C%20I%20need%20the%20hightlight%20column%20to%20return%20the%20date%20that%20value%20is%20filled%20in%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mascarello_0-1642631365873.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F340840iAD659E4E60E7BE6C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Mascarello_0-1642631365873.png%22%20alt%3D%22Mascarello_0-1642631365873.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3066427%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

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

Mascarello_0-1642633066602.png

 

 

5 Replies

@Mascarello 

 

Hello, hope this formula works.

 

=INDEX($B$1:$M$1,1,MATCH(TRUE,B2:M2>0,0))

 

alannavarro_0-1642640461348.png

 

Didnt work@alannavarro 

Mascarello_0-1642718920492.png

 

@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.

On the blank cells I have a formula to calculate the value.And I dont have able the functions, Byrow and Lambda. And also I cant enable these functions. I took out the formulas of the blank cell, and the @alannavarro´s solution works correctly.

I am glad your problem is sorted. The two solutions I produced are for Excel 365 insider and Excel 2019 respectively. I need a lot of practice in order to use the new functionality to its maximum effectiveness.
My formulas were intended to work despite the apparent blanks having content but, since you are able to clear them out, that will do the job.