Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Reference previous worksheet within VLOOKUP

I have found several previous postings about this, but still cannot get my
function to work. If I put the name of the previous worksheet (e.g. March
09! {formatted as text}) in a cell (T2), then in my VLOOKUP I use VLOOKUP(A2,
INDIRECT($T$2&A2:B100,1),FALSE) I get either #REF or #VALUE error, depending
on how I tinker with the formula. Not sure what is missing. Using EXCEL
2000.

Any assistance would be appreciated. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Reference previous worksheet within VLOOKUP

On Fri, 17 Apr 2009 10:54:11 -0700, Alex Mackenzie
wrote:

I have found several previous postings about this, but still cannot get my
function to work. If I put the name of the previous worksheet (e.g. March
09! {formatted as text}) in a cell (T2), then in my VLOOKUP I use VLOOKUP(A2,
INDIRECT($T$2&A2:B100,1),FALSE) I get either #REF or #VALUE error, depending
on how I tinker with the formula. Not sure what is missing. Using EXCEL
2000.

Any assistance would be appreciated. Thank you.



Try this formula:

=VLOOKUP(A2,INDIRECT($T$2&"A2:B100"),1,FALSE)

or

=VLOOKUP(A2,INDIRECT($T$2&"A2:B100"),2,FALSE)

if you want values from the B column to be returned.

Note the " around A2:B100 and that the 1 (or the 2) is outside the
call to INDIRECT rather than inside as in your formula.

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Reference previous worksheet within VLOOKUP

=VLOOKUP(A2,INDIRECT("'"&T2&"'!A2:B100"),2,0)


"Alex Mackenzie" wrote:

I have found several previous postings about this, but still cannot get my
function to work. If I put the name of the previous worksheet (e.g. March
09! {formatted as text}) in a cell (T2), then in my VLOOKUP I use VLOOKUP(A2,
INDIRECT($T$2&A2:B100,1),FALSE) I get either #REF or #VALUE error, depending
on how I tinker with the formula. Not sure what is missing. Using EXCEL
2000.

Any assistance would be appreciated. Thank you.

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
How can I reference a cell on a previous worksheet Kim Excel Discussion (Misc queries) 3 August 18th 08 12:10 PM
formula to reference cell on previous worksheet endless_thoughts17 Excel Worksheet Functions 2 January 25th 08 07:37 PM
Reference Previous Worksheet Built-in Function [email protected] Excel Worksheet Functions 1 July 6th 07 04:03 PM
need formula to reference a cell in previous worksheet Jim Excel Worksheet Functions 3 January 5th 07 04:05 AM
How to reference to the previous worksheet regardless of title? SeabeePlumber Excel Worksheet Functions 0 July 15th 05 11:05 AM


All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"