+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    05-28-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Graph spending vs date

    I've been keeping a record of everything I buy for my car along with hard copy receipts in a folder.

    I want to make an automatically updating graph that is total money spent in a week on the y axis with the date of that week on the x axis.

    You can see in Chart1 I started to attempt this... but quickly saw that failure was inevitable.
    Attached Files Attached Files

  2. #2
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    re: Graph spending vs date

    Hi Taiden,

    good start, but you've come up against some challenges. I attach an Excel 2003 version of your spreadsheet with a few changes:

    1. Since you want to total your spend by week, you need to sum by week, too. Excel charts don't do data summarizing, you have to prepare the data yourself. So I introduced a new column that calculates what week number applies to the date of the line item. This week number plays an important role in a new table, that I've set up to the right of your data entry area. This is where the data gets summarised into spend by week. The week numbers are listed again and a SUMIF formula is used to total up the amounts in your data entry area that have that week number.

    I've created a column chart that shows the dollars spent per week.

    2. Just a suggestion for your area chart: I've changed it, so now it shows the accumulated spend. The column that is charted is now not column B with the individual amounts, but column E, where the amount of every item is added to the total spend since the start.

    Does that make sense to you?
    Attached Files Attached Files
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    re: Graph spending vs date

    That's very helpful, I appreciate it. Is there a way to 'hide' a column of data so the graph can still use it but it's not visible?

    Best wishes,
    Luke

  4. #4
    Registered User
    Join Date
    05-28-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    re: Graph spending vs date

    Oh, what happens when we get to 2010? Wont the week numbers start over? Is there a way around this?

  5. #5
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: Graph spending vs date

    Is there a way to 'hide' a column of data so the graph can still use it but it's not visible?
    Yes. In Excel 2003 do:
    - Select the chart
    - go Tools - Options - Chart tab
    - uncheck "Plot visible cells only"

    what happens when we get to 2010? Wont the week numbers start over?
    Yes, they will.

    Is there a way around this?
    No, every year starts with week 1. What we can do, though, is tell excel to combine the week number and the year number to make an individual reference. See attached version
    Attached Files Attached Files
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

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.2.0