ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   Listing the last value in a range (row/column) (https://www.excelbanter.com/setting-up-configuration-excel/123480-listing-last-value-range-row-column.html)

Tom K

Listing the last value in a range (row/column)
 
We maintain a history of prices charged by vendors for certain items on a
spreadsheet. I would like to specify a cell that displays the latest price
we paid for an item. The items are listed by rows and the week of the year
is displayed as a column heading. Is there a way to list the "latest" price
entered in the row (next column over from "week 52"....)? I do not have
"ownership" of the spreadsheet in question, so I have to make this
"transparent" to the user...if you know what I mean?

Dave Peterson

Listing the last value in a range (row/column)
 
You could use a formula like:

=LOOKUP(2,1/(A1:A999<""),ROW(A1:A999))
(Make that 999 big enough to extend past the last possible row.)



Tom K wrote:

We maintain a history of prices charged by vendors for certain items on a
spreadsheet. I would like to specify a cell that displays the latest price
we paid for an item. The items are listed by rows and the week of the year
is displayed as a column heading. Is there a way to list the "latest" price
entered in the row (next column over from "week 52"....)? I do not have
"ownership" of the spreadsheet in question, so I have to make this
"transparent" to the user...if you know what I mean?


--

Dave Peterson


All times are GMT +1. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com