Indirect Formula: reference to two cells plus space?

Bering

Board Regular
Joined
Aug 22, 2018
Messages
59
Hello,

First of all, my apologies if this has been already answered in the past...

My problem: I have some sheets' names obtained by combining strings from two columns in a different sheet, separated by a space. So, based on the below example, my tabs' names could be:

A Monthly
D Monthly
B Annual

and so on....


AMonthly
BQuarterly
CSemi-Annual
DAnnual

<tbody>
</tbody>




I am trying to vlookup the sheets by using INDIRECT, however this only works if I remove the spaces in the sheets'names. Is it possible to take into account the space in my formula?

VLOOKUP($D3,INDIRECT($A$3&B$3&"!A:C"),2,0)

I tried this but, of course, it does not work :p

VLOOKUP($D3,INDIRECT($A$3&" "&B$3&"!A:C"),2,0)


Any suggestion would be grately appreciated.

Thanks.
 
Last edited:

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hello,

You are only missing the Apostrophe '

=INDIRECT("'"&A3&" "&B3&"'"&........

Hope this will help
 

Forum statistics

Threads
1,081,578
Messages
5,359,736
Members
400,545
Latest member
Damntheman30

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top