Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to convert text into range reference?

The basic description of the problem is that I have data scattered in a bunch
of date-named files, and I am trying to assemble them back into the same
table using VLOOKUP function, where I have to change the workbook source
names - and I am getting an error, indicating that my reference is a text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula itself I
got value error from inability to convert text into reference link, like this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default How to convert text into range reference?

The other workbook needs to be open or else INDIRECT will not work

You can download morefunc (which is an Excel add-in) from here, it has a
function called INDIRECT.EXT which will work on closed workbooks

http://xcell05.free.fr/



--
Regards,

Peo Sjoblom



"McGonnagal" wrote in message
...
The basic description of the problem is that I have data scattered in a
bunch
of date-named files, and I am trying to assemble them back into the same
table using VLOOKUP function, where I have to change the workbook source
names - and I am getting an error, indicating that my reference is a text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula itself I
got value error from inability to convert text into reference link, like
this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to convert text into range reference?

Workbook was open :-(

"Peo Sjoblom" wrote:

The other workbook needs to be open or else INDIRECT will not work

You can download morefunc (which is an Excel add-in) from here, it has a
function called INDIRECT.EXT which will work on closed workbooks

http://xcell05.free.fr/



--
Regards,

Peo Sjoblom



"McGonnagal" wrote in message
...
The basic description of the problem is that I have data scattered in a
bunch
of date-named files, and I am trying to assemble them back into the same
table using VLOOKUP function, where I have to change the workbook source
names - and I am getting an error, indicating that my reference is a text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula itself I
got value error from inability to convert text into reference link, like
this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default How to convert text into range reference?

Then there is no need for a path, try this formula

=VLOOKUP(A1,INDIRECT("'"&A2),2,0)


and change the value in A2 to


[11-20 sales.xls]data'!$A$1:$D$35


no leading apostrophe

your vlookup had the wrong syntax as well


--
Regards,

Peo Sjoblom


"McGonnagal" wrote in message
...
Workbook was open :-(

"Peo Sjoblom" wrote:

The other workbook needs to be open or else INDIRECT will not work

You can download morefunc (which is an Excel add-in) from here, it has a
function called INDIRECT.EXT which will work on closed workbooks

http://xcell05.free.fr/



--
Regards,

Peo Sjoblom



"McGonnagal" wrote in message
...
The basic description of the problem is that I have data scattered in a
bunch
of date-named files, and I am trying to assemble them back into the
same
table using VLOOKUP function, where I have to change the workbook
source
names - and I am getting an error, indicating that my reference is a
text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a
result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula
itself I
got value error from inability to convert text into reference link,
like
this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to convert text into range reference?

OK, I found it - Excel ate up the first '....

"Peo Sjoblom" wrote:

The other workbook needs to be open or else INDIRECT will not work

You can download morefunc (which is an Excel add-in) from here, it has a
function called INDIRECT.EXT which will work on closed workbooks

http://xcell05.free.fr/



--
Regards,

Peo Sjoblom



"McGonnagal" wrote in message
...
The basic description of the problem is that I have data scattered in a
bunch
of date-named files, and I am trying to assemble them back into the same
table using VLOOKUP function, where I have to change the workbook source
names - and I am getting an error, indicating that my reference is a text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula itself I
got value error from inability to convert text into reference link, like
this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to convert text into range reference?

correction: I did use correct spelling for the link:
'C:\Folder\[11-20 sales.xls]data'!$A$1:$D$35

Formula using Indirect() works in the same file (different worksheet), but
not outside of the workbook... grh....

"McGonnagal" wrote:

The basic description of the problem is that I have data scattered in a bunch
of date-named files, and I am trying to assemble them back into the same
table using VLOOKUP function, where I have to change the workbook source
names - and I am getting an error, indicating that my reference is a text
string (which it is), not the proper reference.

Example:

What it should be:
A1= '11-20 (date)
B1= 'C:\Folder\11-20 sales.xls'!data$A$1:$D$35 (reference text as a result
of a formula)

C1=vlookup(A1,indirect(B1),false,2) - ref error

When I tried to concantinate the reference in the vlookup formula itself I
got value error from inability to convert text into reference link, like this:
vlookup(A1,"'C:\Folder\11-20 sales.xls'!data$A$1:$D$35",false,2)

Appreciate your help,

PS I am not good with VB.

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
how do I convert text string into a cell reference Dave Davis Excel Discussion (Misc queries) 4 May 18th 23 11:48 AM
HOW TO EXTRACT CELL REFERENCE AS TEXT FROM NAMED RANGE romelsb Excel Worksheet Functions 0 November 3rd 06 09:49 PM
Convert text in cell to a range name for formula Sawhney Excel Worksheet Functions 1 April 14th 06 01:06 AM
convert a range of lowercase text to upper text or vice versa jackdaw Excel Worksheet Functions 2 May 16th 05 09:31 PM
How can I convert text to reference ? Ex: ISNUMBER(ADDRESS(6;10;2. FernandoMendes Excel Discussion (Misc queries) 1 January 28th 05 06:54 PM


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