ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sheet name reference (https://www.excelbanter.com/excel-discussion-misc-queries/72694-sheet-name-reference.html)

TUNGANA KURMA RAJU

sheet name reference
 
In sheet1 a1, I have datavalidation list(named range) consisting of sheet
names of my w/book. Some of the names in that list has spaces (example: John
Smith).In some other cell say in d1, I am using formula
d1=indirect(a1&"!c2").The formula is working with sheet names without spaces
in my list .Its not working with sheet name with spaces like "John Smith"
sheet. how to get it ?.I can't change/modify names in my list as they are
derived from a named range of other w/book.

Bob Phillips

sheet name reference
 
Use

=indirect("'"&a1&"'!c2").

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"TUNGANA KURMA RAJU" wrote in
message ...
In sheet1 a1, I have datavalidation list(named range) consisting of sheet
names of my w/book. Some of the names in that list has spaces (example:

John
Smith).In some other cell say in d1, I am using formula
d1=indirect(a1&"!c2").The formula is working with sheet names without

spaces
in my list .Its not working with sheet name with spaces like "John Smith"
sheet. how to get it ?.I can't change/modify names in my list as they are
derived from a named range of other w/book.




TUNGANA KURMA RAJU

sheet name reference
 
Thanks Bob! You are always helpful to me

"Bob Phillips" wrote:

Use

=indirect("'"&a1&"'!c2").

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"TUNGANA KURMA RAJU" wrote in
message ...
In sheet1 a1, I have datavalidation list(named range) consisting of sheet
names of my w/book. Some of the names in that list has spaces (example:

John
Smith).In some other cell say in d1, I am using formula
d1=indirect(a1&"!c2").The formula is working with sheet names without

spaces
in my list .Its not working with sheet name with spaces like "John Smith"
sheet. how to get it ?.I can't change/modify names in my list as they are
derived from a named range of other w/book.





Bob Phillips

sheet name reference
 
Thank-you, it is my pleasure.

Bob

"TUNGANA KURMA RAJU" wrote in
message ...
Thanks Bob! You are always helpful to me

"Bob Phillips" wrote:

Use

=indirect("'"&a1&"'!c2").

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"TUNGANA KURMA RAJU" wrote

in
message ...
In sheet1 a1, I have datavalidation list(named range) consisting of

sheet
names of my w/book. Some of the names in that list has spaces

(example:
John
Smith).In some other cell say in d1, I am using formula
d1=indirect(a1&"!c2").The formula is working with sheet names without

spaces
in my list .Its not working with sheet name with spaces like "John

Smith"
sheet. how to get it ?.I can't change/modify names in my list as they

are
derived from a named range of other w/book.








All times are GMT +1. The time now is 07:21 PM.

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