Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Driving an address

Hi,

If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula?

I only want to copy the data in one cell, the same cell ref in every folder.
In the results file all I need is an =(reference) formula.

The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year).

It will always be the same cell ref in every single file and sheet. The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet

Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)

C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12

In col B I would like something very simple, just an = before the address
above that will return the data within the cell.

The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.

Is it possible to drive an address from the contents of a cell?

Thanks
LiAD
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Driving an address

It is possible, and you would normally use the INDIRECT function to do
this. However, that function will only work if the "sending" workbook
is open at the same time as the "receiving" workbook. Is this
something that you can arrange to happen?

If not, then there is a free add-in called morefunc (do a Google
search to find sites where you can download it from). This has the
function INDIRECT.EXT, and this will work if the sending workbook is
closed. Are you allowed to install add-ins onto your computer?

Hope this helps.

Pete

On Dec 14, 4:17*pm, LiAD wrote:
Hi,

If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula? *

I only want to copy the data in one cell, the same cell ref in every folder.
*In the results file all I need is an =(reference) formula.

The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year). *

It will always be the same cell ref in every single file and sheet. * The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet

Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)

C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12

In col B I would like something very simple, just an = before the address
above that will return the data within the cell.

The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.

Is it possible to drive an address from the contents of a cell?

Thanks
LiAD


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Driving an address

Hi,

Thanks for helping.

Yes it is possible to have sending and recieving workbooks open at the same
time - HOWEVER not all of the sending workbooks. I have 12 sending files per
year (one/month) each with 31 sheets (one for each day of the month). So
every day (except weekends) some-one will open A sheet within A relevant
sending file (the relevant one for the day & month they are in). They will
not open every sending file.

In the same way within the recieving workbooks I will have maybe 10 sheets,
each sheet will be for a different machine. Machine 1 will get the data from
G12, machine 2 from F18 etc etc.

I assume the file being open is enough? Or does the user need to activiate
every sheet?

I guess the best way to deal with it is
- have the INDIRECT formula you described for every day for every machine
- the user opens both files say once per week and the data gets copied
- have a macro that once the data is copied it does a copy/paste values each
to get rid of the 'used' formulas.

What do you think?

This is what I have tried but it doesnt work. I think there is a problem
with the cell ref. Do you know what I need to do to get it to work?

Ref made from =$C$2&"\"&$C$3&"\"&$C317&"\"&$D317&"\"&$C$4
Ref address - C:\dddd\Test\UK\Plastic\2009\11\1\M20
Formula - =INDIRECT(E317)

Thanks

"Pete_UK" wrote:

It is possible, and you would normally use the INDIRECT function to do
this. However, that function will only work if the "sending" workbook
is open at the same time as the "receiving" workbook. Is this
something that you can arrange to happen?

If not, then there is a free add-in called morefunc (do a Google
search to find sites where you can download it from). This has the
function INDIRECT.EXT, and this will work if the sending workbook is
closed. Are you allowed to install add-ins onto your computer?

Hope this helps.

Pete

On Dec 14, 4:17 pm, LiAD wrote:
Hi,

If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula?

I only want to copy the data in one cell, the same cell ref in every folder.
In the results file all I need is an =(reference) formula.

The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year).

It will always be the same cell ref in every single file and sheet. The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet

Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)

C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12

In col B I would like something very simple, just an = before the address
above that will return the data within the cell.

The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.

Is it possible to drive an address from the contents of a cell?

Thanks
LiAD


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Driving an address

I presume M20 is the cell reference, but I'm not sure which is the
sheet name and which is the filename in your expression. The filename
needs the .xls added and needs to be enclosed in square brackets. You
also have to include the sheet name. It is also a good idea to enclose
the whole string with apostrophes, to account for any spaces in the
path or filename or sheetname. So, if you have the full path in A1,
the filename in B1 and the sheetname in C1, for example, your ref
formula may look like this:

="'"&$A$1&"\["&$B$1&".xls]"&C1&"'!"

If this formula is in D1, and you want to return data from cell M20 of
that workbook/sheet, then you would have:

=INDIRECT(D1&"M20")

or you could include the M20 at the end of the formula in D1 and just
have:

=INDIRECT(D1)

But, that workbook will have to be open for this to work - if it is
not, you will get an error.

Hope this helps.

Pete

On Dec 15, 8:02*am, LiAD wrote:
Hi,

Thanks for helping.

Yes it is possible to have sending and recieving workbooks open at the same
time - HOWEVER not all of the sending workbooks. *I have 12 sending files per
year (one/month) each with 31 sheets (one for each day of the month). *So
every day (except weekends) some-one will open A sheet within A relevant
sending file (the relevant one for the day & month they are in). *They will
not open every sending file.

In the same way within the recieving workbooks I will have maybe 10 sheets,
each sheet will be for a different machine. *Machine 1 will get the data from
G12, machine 2 from F18 etc etc.

I assume the file being open is enough? *Or does the user need to activiate
every sheet?

I guess the best way to deal with it is
- have the INDIRECT formula you described for every day for every machine
- the user opens both files say once per week and the data gets copied
- have a macro that once the data is copied it does a copy/paste values each
to get rid of the 'used' formulas.

What do you think?

This is what I have tried but it doesnt work. *I think there is a problem
with the cell ref. *Do you know what I need to do to get it to work?

Ref made from =$C$2&"\"&$C$3&"\"&$C317&"\"&$D317&"\"&$C$4
Ref address - C:\dddd\Test\UK\Plastic\2009\11\1\M20
Formula - =INDIRECT(E317)

Thanks



"Pete_UK" wrote:
It is possible, and you would normally use the INDIRECT function to do
this. However, that function will only work if the "sending" workbook
is open at the same time as the "receiving" workbook. Is this
something that you can arrange to happen?


If not, then there is a free add-in called morefunc (do a Google
search to find sites where you can download it from). This has the
function INDIRECT.EXT, and this will work if the sending workbook is
closed. Are you allowed to install add-ins onto your computer?


Hope this helps.


Pete


On Dec 14, 4:17 pm, LiAD wrote:
Hi,


If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula? *


I only want to copy the data in one cell, the same cell ref in every folder.
*In the results file all I need is an =(reference) formula.


The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year). *


It will always be the same cell ref in every single file and sheet. * The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet


Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)


C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12


In col B I would like something very simple, just an = before the address
above that will return the data within the cell.


The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.


Is it possible to drive an address from the contents of a cell?


Thanks
LiAD


.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 386
Default Driving an address

Yeah works perfect now.

Thanks a lot

"Pete_UK" wrote:

I presume M20 is the cell reference, but I'm not sure which is the
sheet name and which is the filename in your expression. The filename
needs the .xls added and needs to be enclosed in square brackets. You
also have to include the sheet name. It is also a good idea to enclose
the whole string with apostrophes, to account for any spaces in the
path or filename or sheetname. So, if you have the full path in A1,
the filename in B1 and the sheetname in C1, for example, your ref
formula may look like this:

="'"&$A$1&"\["&$B$1&".xls]"&C1&"'!"

If this formula is in D1, and you want to return data from cell M20 of
that workbook/sheet, then you would have:

=INDIRECT(D1&"M20")

or you could include the M20 at the end of the formula in D1 and just
have:

=INDIRECT(D1)

But, that workbook will have to be open for this to work - if it is
not, you will get an error.

Hope this helps.

Pete

On Dec 15, 8:02 am, LiAD wrote:
Hi,

Thanks for helping.

Yes it is possible to have sending and recieving workbooks open at the same
time - HOWEVER not all of the sending workbooks. I have 12 sending files per
year (one/month) each with 31 sheets (one for each day of the month). So
every day (except weekends) some-one will open A sheet within A relevant
sending file (the relevant one for the day & month they are in). They will
not open every sending file.

In the same way within the recieving workbooks I will have maybe 10 sheets,
each sheet will be for a different machine. Machine 1 will get the data from
G12, machine 2 from F18 etc etc.

I assume the file being open is enough? Or does the user need to activiate
every sheet?

I guess the best way to deal with it is
- have the INDIRECT formula you described for every day for every machine
- the user opens both files say once per week and the data gets copied
- have a macro that once the data is copied it does a copy/paste values each
to get rid of the 'used' formulas.

What do you think?

This is what I have tried but it doesnt work. I think there is a problem
with the cell ref. Do you know what I need to do to get it to work?

Ref made from =$C$2&"\"&$C$3&"\"&$C317&"\"&$D317&"\"&$C$4
Ref address - C:\dddd\Test\UK\Plastic\2009\11\1\M20
Formula - =INDIRECT(E317)

Thanks



"Pete_UK" wrote:
It is possible, and you would normally use the INDIRECT function to do
this. However, that function will only work if the "sending" workbook
is open at the same time as the "receiving" workbook. Is this
something that you can arrange to happen?


If not, then there is a free add-in called morefunc (do a Google
search to find sites where you can download it from). This has the
function INDIRECT.EXT, and this will work if the sending workbook is
closed. Are you allowed to install add-ins onto your computer?


Hope this helps.


Pete


On Dec 14, 4:17 pm, LiAD wrote:
Hi,


If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula?


I only want to copy the data in one cell, the same cell ref in every folder.
In the results file all I need is an =(reference) formula.


The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year).


It will always be the same cell ref in every single file and sheet. The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet


Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)


C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12


In col B I would like something very simple, just an = before the address
above that will return the data within the cell.


The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.


Is it possible to drive an address from the contents of a cell?


Thanks
LiAD


.- Hide quoted text -


- Show quoted text -


.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Driving an address

You're welcome - thanks for feeding back.

Pete

On Dec 15, 11:50*am, LiAD wrote:
Yeah works perfect now.

Thanks a lot



"Pete_UK" wrote:
I presume M20 is the cell reference, but I'm not sure which is the
sheet name and which is the filename in your expression. The filename
needs the .xls added and needs to be enclosed in square brackets. You
also have to include the sheet name. It is also a good idea to enclose
the whole string with apostrophes, to account for any spaces in the
path or filename or sheetname. So, if you have the full path in A1,
the filename in B1 and the sheetname in C1, for example, your ref
formula may look like this:


="'"&$A$1&"\["&$B$1&".xls]"&C1&"'!"


If this formula is in D1, and you want to return data from cell M20 of
that workbook/sheet, then you would have:


=INDIRECT(D1&"M20")


or you could include the M20 at the end of the formula in D1 and just
have:


=INDIRECT(D1)


But, that workbook will have to be open for this to work - if it is
not, you will get an error.


Hope this helps.


Pete


On Dec 15, 8:02 am, LiAD wrote:
Hi,


Thanks for helping.


Yes it is possible to have sending and recieving workbooks open at the same
time - HOWEVER not all of the sending workbooks. *I have 12 sending files per
year (one/month) each with 31 sheets (one for each day of the month). *So
every day (except weekends) some-one will open A sheet within A relevant
sending file (the relevant one for the day & month they are in). *They will
not open every sending file.


In the same way within the recieving workbooks I will have maybe 10 sheets,
each sheet will be for a different machine. *Machine 1 will get the data from
G12, machine 2 from F18 etc etc.


I assume the file being open is enough? *Or does the user need to activiate
every sheet?


I guess the best way to deal with it is
- have the INDIRECT formula you described for every day for every machine
- the user opens both files say once per week and the data gets copied
- have a macro that once the data is copied it does a copy/paste values each
to get rid of the 'used' formulas.


What do you think?


This is what I have tried but it doesnt work. *I think there is a problem
with the cell ref. *Do you know what I need to do to get it to work?


Ref made from =$C$2&"\"&$C$3&"\"&$C317&"\"&$D317&"\"&$C$4
Ref address - C:\dddd\Test\UK\Plastic\2009\11\1\M20
Formula - =INDIRECT(E317)


Thanks


"Pete_UK" wrote:
It is possible, and you would normally use the INDIRECT function to do
this. However, that function will only work if the "sending" workbook
is open at the same time as the "receiving" workbook. Is this
something that you can arrange to happen?


If not, then there is a free add-in called morefunc (do a Google
search to find sites where you can download it from). This has the
function INDIRECT.EXT, and this will work if the sending workbook is
closed. Are you allowed to install add-ins onto your computer?


Hope this helps.


Pete


On Dec 14, 4:17 pm, LiAD wrote:
Hi,


If I have the address, file name, sheet name and cell ref of a source file
typed into cell A1 is there a way in which I can use the text in cell A1 as
an address to drive an = formula? *


I only want to copy the data in one cell, the same cell ref in every folder.
*In the results file all I need is an =(reference) formula.


The reason I would like this is to save me having to recreate a lot a lot of
references (one for every day of every year). *


It will always be the same cell ref in every single file and sheet. * The
address type is in the form of:
Network/Directory/Sub directory 1/Sub directory 2/ Sub directory 3/Sub Dir 4
(Year)/Sub Dir 5 (Month)/File name/Sheet


Example addresses contained within col A are; (to find data in G12, on 3 Mar
et 15 Apr 2009 from the plastic cartons from UK)


C:/UK/Cartons/Plastic/Results/2009/3/ Production results Mar/3/G12
C:/UK/Cartons/Plastic/Results/2009/3/ Production results Apr/15/G12


In col B I would like something very simple, just an = before the address
above that will return the data within the cell.


The idea is then if want to change the address I change UK fro France and it
automatically searches a different folder.


Is it possible to drive an address from the contents of a cell?


Thanks
LiAD


.- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


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
Driving Me MAD !!!!! John Calder New Users to Excel 1 August 23rd 09 05:06 PM
Driving me CRAZY~ please help Tara New Users to Excel 0 July 7th 08 07:29 PM
Formula driving me crazay RocketMan Excel Discussion (Misc queries) 0 October 3rd 07 09:48 PM
This is DRIVING ME INSANE! [email protected] Excel Worksheet Functions 2 September 14th 06 08:09 PM
Need Help, this is driving me nuts heitorfjr Excel Discussion (Misc queries) 2 January 15th 06 03:10 PM


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