Solved

Concatenate a tab name inside a formaula.

Posted on 2014-11-27
3
108 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
3 Comments
 
LVL 37

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 500 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Photo Albums in PowerPoint Photo Albums are a very useful tool in PowerPoint and allow you quickly add a large number of images. The images can be formatted in a variety of ways so that you are able to create a professional looking presentation v…
Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

778 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