+ Reply to Thread
Results 1 to 7 of 7

Help to plot data by chemical by week

  1. #1
    Registered User
    Join Date
    05-03-2008
    Posts
    35

    Help to plot data by chemical by week

    Hi,

    Attached is a example of the file that I have. I have data that stretches back 4 yrs. I would like to look at the annual data by week number. I would like to chart by chemical the weekly amount of chemical used.

    Eg WW1 Chem A used 4
    WW2 Chem A used 4

    etc.

    Is there a quick way to plot this data by week automatically?

    Thanks in advance for any help
    Attached Files Attached Files
    Last edited by dtgheath; 04-26-2011 at 04:29 PM. Reason: solved

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help to plot data by chemical by week

    Pivot Tables are the quickest way to handle this. What version of Excel are you using?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help to plot data by chemical by week

    Based on the xlsx file. Go to the Insert Tab of the ribbon and click on Pivot Table. Select your complete range i.e. Sheet1!$A$1:$G$31 and insert on a new sheet
    Then move WW to Row labels, followed by Description to Row Labels, then Qty to Values.
    Does that work for you?

  4. #4
    Registered User
    Join Date
    05-03-2008
    Posts
    35

    Re: Help to plot data by chemical by week

    In work I use 2003, and have a pivot table but thought there might be a easier way.

    With the pivot table can you have multiple of charts to show each chemical?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help to plot data by chemical by week

    You want bar charts with week on x and qty on y?

  6. #6
    Registered User
    Join Date
    05-03-2008
    Posts
    35

    Re: Help to plot data by chemical by week

    You want bar charts with week on x and qty on y? Yes, but for each chemical....

    I have the pivot hart which shows all chemicals, I know I can select or de-select the chemicals and update the data to alter the chart but can I have a chart for each chemical or do I need to do what I have been doing (de-select the chemical?)

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help to plot data by chemical by week

    Another alternative with the pivot chart is to put the description in the Report Filter field.
    which still gives you 1 chart at a time but easier to navigate (See attachment)

    OR, you can use SUMPRODUCT to make a table and then grab one row at a time and "Insert Column Chart"
    In my example, in K3, dragged across and down is
    =SUMPRODUCT(--($D$2:$D$26=$J3),--($A$2:$A$26=K$2),$E$2:$E$26)
    I made the first 2 charts for you.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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