Paul,

 

Thank you for your patience . . . I now see it!

 

Steve

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On 
Behalf Of Paul Schreiner
Sent: Sunday, November 26, 2017 9:53 PM
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ Lookup variable sheet name

 

I understand THAT, but if you create your vlookup command "manually" (or with a 
wizard) instead of with the Indirect() statement:

Your vlookup syntax says basically:

Vlookup(what you're looking FOR, What table you're looking IN, what column you 
wish to RETURN)

 

I GET that for the GE symbol in row 2, you're looking in a table in the GE 
SHEET.

(and I presume the OHI, TGT, KSS, etc. symbols look in the corresponding sheets)

 

But you cannot look for "GE" in the GE sheet because it doesn't ever show up 
there!

The only place the symbols show up in the sheets is in the TITLE.

 

so, since you're looking for the closing price on each sheet,

I assumed the closing price is in J1 of your StockQuotes sheets

and this date appears in each of the Symbol sheets.

 

In the attached file, I changed the date in J1 to match an entry in the data 
sheets,

then "fixed" the vlookup()

 

Paul

-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------

 

On Saturday, November 25, 2017 10:53 AM, Steve Weaver 
<steveweave...@comcast.net <mailto:steveweave...@comcast.net> > wrote:

 

Hi Paul,

 

Thank you for your response.

 

On sheet “StockQuotes” In cell J2, I’m trying to lookup the closing price of GE 
from sheet “GE” cell E3.

 

Hope this makes sense.

 

Steve

 

From: excel-macros@googlegroups.com <mailto:excel-macros@googlegroups.com>  
[mailto:excel-macros@googlegroups.com] On Behalf Of Paul Schreiner
Sent: Saturday, November 25, 2017 10:41 AM
To: excel-macros@googlegroups.com <mailto:excel-macros@googlegroups.com> 
Subject: Re: $$Excel-Macros$$ Lookup variable sheet name

 

Are you trying to look up the date from J1?

 

If so, wouldn't it be:

=VLOOKUP($J$1,INDIRECT("'"&E2&"'!"&"$A$3:$F$3"),5,0)

 

and, I'd suggest changing $F$3 to something like $F$1000

 

Paul

-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------

 

On Saturday, November 25, 2017 9:46 AM, Steve Weaver <steveweave...@comcast.net 
<mailto:steveweave...@comcast.net> > wrote:

 

Not sure what I'm missing but I'm having difficulty with this formula in the

attached workbook, any help would be appreciated.

 

=VLOOKUP($E2,INDIRECT("'"&E2&"'!"&"$A$3:$F$3"),5,0)

 

 

Sincerely,

 

Steve

 

 

 

-- 

Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

 

FORUM RULES

 

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Jobs posting is not allowed.

6) Sharing copyrighted material and their links is not allowed.

 

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.

--- 

You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com. 
<mailto:unsubscr...@googlegroups.com.> 

To post to this group, send email to excel-macros@googlegroups.com. 
<mailto:excel-macros@googlegroups.com.> 

Visit this group at https://groups.google.com/group/excel-macros.

For more options, visit https://groups.google.com/d/optout.

 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com 
<mailto:excel-macros+unsubscr...@googlegroups.com> .
To post to this group, send email to excel-macros@googlegroups.com 
<mailto:excel-macros@googlegroups.com> .
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com 
<mailto:excel-macros+unsubscr...@googlegroups.com> .
To post to this group, send email to excel-macros@googlegroups.com 
<mailto:excel-macros@googlegroups.com> .
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com 
<mailto:excel-macros+unsubscr...@googlegroups.com> .
To post to this group, send email to excel-macros@googlegroups.com 
<mailto:excel-macros@googlegroups.com> .
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to