Solved

Concatenate a tab name inside a formaula.

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Lately there has been a variety of news related to U.S. employment.  Stories about worker productivity, automobile and airline unions, low employment and foreign laborers have frequented the news.  Each story has good and bad attributes we might arg…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

837 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