Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Fysh
 
Posts: n/a
Default Reference a cell to get worksheet name

I am trying to reference a cell with worksheet names which is populated from
another formula.
Once I have the worksheet name I am then trying to use it in a formula as
follows to be used for a dynamic chart. I posted in the Charts forum but got
no answer. Is this possible and if so am I on the right track?
this would be used for XValues

=OFFSET((INDIRECT(""& M2 &"' !$B$4")),0,0,COUNTA(INDIRECT(""& M2 &"'
!$B:$C))-1,2)

Thanks for any assistance
  #2   Report Post  
 
Posts: n/a
Default

Fysh wrote...
....
Once I have the worksheet name I am then trying to use it in a formula

as
follows to be used for a dynamic chart. I posted in the Charts forum

but got
no answer. Is this possible and if so am I on the right track?
this would be used for XValues

=OFFSET((INDIRECT("'"& M2 &"' !$B$4")),0,0,COUNTA(INDIRECT("'"& M2

&"'
!$B:$C"))-1,2)


First off, don't get cute with your quotes. Use ' and " only. And don't
add unnecessary whitespace - the space between the ' and ! throws a
syntax error.

=OFFSET((INDIRECT("'"&M2&"'!$B$4")),0,0,COUNTA(IND IRECT("'"&M2&"'!$B:$C"))-1,2)

As for using this in chart series, you have to use trickery. See

http://groups-beta.google.com/group/...52f0f2d84f9e51

  #3   Report Post  
Fysh
 
Posts: n/a
Default

Thanks it worked like a charm.

" wrote:

Fysh wrote...
....
Once I have the worksheet name I am then trying to use it in a formula

as
follows to be used for a dynamic chart. I posted in the Charts forum

but got
no answer. Is this possible and if so am I on the right track?
this would be used for XValues

=OFFSET((INDIRECT("'"& M2 &"' !$B$4")),0,0,COUNTA(INDIRECT("'"& M2

&"'
!$B:$C"))-1,2)


First off, don't get cute with your quotes. Use ' and " only. And don't
add unnecessary whitespace - the space between the ' and ! throws a
syntax error.

=OFFSET((INDIRECT("'"&M2&"'!$B$4")),0,0,COUNTA(IND IRECT("'"&M2&"'!$B:$C"))-1,2)

As for using this in chart series, you have to use trickery. See

http://groups-beta.google.com/group/...52f0f2d84f9e51


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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
problem with cell reference in =sum(offset(cell reference,x,y,z,a)). Want cell ref to be variable. [email protected] Excel Worksheet Functions 2 December 11th 04 12:05 AM
Reference Data in Moved Worksheet tommcbrny Setting up and Configuration of Excel 1 December 1st 04 06:49 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
name of another worksheet in cell for reference Tom A Johnson Excel Worksheet Functions 2 November 11th 04 11:28 PM


All times are GMT +1. The time now is 12:52 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"