arc90 lab | tools: Link Thumbnail
Excel Help Forum
ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-25-2005, 05:05 PM
Mike Punko
Guest
 
Posts: n/a
Set REF# by Cell

ok I have a workbook with sheets named by month (Sep, Oct, Nov...) I have a
sheet named Weekly. In Weekly I have a LOOKUP function as such.

=LOOKUP(B1,Oct!$B$4:$B$34,Oct!$E$4:$E$34)

B1 = Date in Weekly to lookup.
Oct! = the sheet to look in.
I'm looking for a way to have the Oct referance be determined via cell
referance. I tried some codes but just can't get this to work. I know I
would do a

TEXT(B1,"mmm") to get "Oct" trouble is setting up my original code to do
this. I've also been tryingto do it with INDIRECT function but to also no
result. I know it's just a wrong " or , somewhere.
Reply With Quote
  #2  
Old 10-25-2005, 06:05 PM
JE McGimpsey
Guest
 
Posts: n/a
Re: Set REF# by Cell

One way:

=LOOKUP(B1,INDIRECT("'" & C1 & "'!B4:B34"),INDIRECT("'" & C1 &
"'!E4:E34"))

Note that the single quotes are only necessary if C1 may have a space in
the text.


In article <72E45808-BDF6-45C7-9CA6-7EFFE1F13250@microsoft.com>,
"Mike Punko" <MikePunko@discussions.microsoft.com> wrote:

> ok I have a workbook with sheets named by month (Sep, Oct, Nov...) I have a
> sheet named Weekly. In Weekly I have a LOOKUP function as such.
>
> =LOOKUP(B1,Oct!$B$4:$B$34,Oct!$E$4:$E$34)
>
> B1 = Date in Weekly to lookup.
> Oct! = the sheet to look in.
> I'm looking for a way to have the Oct referance be determined via cell
> referance. I tried some codes but just can't get this to work. I know I
> would do a
>
> TEXT(B1,"mmm") to get "Oct" trouble is setting up my original code to do
> this. I've also been tryingto do it with INDIRECT function but to also no
> result. I know it's just a wrong " or , somewhere.

Reply With Quote
  #3  
Old 10-25-2005, 06:05 PM
Mike Punko
Guest
 
Posts: n/a
Re: Set REF# by Cell

Thanks man. I knew it was somethign simple I wsa forgetting the single quotes.

"JE McGimpsey" wrote:

> One way:
>
> =LOOKUP(B1,INDIRECT("'" & C1 & "'!B4:B34"),INDIRECT("'" & C1 &
> "'!E4:E34"))
>
> Note that the single quotes are only necessary if C1 may have a space in
> the text.
>
>
> In article <72E45808-BDF6-45C7-9CA6-7EFFE1F13250@microsoft.com>,
> "Mike Punko" <MikePunko@discussions.microsoft.com> wrote:
>
> > ok I have a workbook with sheets named by month (Sep, Oct, Nov...) I have a
> > sheet named Weekly. In Weekly I have a LOOKUP function as such.
> >
> > =LOOKUP(B1,Oct!$B$4:$B$34,Oct!$E$4:$E$34)
> >
> > B1 = Date in Weekly to lookup.
> > Oct! = the sheet to look in.
> > I'm looking for a way to have the Oct referance be determined via cell
> > referance. I tried some codes but just can't get this to work. I know I
> > would do a
> >
> > TEXT(B1,"mmm") to get "Oct" trouble is setting up my original code to do
> > this. I've also been tryingto do it with INDIRECT function but to also no
> > result. I know it's just a wrong " or , somewhere.

>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 08:04 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0