+ Reply to Thread
Results 1 to 7 of 7

Column Chart with Variable number of rows of data

  1. #1
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Column Chart with Variable number of rows of data

    I am trying to create a chart that can have between 5 and 20 rows of data. If I create the chart as large as it could be, i end up with a bunch of 0 columns because those rows are empty.

    Attached is an excel showing 3 charts. The first two show how I want the table to look when it has 9 rows of data and 18 rows of data. The third chart shows what happens when i set the chart for 18 rows but only have 9 rows of data. I want that third chart to automatically ignore the rows that are blank, but it does not. The hidden and empty cell option does not seem to help.
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Column Chart with Variable number of rows of data

    Hi,

    I have added a new sheet in the attached excel sheet and created a dynamic chart. However, this works only if you keep "Locations" in the X Axis. Please see if this suits your requirement.


    Regards,
    Chandra



    Please click on ‘ * Add Reputation’ button on the left side bottom of my post if I was helpful in resolving the issue.
    Attached Files Attached Files

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Column Chart with Variable number of rows of data

    Hi,

    An alternate way:

    1. Format the Data Range as Table
    2. Create a new bar chart after selecting the table
    3. As and when you insert new rows into the data range, the chart gets auto updated.

    I have shown this in Sheet3 of the attached file and hopefully this should suit your requirement.


    Regards,
    Chandra
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Column Chart with Variable number of rows of data

    The first option solved it perfectly. Name Manager was exactly what I needed.
    Quote Originally Posted by cbatrody View Post
    Hi,

    I have added a new sheet in the attached excel sheet and created a dynamic chart. However, this works only if you keep "Locations" in the X Axis. Please see if this suits your requirement.


    Regards,
    Chandra



    Please click on ‘ * Add Reputation’ button on the left side bottom of my post if I was helpful in resolving the issue.

  5. #5
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Column Chart with Variable number of rows of data

    Follow up question: Is there a way to make the width of the chart dynamic?

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Column Chart with Variable number of rows of data

    Yes there is, you mean you would have more number of Test columns in the table and the number of rows will be constant.

  7. #7
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Column Chart with Variable number of rows of data

    I want the charts visual area to be wider or smaller based on the number of rows of location data.

+ 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] Sorting rows of data based off a single column for a variable number of entries.
    By soxcrates in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 12:31 PM
  2. Populate chart with data from column (Unknown number of rows)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2012, 07:25 AM
  3. Replies: 6
    Last Post: 04-14-2012, 04:07 AM
  4. How to sum a column containing a variable number of rows use same sum other columns
    By KrustyKurmudgeon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2012, 11:01 AM
  5. Code to plot a chart from a data set with a variable number of rows
    By MichaelMcF in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-28-2012, 07:31 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