Indirect Formula: reference to two cells plus space?

Bering

Board Regular
Joined
Aug 22, 2018
Messages
186
Office Version
  1. 2016
Platform
  1. Windows
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....


[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]Monthly[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Quarterly[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Semi-Annual[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]Annual[/TD]
[/TR]
</tbody>[/TABLE]




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 :stickouttounge:

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


Any suggestion would be grately appreciated.

Thanks.
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hello,

You are only missing the Apostrophe '

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

Hope this will help
 
Upvote 0
Solution

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top