Forum Discussion

cheo_fpc's avatar
cheo_fpc
Copper Contributor
Oct 29, 2021
Solved

finding the max date per unique id and return value in certain column

Hello,

 

Hope someone can help I have the below.

I want to find the latest date per each unique ID and return the corresponding status.

 

In this case 

A = inbound

B = complete

 

IDDateStatus
A1-Jancomplete
A2-Janempty
A3-Janinbound
B1-Janempty
B2-Jancomplete

6 Replies

  • cheo_fpc 

    =INDEX($B$2:$C$6,MATCH(E2&LARGE(IF($A$2:$A$6=E2,$B$2:$B$6),1),$A$2:$A$6&$B$2:$B$6,0),2)

    Enter above formula as arrayformula with ctrl+shift+enter and unique IDs in E2 and E3 and copy formula down.

     

    Is this the formula you are looking for?

    • cheo_fpc's avatar
      cheo_fpc
      Copper Contributor
      this is great. I forgot to mention my data set is in a table will it still work?

Resources