Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Comparing two daily files by changing the cell address

Hi,

I need to compare the P/L daily. I save the each daily file as PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007 02/02/2007
Difference
(B1)
Income 1000 1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2) ('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500 800
+300

My method is change the dates manually and use "Replace" to change the file
names in each column. I had tried to save the step of "Replace" by using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Comparing two daily files by changing the cell address

Hi Fanny

Try
=INDIRECT("'C:\[PL"&"text(B1,"ddmm")"&".xls]Sheet1'!$B$2")


--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi,

I need to compare the P/L daily. I save the each daily file as
PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007
02/02/2007
Difference
(B1)
Income 1000
1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2)
('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500
800
+300

My method is change the dates manually and use "Replace" to change the
file
names in each column. I had tried to save the step of "Replace" by
using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Comparing two daily files by changing the cell address

Hi Mr Roger,

I tried the formula but it does not work. thanks.

Fanny

"Roger Govier" wrote:

Hi Fanny

Try
=INDIRECT("'C:\[PL"&"text(B1,"ddmm")"&".xls]Sheet1'!$B$2")


--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi,

I need to compare the P/L daily. I save the each daily file as
PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007
02/02/2007
Difference
(B1)
Income 1000
1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2)
('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500
800
+300

My method is change the dates manually and use "Replace" to change the
file
names in each column. I had tried to save the step of "Replace" by
using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Comparing two daily files by changing the cell address

Hi Fanny

My apologies, slipped some un-needed quotes in there.
Try
=INDIRECT("'C:\[PL"&TEXT(B1,"ddmm")&".xls]Sheet1'!$B$2")

--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi Mr Roger,

I tried the formula but it does not work. thanks.

Fanny

"Roger Govier" wrote:

Hi Fanny

Try
=INDIRECT("'C:\[PL"&"text(B1,"ddmm")"&".xls]Sheet1'!$B$2")


--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi,

I need to compare the P/L daily. I save the each daily file as
PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007
02/02/2007
Difference
(B1)
Income 1000
1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2)
('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500
800
+300

My method is change the dates manually and use "Replace" to change
the
file
names in each column. I had tried to save the step of "Replace" by
using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Comparing two daily files by changing the cell address

Dear Mr Roger,

Thank you a lot. I got the answer when I open the source files at the same
time. If I close all the files, all the formulas becomes #REF!. However, is
it possible not to open the source files.

regards,

Fanny

"Roger Govier" wrote:

Hi Fanny

My apologies, slipped some un-needed quotes in there.
Try
=INDIRECT("'C:\[PL"&TEXT(B1,"ddmm")&".xls]Sheet1'!$B$2")

--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi Mr Roger,

I tried the formula but it does not work. thanks.

Fanny

"Roger Govier" wrote:

Hi Fanny

Try
=INDIRECT("'C:\[PL"&"text(B1,"ddmm")"&".xls]Sheet1'!$B$2")


--
Regards

Roger Govier


"Fanny" wrote in message
...
Hi,

I need to compare the P/L daily. I save the each daily file as
PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007
02/02/2007
Difference
(B1)
Income 1000
1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2)
('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500
800
+300

My method is change the dates manually and use "Replace" to change
the
file
names in each column. I had tried to save the step of "Replace" by
using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Comparing two daily files by changing the cell address

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

Fanny wrote:

Hi,

I need to compare the P/L daily. I save the each daily file as PL0102.xls,
PL0102.xls and so on.

Date 01/02/2007 02/02/2007
Difference
(B1)
Income 1000 1200
+200
Formulas ('C:\[PL0102.xls]Sheet1'!$B$2) ('C:\[PL0202.xls]Sheet1'!$B$8)

Expenses 500 800
+300

My method is change the dates manually and use "Replace" to change the file
names in each column. I had tried to save the step of "Replace" by using the
formula below but not successful and it comes up with #REF!.
=('C:\[PL)&(text(B1,"ddmm")&(.xls]Sheet1'!$B$2)

Can anyone help? Thanks

Fanny


--

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
Comparing Full Files PZ Excel Discussion (Misc queries) 2 February 25th 07 06:32 PM
Comparing a value in EXCEL and XML files Vishnu Excel Discussion (Misc queries) 0 October 23rd 05 06:43 PM
Comparing-Merging Two Files denny Excel Discussion (Misc queries) 6 September 20th 05 04:46 PM
changing word files to excel files charlie'smom Excel Discussion (Misc queries) 2 August 12th 05 02:28 PM
Comparing value in two different files Larry Excel Discussion (Misc queries) 3 June 23rd 05 04:27 AM


All times are GMT +1. The time now is 08:22 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"