#1   Report Post  
Mike Punko
 
Posts: n/a
Default 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.
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default 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 ,
"Mike Punko" 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.

  #3   Report Post  
Mike Punko
 
Posts: n/a
Default 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 ,
"Mike Punko" 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
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
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 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"