+ Reply to Thread
Results 1 to 7 of 7

Graph in multiple sheets but with the same selection from each sheet.

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    4

    Graph in multiple sheets but with the same selection from each sheet.

    Hi All,
    This is wonderful forum and I need a small help on my graph issue.

    I have a workbook, which has 20 sheets, I am trying to draw a graph on each sheet ( for Ex. sheet1, a line graph , and data points will be use as Column B,C,D from sheet1)
    So I have to draw the same graph on each sheet from their respective sheet Column B,C,D . So how to do that.

    I can select all the sheets in 1 go and then can make selection of B,C,D column which will select these 3 columns from all the sheet but when I say Draw Line Graph , the menu will be disabled.

    So to draw graph, I have to go to the each sheet and then I have to say insert line graph. To even simplify, I have added Line Graph as shortcut under "QuickAccess" menu. But still I have to click 20 times to draw the graph.

    Please suggest is there any solution without using VBA.

    There was one more problem using VBA, Using VBA, the graph alignment wasn't looking good compare to manual insert.

    Thanks in advance for any inputs on this query.

    I am using Office 2016.

    Thanks,
    Excel Curiosity

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Hi Excel Curiosity,
    Can you post an example file?
    Doesn't have to be 20 worksheets 3 will be enough.
    Question, do the Columns 'B', 'C' & 'D' have the same names in all worksheets?
    Thanks
    Remember you are unique, like everyone else

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    4

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Thanks noboffinme for your reply.
    Here with attaching a sample file for your reference.

    All sheets will have same column header and I am plotting same type of graph. If I do with this VBA automation, graphs are coming with correct alignment.
    Attached Files Attached Files

  4. #4
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Hi Excel_curiousity,
    If this is something that will be used for a long period of time, it's worth putting some time into building it using a few shortcuts.
    The Columns you are charting are 'E', 'F' & 'G', I assume that's correct as you advised 'A', 'B' & 'C'?
    You can copy the chart from the first Chart worksheet, paste it into the new worksheet and then change the reference, this will ensure the chart format stays the same.
    You could also use OFFSET & COUNTA in your range reference and this would automatically change your chart if you added new data.
    https://www.excel-easy.com/examples/...med-range.html

  5. #5
    Registered User
    Join Date
    03-19-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    4

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Yes, this is going to be used many times. Can you please do one example and upload sheet here.. I will see your thoughts into actual implementation.

    Yes, Those are the E/F/G columns. earlier, i was just referencing for EXAMPLE kind.

    I appreciate your reply.

  6. #6
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Hi,

    I've attached a file with 5 worksheets.
    I've taken the below steps to do this;
    1. Highlight the Cells from 'E1' to 'G10'
    2. Under the Home Tab, select 'Format as Table'
    3. Go to the Insert Tab & choose a Line Chart
    4. Select a suitable Line Chart

    This process needs to be repeated for all 20 worksheets but once you're done, each chart will auto update when you add data to the relevant table.
    Have a look at the attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-19-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    4

    Re: Graph in multiple sheets but with the same selection from each sheet.

    Hi Noboffinme,

    Thanks for taking time and putting solution here.
    But whatever steps you have mention 1 to 4 , I am doing those manually and it's not helping me to save my time.

    As every time there will be a different excel file, may or may not have 20 sheets ( less or more) . This excel file is created automatically using Toad Automation designer module.

    what I was looking for, to automate line charts of same type in one single click without navigating to 20 sheets or doing anything.

    Best part is, the graph which i have to plot on each sheet for the respective data from each sheet, it needs to come from the same 3 columns.

    Above suggested solution is the same thing I am doing.

    I am doing one more step, If you select all sheet (using shift key , click first and last sheet and it will select all the sheets) and then Click the 3 columns (say E, F , G) then this selection will applies to all the sheets.


    So that way, I am saving one step for each sheet of selection of columns. But when I want to drop line chart, that icon will be disabled. Generally MS Excel should allow that. (keeping is mind the selection is similar)

    but looks like i need to write some fancy VBA code for to achieve this.

    Thanks for your help.

+ 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. Select a cell at random based on multiple selection criteria across multiple sheets.
    By scottyms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 09:44 AM
  2. Multiple graph selection and editing
    By veracity in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-26-2015, 03:10 AM
  3. Multiple graph selection and editing
    By veracity in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-25-2015, 02:09 PM
  4. How to graph from multiple sheets
    By Edman in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-21-2015, 12:33 AM
  5. PDF with multiple sheets and with selection
    By philwongnz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2014, 07:29 AM
  6. Replies: 1
    Last Post: 06-01-2010, 07:44 PM
  7. Graph on each sheet when I mark same cells on multiple sheets
    By Marcus7832214 in forum Excel General
    Replies: 0
    Last Post: 08-11-2006, 05:45 AM

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