+ Reply to Thread
Results 1 to 10 of 10

Categorize Bar Chart

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    7

    Categorize Bar Chart

    Hi,

    I have information I would like to group by Month (This is January), Institution (these will all be different), and commercial or medical categories.

    How do I get it so that commercial and medical are different colours (preferably blue and red)?

    Also, I have uploaded a chart I have found from a different website. I would love to learn how to make my excel chart like this one, where I am shifting through the different months by pressing an up or down button.

    Thanks in advance,

    spicerol
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Categorize Bar Chart

    I can't see the pictures, since I can't see PNG files posted in this forum. I assume you want bar charts just like shown, but only in two colors. I am looking at the source data and I do not see where commercial or medical is shown.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    7

    Re: Categorize Bar Chart

    Hi,

    The booklet I attached before is not my data. It is what I would like to make my data look like but am still having trouble.

    Here is an attached sample booklet of my data. Any ideas of how to categorize as in the previously attached document?

    Cheers,
    Spicerol
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Categorize Bar Chart

    I will give a more detailed write up this evening. The solution depends on named dynamic ranges and their use in charting. Here are a couple of articles that help with that.

    http://www.utteraccess.com/wiki/inde...Dynamic_Ranges
    http://www.utteraccess.com/wiki/inde...namic_Charting

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Categorize Bar Chart

    I put all the stuff on one page so it’s all together and easier to see.

    I’ll start with the two helper columns (F:G). We need two series for medical and commercial so they can be plotted. NA() yields the #N/A error that doesn’t get plotted. You can also set up charts not to plot blank cells.

    Next comes the “spinner.” This comes from the Devolper’s Tab. File -> Options -> Customize Ribbon – click on the Developer box. Click on the Insert (tool box) icon.

    Select either the spinner (up and down arrows) or scroll bar (left and right arrows). I chose the scroll bar. Once you select it, you can draw it on the screen. Hint: holding the ALT key while drawing will snap the edges to the grid.

    Right click on the spinner and fill out the box that comes out. Link the cell to a cell. In this case Cell K1. As you move the pointer back and forth, the number in Cell K1 changes.

    Cell L1 looks up the month value based on the array in Column O. Cell L2 finds the row in which the month in Cell L1 is found in Column A. Cell L2 counts up the number of times the selected month appears in Column A. These numbers are used in a named range called Plot_Month.

    There are three other names, Y_Axis, Medical and Commercial.

    The previous post contains information on named ranges.

    Then I created the chart using fixed ranges and then right clicked and selected Select Data and substituted the dynamic named ranges for the fixed ranges.

    The final touch was to select the header and in the formula bar, type = L2 so it will display the selected month.

    You can recreate these steps yourself or you can *cut* and paste the various cells; the formulas should be able to keep up.
    Attached Files Attached Files

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Categorize Bar Chart

    you could drag the department field to the legend fields area
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  7. #7
    Registered User
    Join Date
    03-17-2016
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    7

    Re: Categorize Bar Chart

    Thanks dflak,

    I have done everything, including defined the named ranges, but I still can't seem to link the graph with the scroll. I know you were describing it by saying "Then I created the chart using fixed ranges and then right clicked and selected Select Data and substituted the dynamic named ranges for the fixed ranges".

    So I created the chart using the fixed ranges, but how do I substitute in the dynamic named ranges?

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Categorize Bar Chart

    See this article: http://www.utteraccess.com/wiki/inde...namic_Charting.

    Basically Right Click the chart, select Select Data and then Edit the series and axis. So where it says something like 'Sheet name'!X2:X100 change it to read 'Sheet name'!Named_Range.

  9. #9
    Registered User
    Join Date
    03-17-2016
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    7

    Re: Categorize Bar Chart

    Thank you so much! It worked out beautifully! I don't quite understand how the OFFSET function works, but it is a sweet function!

  10. #10
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Categorize Bar Chart

    This article http://www.utteraccess.com/wiki/inde...Dynamic_Ranges should give you an idea how offset works.

+ 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. How to categorize data columns into a table/chart
    By rgunes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2014, 01:34 PM
  2. Need to Categorize 1 value in a Graph
    By ECYOJ in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-17-2014, 11:01 PM
  3. [SOLVED] Categorize sheets
    By Aris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2013, 09:58 PM
  4. categorize
    By shane.kelly in forum Excel General
    Replies: 2
    Last Post: 04-02-2012, 01:33 PM
  5. Excel 2007 : VLookup and categorize
    By elchenuk in forum Excel General
    Replies: 1
    Last Post: 11-01-2010, 08:26 AM
  6. Excel 2007 : categorize by month
    By rds207 in forum Excel General
    Replies: 5
    Last Post: 08-04-2009, 04:58 PM
  7. How to categorize values
    By atadeia in forum Excel General
    Replies: 2
    Last Post: 10-27-2008, 11:50 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