Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Linking to data in another file

Hi,

I have 2 problems I am working on:

1. I am trying to get a specific date from a cell in another closed
file and when I do:

='\\path_to_dir\[filename.xls]sheetname'!cell

somehow it gives me the wrong date (instead of 9/21/08 - 9/22/12)!!!

Is it better to do it through VBA macro?


2. I am trying as I open a workbook to populate a new row, below
existing ones. In this row, the first cell of column A will contain
that specific date range.

Please help! and Thank You graciously in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Linking to data in another file

#1. The bad news is that one workbook is using a base date of 1904 and the
other is using a base date of 1900.

In xl2003, you can change this option via:
tools|options|calculation tab|check (or uncheck) 1904 date system

Most wintel users have this unchecked. Most Mac users check this.

You could uncheck this option and change all the dates in that workbook so that
the dates are consistent (checking the option in both workbooks is another way).

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 (in the
operation box).

You may have to reformat the cell as a date (mine turned to a 5 digit number).
But it should work.

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

(I'm not sure which one you'll fix. You may want to edit|pastespecial|click
subtract.)

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

=============================

If you don't want to change the base date in either of the workbooks, you could
subtract that 1462 to your formula:

=-1462 + '\\path_to_dir\[filename.xls]sheetname'!cell

But if you toggle that setting, your formula will break again.



Lenchik wrote:

Hi,

I have 2 problems I am working on:

1. I am trying to get a specific date from a cell in another closed
file and when I do:

='\\path_to_dir\[filename.xls]sheetname'!cell

somehow it gives me the wrong date (instead of 9/21/08 - 9/22/12)!!!

Is it better to do it through VBA macro?

2. I am trying as I open a workbook to populate a new row, below
existing ones. In this row, the first cell of column A will contain
that specific date range.

Please help! and Thank You graciously in advance


--

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
Data Validation vs VLOOKUP - Linking to data in a seperate file Sharon Excel Worksheet Functions 3 May 15th 08 07:43 AM
Linking to another file using file reference typed cell Steven Excel Worksheet Functions 3 April 5th 08 03:15 AM
linking data in various files, each file has 18 worksheets KerryMay Excel Worksheet Functions 0 April 26th 07 04:02 AM
Turning a text file name into a search and linking the file as a hyperlink AlistairM Excel Discussion (Misc queries) 1 January 26th 06 04:55 AM
linking a file to another linked file in excel buckeye Excel Discussion (Misc queries) 1 November 10th 05 12:53 AM


All times are GMT +1. The time now is 05:25 AM.

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

About Us

"It's about Microsoft Excel"