Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to build this QUERY getting the latest entry based on a time stamp?

So I am trying to get the latest entry based on a column containing the timestamp, but I’m not getting my head around getting that entry without necessarily selecting that column.

G Sheets Sample data

Appreciate your help very much!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

try:

=INDEX(IFNA(VLOOKUP(B5:B&C5:C&D5:D; 
 SORT({'From this sheet'!G2:G&'From this sheet'!H2:H&'From this sheet'!I2:I\'From this sheet'!Q2:Q}; 
 ROW('From this sheet'!Q2:Q); 0); 2; 0 )))

enter image description here


update:

=INDEX(IFNA(VLOOKUP(C5:C&D5:D; 
 FILTER({'From this sheet'!H2:H&'From this sheet'!I2:I\'From this sheet'!Q2:Q}; 
 'From this sheet'!R2:R="Finalizado"); 2; 0 )))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading