Solved

Concatenate a tab name inside a formaula.

Posted on 2014-11-27
3
99 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

As freelancing is becoming more and more common in the tech industry, certain obstacles are proving to be a challenge to those who are used to more traditional, structured employment. This article is meant to help identify such obstacles and offer a…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now