Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NA NA is offline
external usenet poster
 
Posts: 12
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NA NA is offline
external usenet poster
 
Posts: 12
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying rows from 2 sheets to a new worksheet based on date criter Phill_Morgan Excel Discussion (Misc queries) 9 August 29th 07 08:03 AM
Sumproduct based which also weights data based on date ExcelMonkey Excel Worksheet Functions 6 February 4th 07 08:51 AM
Copying data based on a condition aheintz57 Excel Worksheet Functions 4 October 9th 06 05:12 AM
copying feilds based on a value flatbush67 Excel Discussion (Misc queries) 0 June 8th 06 04:02 PM
copying cells based on criteria tdro Excel Worksheet Functions 0 June 15th 05 02:17 PM


All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"