ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VLOOKUP: Referencing worksheets whose names contain commas (https://www.excelbanter.com/excel-worksheet-functions/253651-vlookup-referencing-worksheets-whose-names-contain-commas.html)

David Aukerman[_2_]

VLOOKUP: Referencing worksheets whose names contain commas
 
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has a
comma in its name? For instance, in Sheet1 I want to refer to a sheet named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman

David Aukerman[_2_]

VLOOKUP: Referencing worksheets whose names contain commas
 
Update:

It seems that the function as I wrote it *evaluates* correctly, but while
I'm typing it in, the tooltip (that helps me determine which argument I'm
entering) advances too soon when the comma in the sheet name is entered.
Maybe this is a bug?

--David Aukerman


"David Aukerman" wrote:

Hello,

How do I make a VLOOKUP formula reference a different worksheet that has a
comma in its name? For instance, in Sheet1 I want to refer to a sheet named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman


T. Valko

VLOOKUP: Referencing worksheets whose names contain commas
 
About the only thing you can do to stop that from happening is to not use
commas in sheet names.

--
Biff
Microsoft Excel MVP


"David Aukerman" wrote in message
...
Update:

It seems that the function as I wrote it *evaluates* correctly, but while
I'm typing it in, the tooltip (that helps me determine which argument I'm
entering) advances too soon when the comma in the sheet name is entered.
Maybe this is a bug?

--David Aukerman


"David Aukerman" wrote:

Hello,

How do I make a VLOOKUP formula reference a different worksheet that has
a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman




L. Howard Kittle

VLOOKUP: Referencing worksheets whose names contain commas
 
Does this work for you?

=VLOOKUP(F1,'[Book10]Last, First'!$A$1:$B$5,2,0)

The third and fourth argument are not consistent with your lookup but I
believe you can change to 13 and 1 (or TRUE). Not tested

HTH
Regards,
Howard

"David Aukerman" wrote in message
...
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman




FatBytestard

VLOOKUP: Referencing worksheets whose names contain commas
 
Would it not be much more simple to NOT ever use a comma in a sheet
name as a POLICY!?


On Sun, 17 Jan 2010 18:38:46 -0800, "L. Howard Kittle"
wrote:

Does this work for you?

=VLOOKUP(F1,'[Book10]Last, First'!$A$1:$B$5,2,0)

The third and fourth argument are not consistent with your lookup but I
believe you can change to 13 and 1 (or TRUE). Not tested

HTH
Regards,
Howard

"David Aukerman" wrote in message
...
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman



L. Howard Kittle

VLOOKUP: Referencing worksheets whose names contain commas
 
Sorry, I gave a solution that had a workSHEET named "Last, First" and was in
workBOOK 10.

I saved Book 10 as Last, First, with the worksheet named Last, First in it
and is refrenced in the formula. Did not have a problem with a comma in the
name of the workbook. Using Excel 2002 SP3.

Am I missing something here?

Perhaps this will work as it did in my test where the Workbook is named
"Last, First". Again change the third and fourth arguments to suit.

=VLOOKUP(F1,'[Last, First.xls]Last, First'!$A$1:$B$5,2,0)

HTH
Regards,
Howard

"David Aukerman" wrote in message
...
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman




T. Valko

VLOOKUP: Referencing worksheets whose names contain commas
 
Am I missing something here?

I think so...

You need Excel 2002 or higher with Function ToolTips enabled to see what the
OP is talking about.

Start typing this formula:

=VLOOKUP(10,

As soon as you type the comma the tooltip argument advances to the next
argument which would be the table_array argument.

Since their table array is on a sheet named First, Last we continue typing:

=VLOOKUP(10,'First,

As soon as you tpe the comma in the sheet name the tooltip argument advances
to the next argument which would be the col_index_num. However, you haven't
finshed typing in the full sheet name for the table_argument yet. So, you
might get confused about which argument you need to type in.

The only solutions I can think of a

1. don't use sheet names that contain commas

--
Biff
Microsoft Excel MVP


"L. Howard Kittle" wrote in message
...
Sorry, I gave a solution that had a workSHEET named "Last, First" and was
in workBOOK 10.

I saved Book 10 as Last, First, with the worksheet named Last, First in it
and is refrenced in the formula. Did not have a problem with a comma in
the name of the workbook. Using Excel 2002 SP3.

Am I missing something here?

Perhaps this will work as it did in my test where the Workbook is named
"Last, First". Again change the third and fourth arguments to suit.

=VLOOKUP(F1,'[Last, First.xls]Last, First'!$A$1:$B$5,2,0)

HTH
Regards,
Howard

"David Aukerman" wrote in
message ...
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has
a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman






L. Howard Kittle

VLOOKUP: Referencing worksheets whose names contain commas
 
Hmmm, I see what you mean when you type in the formula. Does just what you
indicate.

However, if I type in =VLOOKUP(F1, and from here click on the workbook
named First, Last and select A1:B5 on worksheet named First, Last and then
add the comma it accepts that and then type ,2,0) it accepts the formula
and returns the proper value in my test.

=VLOOKUP(F1,'[Last, First.xls]Last, First'!$A$1:$B$5,2,0)

Then if I click in the formula bar with the above formula and arrow across
the formula the tool tip indeed seems to get out of sequence and is confused
by the commas.

Selecting instead of typing works in my test.

Howard

"T. Valko" wrote in message
...
Am I missing something here?


I think so...

You need Excel 2002 or higher with Function ToolTips enabled to see what
the OP is talking about.

Start typing this formula:

=VLOOKUP(10,

As soon as you type the comma the tooltip argument advances to the next
argument which would be the table_array argument.

Since their table array is on a sheet named First, Last we continue
typing:

=VLOOKUP(10,'First,

As soon as you tpe the comma in the sheet name the tooltip argument
advances to the next argument which would be the col_index_num. However,
you haven't finshed typing in the full sheet name for the table_argument
yet. So, you might get confused about which argument you need to type in.

The only solutions I can think of a

1. don't use sheet names that contain commas

--
Biff
Microsoft Excel MVP


"L. Howard Kittle" wrote in message
...
Sorry, I gave a solution that had a workSHEET named "Last, First" and was
in workBOOK 10.

I saved Book 10 as Last, First, with the worksheet named Last, First in
it and is refrenced in the formula. Did not have a problem with a comma
in the name of the workbook. Using Excel 2002 SP3.

Am I missing something here?

Perhaps this will work as it did in my test where the Workbook is named
"Last, First". Again change the third and fourth arguments to suit.

=VLOOKUP(F1,'[Last, First.xls]Last, First'!$A$1:$B$5,2,0)

HTH
Regards,
Howard

"David Aukerman" wrote in
message ...
Hello,

How do I make a VLOOKUP formula reference a different worksheet that has
a
comma in its name? For instance, in Sheet1 I want to refer to a sheet
named
"Last, First" in this way:

=VLOOKUP(A1, 'Last, First'!$A$1:$M$100, 13, TRUE)

But the comma in sheet "Last, First" seems to make the VLOOKUP function
advance the argument too early. Is there an easy fix for this?

Thanks,
--David Aukerman









All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com