#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MBG MBG is offline
external usenet poster
 
Posts: 1
Default dates in VLOOKUP

Trying to use Vlookup to copy dates for a series of records (rows) from one
file to another. The result in the placed file (where the formula resides)
is 4 years and 1 day later than in the original/source file (or rather, 4
years with the leap day in included?). Have tried using text version of the
date and it appears in the placed file the same as the source file, but when
I change the format to date, the date increases as above. Both files are
(now) same version of Excel, though source file started out as 97-2003. Any
ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default dates in VLOOKUP

Make sure the settings on both computers for ToolsOptionsCalculation
tab1904 Date system are equal.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MBG" wrote in message
...
Trying to use Vlookup to copy dates for a series of records (rows) from
one
file to another. The result in the placed file (where the formula
resides)
is 4 years and 1 day later than in the original/source file (or rather, 4
years with the leap day in included?). Have tried using text version of
the
date and it appears in the placed file the same as the source file, but
when
I change the format to date, the date increases as above. Both files are
(now) same version of Excel, though source file started out as 97-2003.
Any
ideas?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default dates in VLOOKUP

And if you know that the workbooks have different base dates and you can't
change them, just add/subtract 1462 to your results...

=vlookup(x9,'[Other workbookhere.xls]sheet2!a:b,2,false)+1462

If you were just copy|pasting, you'd have the same trouble...

Saved from a previous post:

One workbook was using a base year of 1900 and the other was using 1904.
(tools|options|calculation tab|1904 date system)

One way to add those four years back is to find an empty cell, put 1462 into
that cell.

Copy that cell.

Select your range that contains the dates.
Edit|PasteSpecial|click Add or subtract (in the operation box) and Values

You may have to reformat the cell as a date.

You may want to do it against a copy...just in case.

Most windows users use 1900 as the base date. Mac users (mostly??) use 1904 as
the base date.

MBG wrote:

Trying to use Vlookup to copy dates for a series of records (rows) from one
file to another. The result in the placed file (where the formula resides)
is 4 years and 1 day later than in the original/source file (or rather, 4
years with the leap day in included?). Have tried using text version of the
date and it appears in the placed file the same as the source file, but when
I change the format to date, the date increases as above. Both files are
(now) same version of Excel, though source file started out as 97-2003. Any
ideas?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default dates in VLOOKUP

ps. One of the reasons people use the 1904 base date is so that they can show
negative dates/times.

MBG wrote:

Trying to use Vlookup to copy dates for a series of records (rows) from one
file to another. The result in the placed file (where the formula resides)
is 4 years and 1 day later than in the original/source file (or rather, 4
years with the leap day in included?). Have tried using text version of the
date and it appears in the placed file the same as the source file, but when
I change the format to date, the date increases as above. Both files are
(now) same version of Excel, though source file started out as 97-2003. Any
ideas?


--

Dave Peterson
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
vlookup with Dates Jack Excel Worksheet Functions 11 October 31st 08 05:15 PM
vLookup with dates Jodi Macy Excel Worksheet Functions 17 October 22nd 08 04:52 PM
Vlookup on Dates LossManiac Excel Worksheet Functions 6 August 29th 08 02:25 PM
vlookup using dates MH Excel Discussion (Misc queries) 2 May 28th 07 05:53 PM
dates and vlookup grapes Excel Worksheet Functions 1 February 2nd 06 09:19 PM


All times are GMT +1. The time now is 09:59 AM.

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"