Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old November 13th 08, 06:40 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Nov 2008
Posts: 8
Default Reference Sheets in a Vlookup

I have the following Vlookup formula

=ROUND(IFERROR(VLOOKUP($D196,'000-00'!$A$13:$AL$200,F$1,FALSE),0),0)

I want to have '000-00' change based on combining two cells.
My worksheet has 100 plus sheets and want to be able to reference the sheet
location based on two other cells.
Is there a way to do this?

thanks
--
Tom

  #2   Report Post  
Old November 13th 08, 06:56 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 751
Default Reference Sheets in a Vlookup

If K1 and L1 have the two components 000 and 00 then

=ROUND(IFERROR(VLOOKUP($D196,INDIRECT("'"&K1&"-"&L1&"'!$A$13:$AL
$200"),F$1,FALSE),0),0)

HTH
Kostis Vezerides

On Nov 13, 7:40*pm, Thomas Roos wrote:
I have the following Vlookup formula

=ROUND(IFERROR(VLOOKUP($D196,'000-00'!$A$13:$AL$200,F$1,FALSE),0),0)

I want to have '000-00' change based on combining two cells.
My worksheet has 100 plus sheets and want to be able to reference the sheet
location based on two other cells.
Is there a way to do this?

thanks
--
Tom


  #3   Report Post  
Old November 13th 08, 06:58 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Nov 2006
Posts: 15,768
Default Reference Sheets in a Vlookup

Try this...

Since Excel doesn't like strings of zeros you'd have to format these cells
as TEXT or precede the entry with an apostrophe unless the zeros are just
placeholders.

A1 = 000
A2 = 00

=ROUND(IFERROR(VLOOKUP($D196,INDIRECT("'"&A1&"-"&A2&"'!A13:AL200"),F$1,0),0),0)

--
Biff
Microsoft Excel MVP


"Thomas Roos" wrote in message
...
I have the following Vlookup formula

=ROUND(IFERROR(VLOOKUP($D196,'000-00'!$A$13:$AL$200,F$1,FALSE),0),0)

I want to have '000-00' change based on combining two cells.
My worksheet has 100 plus sheets and want to be able to reference the
sheet
location based on two other cells.
Is there a way to do this?

thanks
--
Tom



  #4   Report Post  
Old November 13th 08, 07:06 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Oct 2008
Posts: 1,805
Default Reference Sheets in a Vlookup

=INDIRECT("'"&A1&"-"&B1&"'!$A$13:$AL$200") instead of '000-00'!$A$13:$AL$200
in your formula below, iIf you want to look in A1 and B1 to construct your
sheet name.

Basically construct a string which returns the address you want and put
that inside INDIRECT...

"Thomas Roos" wrote:

I have the following Vlookup formula

=ROUND(IFERROR(VLOOKUP($D196,'000-00'!$A$13:$AL$200,F$1,FALSE),0),0)

I want to have '000-00' change based on combining two cells.
My worksheet has 100 plus sheets and want to be able to reference the sheet
location based on two other cells.
Is there a way to do this?

thanks
--
Tom

  #5   Report Post  
Old November 13th 08, 07:40 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
First recorded activity by ExcelBanter: Nov 2006
Posts: 15,768
Default Reference Sheets in a Vlookup

=INDIRECT("'"&A1&"-"&B1&"'!$A$13:$AL$200")

To save a couple of keystrokes you can remove the $ from $A$13:$AL$200.

Since INDIRECT evaluates this as a text string that reference will never
change if the formula is copied. So:

=INDIRECT("'"&A1&"-"&B1&"'!A13:AL200")

"'!A13:AL200" is treated as an absolute reference.

--
Biff
Microsoft Excel MVP


"Sheeloo" <="to" & CHAR(95) & "sheeloo" & CHAR(64) & "hotmail.com" wrote in
message ...
=INDIRECT("'"&A1&"-"&B1&"'!$A$13:$AL$200") instead of
'000-00'!$A$13:$AL$200
in your formula below, iIf you want to look in A1 and B1 to construct your
sheet name.

Basically construct a string which returns the address you want and put
that inside INDIRECT...

"Thomas Roos" wrote:

I have the following Vlookup formula

=ROUND(IFERROR(VLOOKUP($D196,'000-00'!$A$13:$AL$200,F$1,FALSE),0),0)

I want to have '000-00' change based on combining two cells.
My worksheet has 100 plus sheets and want to be able to reference the
sheet
location based on two other cells.
Is there a way to do this?

thanks
--
Tom





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
Reference sheets KKcags Excel Worksheet Functions 1 May 7th 08 09:20 PM
PLEASE HELP!! FORMULA TO RETURN A SHEETS NAME/REFERENCE. Chaz Excel Worksheet Functions 4 July 27th 07 06:14 AM
Cross Reference between sheets JP Excel Worksheet Functions 2 May 14th 06 01:36 PM
Cell Reference, Multiple Sheets CazMan007 Excel Worksheet Functions 1 July 22nd 05 03:31 PM
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? Daniel Excel Worksheet Functions 1 July 6th 05 09:57 PM


All times are GMT +1. The time now is 02:00 AM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017