( by Robert Warner )
I have a table with dates and totals that need be filled in as data comes in (see table below: column A is date, B and C are inventory values at 2 different warehouses, so D is the sum of B and C). I'd like to pull the most recent total inventory value in a different cell (E1), that reads down column D and pulls the latest non-zero number, so as I update inventory next week, it will automatically the pull the most recent total inventory figure.
Have a look at the following screenshot of my spreadsheet:
=query(A:D;"select D where D>0 order by A desc limit 1")
the above formula will give you the latest non 0 value from Column D.
I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.