+ Reply to Thread
Results 1 to 15 of 15

graph merged cells, without graphing gaps or spaces?

  1. #1
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10

    graph merged cells, without graphing gaps or spaces?

    How can I graph merged cells, without graphing gaps or spaces of the skipped cells?
    Matthew Doucette / Xona Games
    Duality ZF: Our upcoming 4-player dual play Xbox 360 arcade 2D shoot'em up.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Don't graph the merged cells.

    Create a set of data specifically for the chart.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10
    Quote Originally Posted by Andy Pope View Post
    Don't graph the merged cells.

    Create a set of data specifically for the chart.
    Is that the only way?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    err, if there was an alternative I would have suggested it

    Why are the chart values in merged cells anyway?
    maybe posting an example would help.

  5. #5
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10
    Well I appreciate your suggestion, it looks like I'll have to do it that way.

    My example: There are weekly totals of days (each day on its own row). So picture every 7 cells down merged in a new column, for weekly totals.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    can you post an example?

  7. #7
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10
    sure...

    9/14/2008 178
    9/15/2008 997
    9/16/2008 397
    9/17/2008 50
    9/18/2008 717
    9/19/2008 528
    9/20/2008 625 3491
    9/21/2008 497
    9/22/2008 966
    9/23/2008 243
    9/24/2008 245
    9/25/2008 227
    9/26/2008 197
    9/27/2008 476 2852
    9/28/2008 12
    9/29/2008 40
    9/30/2008 945
    10/1/2008 910
    10/2/2008 559
    10/3/2008 587
    10/4/2008 270 3323
    10/5/2008 963
    10/6/2008 624

    I want to graph the weekly totals (3rd column) without gaps.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    How can I tell the merge cells from your post???

  9. #9
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10
    i'm not sure how to post excel into here.

    there are no merged cells in my post... but, i had merged each weekly total with the 6 blank cells above it, so it spans 7 cells and sits next the the daily counts it represents. i merged them hoping that graphing those merged cells would not create gaps in the graph.

    i hope that explains it?

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    There is a Manage Attachements button you can use when posting a reply.

    As I said you can not chart directly from the range containing merged cells as it will include the empty one.

    The example uses formula to extract the weekly totals into single table of values.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-04-2008
    Location
    Canada
    Posts
    10
    Thank you, Andy, for all your help. These forums are extemely helpful, I must say!

    The only downfall to this solution, is the data doesn't stack the same height. So, as I add new daily totals to the bottom, imagine it being pages and pages long, I will have to scroll up and update the re-formatted data in a different spot.

    Any solutions to that?

  12. #12
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Extend the formula down to an extent that will cover future periods.
    Then use a named range to define which cells to use in the chart.

    See attached.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    You might want to look at a pivot table and pivot chart, you can use a dynamic named range for these too, and they have inbuilt capacity to do things like group days in 7s

  14. #14
    Registered User
    Join Date
    05-14-2012
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: graph merged cells, without graphing gaps or spaces?

    Hi there Andy Pope,

    that was indeed very helpful, but in my spreadsheet, I can't get this OFFSET function working unless I delete all my header rows. I've looked at excelfunctions net to get an explanation of the OFFSET function, but can't seem to work out how to interpret the part of the formula that reads '(ROW()-1)*7'. I can't seem to attach my spreadsheet using either Firefox or Chrome to show you what I've done. Are you able to give a layman's explaination for how that bit of the formula works?

    Kind regards,

    Paul

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: graph merged cells, without graphing gaps or spaces?

    Paul, welcome to the forum

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Sorting Cells Merged Column
    By Merlin54k in forum Excel General
    Replies: 1
    Last Post: 10-03-2008, 04:34 PM
  2. graphing two sets of data on same graph
    By mufan in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-23-2008, 07:24 AM
  3. graphing items with different units on same graph
    By mufan in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-25-2008, 12:10 AM
  4. Graphing specific cells
    By clintonf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2008, 12:50 PM
  5. Chart / Graph dissapears when hiding cells
    By carlyman in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-29-2007, 12:15 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