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

googlesheet get last non blank row from specific rows

By Following code in google spreadsheet I select last not empty row (based on data in H column and get data from cell "O").

=INDEX(O:O,MAX(IF( H:H<>"",ROW(H:H),0)))

It work properly. Now, I want to add condition to that search so it check only specific rows. ( Rows with specific amount in A column, so I need to add A:A="string" condition to that formula) how can I do that?

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 :

You may try:

=index(O:O,max(if((H:H<>"")*(A:A="String"),row(H:H),0)))

OR

=chooserows(filter(O:O,H:H<>"",A:A="String"),-1)
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