ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Copying a row based on date (https://www.excelbanter.com/excel-worksheet-functions/202047-copying-row-based-date.html)

NA

Copying a row based on date
 
worksheet 1 contains rows of data including a column of dates - I want to
link the row with the latest date into a row in worksheet 2

Gary''s Student

Copying a row based on date
 
Say Sheet1 has dates in column A. The latest date is the max value (cause
dates are just numbers). We find the max in column A and use OFFSET() to get
the rest of the row:

=OFFSET(Sheet1!$A$1,MATCH(MAX(Sheet1!$A:$A),Sheet1 !$A:$A)-1,COLUMN()-1)

and copy across
--
Gary''s Student - gsnu200803


"na" wrote:

worksheet 1 contains rows of data including a column of dates - I want to
link the row with the latest date into a row in worksheet 2


NA

Copying a row based on date
 
That worked - thank you very much!!

"Gary''s Student" wrote:

Say Sheet1 has dates in column A. The latest date is the max value (cause
dates are just numbers). We find the max in column A and use OFFSET() to get
the rest of the row:

=OFFSET(Sheet1!$A$1,MATCH(MAX(Sheet1!$A:$A),Sheet1 !$A:$A)-1,COLUMN()-1)

and copy across
--
Gary''s Student - gsnu200803


"na" wrote:

worksheet 1 contains rows of data including a column of dates - I want to
link the row with the latest date into a row in worksheet 2



All times are GMT +1. The time now is 02:14 AM.

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