+ Reply to Thread
Results 1 to 4 of 4

Have Excel Graph Horizontal Access Reference Have Sheet Name Included in Formula

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    155

    Have Excel Graph Horizontal Access Reference Have Sheet Name Included in Formula

    Attached is a graph that I am using. If you right click on the graph, choose select data, and then edit the horizontal access the formula is below. Rather than having "Main Sheet" in the formula, I want the formula to be able to read the tab name. That way, if I make copies of this worksheet, the tab name is being referenced. If I keep the formula below and then make a copy of the worksheet and name it something different, "Main Sheet" will still be referenced in the graph.


    ='Main Sheet'!$AC$3:$AC$14
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Have Excel Graph Horizontal Access Reference Have Sheet Name Included in Formula

    How do you usually make copies of this tab? The way I usually do it goes something like this:

    With the cursor in the sheet/tab of interest (not the chart):
    1a) Home tab -> Cells group -> Format -> Move or copy sheet... or
    1b) right click tab -> Move or copy sheet...
    2) Select "Create a copy" checkbox and tell where you want the new copy of the tab to be placed.
    3) Confirm selection.
    4) Rename sheet, if I don't like the automatic name that Excel comes up with.

    I find that, when I make copies this way, the embedded chart references all stay referenced to the "current" sheet rather than the original sheet. Since that sounds like what you are asking for, I suggest trying it.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Have Excel Graph Horizontal Access Reference Have Sheet Name Included in Formula

    I have a macro that is creating duplicated tabs so that would not work for me. Do you know of a formula that could reference the tabs name in the horizontal access cells that links to the chart.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Have Excel Graph Horizontal Access Reference Have Sheet Name Included in Formula

    No, I am not aware of a simple "formula" that would fit there. Chart references, even though they look like cell formulas, do not quite work like cell formulas.

    Can you not program you macro that is creating the duplicated tabs to change the tab reference in the chart as it creates the duplicated sheet? Could you record a macro following the procedure I described to see what the VBA code would look like that recreates the exact steps I describe?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula that allows you to change a cell reference, (e.g., vertical to horizontal)
    By natching in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2015, 04:43 PM
  2. Creating a simple line marker graph(example picture included)?
    By eum090 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 03-02-2014, 10:53 PM
  3. Replies: 1
    Last Post: 03-02-2014, 07:17 PM
  4. How to change the graph reference sheet name!!
    By szpt9m in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-28-2013, 05:30 AM
  5. mail merge (?) on certain rows of sheet with access records included too?
    By jontom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-13-2013, 08:07 AM
  6. Not Graph Zeros, Divs or N/As- Photo included.
    By ghladik in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-18-2013, 10:22 AM
  7. [SOLVED] Formula does not work if cell reference is not included
    By yreddic in forum Excel General
    Replies: 3
    Last Post: 08-01-2012, 05:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1