?
Solved

Concatenate a tab name inside a formaula.

Posted on 2014-11-27
3
Medium Priority
?
138 Views
Last Modified: 2014-11-28
I am trying to find a way to concatenate a worksheet tab name inside a formula.

The formula: =VLOOKUP(A4,'BRNOV 26'!$C$4:$H$199,6,FALSE)

When I change the date in another cell to November 27, the worksheet name inside the formula should change to:

=VLOOKUP(A4,'BRNOV 27'!$C$4:$H$199,6,FALSE)

I tried INDIRECT, that does not seem to work I only get #REF for a result....

Confusing as heck.....
0
Comment
Question by:DougDodge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 40469776
You can use INDIRECT, like this:

=INDIRECT("'" & E2 & "'!" & F2)

Sample sheet attached.
ee-indirect.xlsx
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 2000 total points
ID: 40469901
The INDIRECT function is the correct one to use. I suspect the date format is what is causing your formula to fail.

Try this one instead...

    =VLOOKUP(A4,INDIRECT("'BR" & UPPER(TEXT(A1, "mmm dd")) & "'!$C$4:$H$199"),6,FALSE)

I've used the TEXT and UPPER function also to format the date correctly and force the month to upper case.
0
 

Author Closing Comment

by:DougDodge
ID: 40470413
This works perfectly..... And you were right it is the date format causing me so much grief.... Thanks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question