Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9768

Formula to find the second to last (or nth to last) cell with value ignoring empty rows/cells

$
0
0

I have a spreadsheet that I used to run in Excel but due to other family members needing access to it I've moved it over to Sheets.

Anyway, I have the following formula that was running in Excel that I need to replicate in Google Sheets:

=INDEX(D6:D1500,AGGREGATE(14,6,(ROW(D6:D1500)-ROW(D6)+1)/(D6:D1500<>""),2))

Basically I have a series of sheets in a spreadsheet that contain data about various reptiles that we keep (snakes, geckos, lizards).
At the very front of the spreadsheet is a summary page so I can look at key data at a glance.
Anyway, one of the new bits of key data I want to add to the summary page is their weight from the previous weigh in so at a glance I can see how they are doing.
So, in order to do this I was hoping on each animals individual page that I could add a formula to a particular cell (the one above) which looked at the column of weights but only returned the second weight up from the bottom of the column.

If anyone can help to get this to work in Google Sheets it would be much appreciate.

Stay safe in these awkward times.

Link to a stripped down version of the spreadsheet as follows.

Jeffery


Viewing all articles
Browse latest Browse all 9768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>