Help needed on Indirect Function

vranjit138

Board Regular
Joined
Dec 18, 2006
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have come across a strange problem while using indirect function.

In my workbook i have two sheets 1. projectdata 2. Report
in projectdata sheet i have data from Cell A1 to B20
In Report sheet in Cell A1 i have put the following text - projectdata!A1:B20
now using the main menu>> formula >> name manager >>create a new named range >> i give it a name pivotrange and in the refers to box i have put = indirect($A$1)
iam able to create a pivot table by using the named range - pivotrange
but when i change the name of the sheet from projectdata to project data, the pivot table shows "Reference isn't valid"
my question is can we not create a named range using indirect function where the sheet name has more than 2 words?
Iam using Office 365.
please help me to resolve this.

Thanks in ad
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
not tried it
but you need ' if there is a space

'project data'!A1:B20

did you add the '

i tend with indirect to add the ' any way , with a cell so if it does have a space its captured

so something like
indirect("'"&Cell&"'!B2:D20")

so now the cell can have
Projectdata
OR
project data
 
Upvote 0
Solution

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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