Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to use indirect function?

There is the given code,
=RIGHT(LEFT('1'!A3,16),12)
The sheet name is given in cell C2
=INDIRECT("RIGHT(LEFT('"&C2&'!A3,16),12)")
When I try this code, it does not work.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default How to use indirect function?

Eric,

Put INDIRECT() inside RIGHT() & LEFT().

=RIGHT(LEFT(INDIRECT("'" & C2 & "'!A3"),16),12)


HTH,

Conan





"Eric" wrote in message
...
There is the given code,
=RIGHT(LEFT('1'!A3,16),12)
The sheet name is given in cell C2
=INDIRECT("RIGHT(LEFT('"&C2&'!A3,16),12)")
When I try this code, it does not work.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to use indirect function?

=right(left(indirect("'"&c2&"'!a3"),16),12)

Eric wrote:

There is the given code,
=RIGHT(LEFT('1'!A3,16),12)
The sheet name is given in cell C2
=INDIRECT("RIGHT(LEFT('"&C2&'!A3,16),12)")
When I try this code, it does not work.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric


--

Dave Peterson
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 function help please Guy[_2_] Excel Worksheet Functions 10 August 6th 07 11:06 AM
How to use indirect function? Eric Excel Discussion (Misc queries) 2 January 30th 07 03:57 PM
using the INDIRECT function hot dogs Excel Discussion (Misc queries) 1 November 1st 06 12:01 PM
Need help on Indirect function Naveen Excel Discussion (Misc queries) 3 August 11th 06 06:45 PM
Indirect function ? Carlos Antenna Excel Worksheet Functions 5 July 4th 06 02:29 AM


All times are GMT +1. The time now is 12:39 AM.

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

About Us

"It's about Microsoft Excel"