Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default INDIRECT FUNCTION jams?

Hello There,


I get a REF-error sometimes with the following function:
=INDIRECT(B1&"!"&C1;1)


Imagine:
in B1: Sheet1
In C1: A1


Will give me the value in Sheet1!A1. Perfect!


Suppose now, I make a copy of Sheet1 = Sheet1 (2)
Using the Indirect function with in B1 : Sheet1 (2) generates me a REF
error!


In Short: I cannot use: Blank Space, ( , &, %, or sortalike symbols ...

to indicate my sheetname (nevertheless a sheetname can contain these
symbols)


How can I overcome this?


Which wizard has a solution to overcome this...,
Sige

(I have posted this thread also in
microsoft.public.excel.worksheetfunctions (mind the missing dot)sorry
for that) Don't know which NG is active.

  #2   Report Post  
bj
 
Posts: n/a
Default

change to
=INDIRECT("'"&B1&"'!"&C1;1)
you need single quote marks around sheet names with spaces

" wrote:

Hello There,


I get a REF-error sometimes with the following function:
=INDIRECT(B1&"!"&C1;1)


Imagine:
in B1: Sheet1
In C1: A1


Will give me the value in Sheet1!A1. Perfect!


Suppose now, I make a copy of Sheet1 = Sheet1 (2)
Using the Indirect function with in B1 : Sheet1 (2) generates me a REF
error!


In Short: I cannot use: Blank Space, ( , &, %, or sortalike symbols ...

to indicate my sheetname (nevertheless a sheetname can contain these
symbols)


How can I overcome this?


Which wizard has a solution to overcome this...,
Sige

(I have posted this thread also in
microsoft.public.excel.worksheetfunctions (mind the missing dot)sorry
for that) Don't know which NG is active.


  #3   Report Post  
 
Posts: n/a
Default

Thanks BJ!

Very simple ...but you have to know it!
Thx a million!
Sige

  #4   Report Post  
bj
 
Posts: n/a
Default

I was tearing what little hair I have out because of this problem a couple of
years ago when somone pointed it out to me.

" wrote:

Thanks BJ!

Very simple ...but you have to know it!
Thx a million!
Sige


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indirect or Vlookup Function Justin Excel Worksheet Functions 1 July 29th 05 10:38 PM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
INDIRECT function question Joe Excel Worksheet Functions 1 February 14th 05 03:54 PM
Indirect( ) function loosing values when spreadsheets are closed Word4Dummies Excel Worksheet Functions 2 February 13th 05 12:41 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"