+ Reply to Thread
Results 1 to 7 of 7

Plotting chart based on dates but extracting days of week only

  1. #1
    Registered User
    Join Date
    07-01-2006
    Posts
    40

    Plotting chart based on dates but extracting days of week only

    I have dates in column A and profit/loss figures for each particular date in column B

    I'd like to make a column chart that shows amount of profit above zero line and amount of loss below zero line but instead of having it tied to a specific date, I'd like Excel to determine what day of the week the given date was and plot the chart per day of week.
    So effectively, I would have only 7 columns and all data in the range which fell on Monday for instance would be compounded into that Monday column (net profit/loss so if there were more profits across all Mondays the bar would be above zero and vice versa)

    ...suggestions?

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Plotting chart based on dates but extracting days of week only

    Suggest you first add an extra column into your data and determine the weekday for each of your date entries using the WEEKDAY formula.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    07-01-2006
    Posts
    40

    Re: Plotting chart based on dates but extracting days of week only

    yes I have that so far...
    but how do I have the data "add up" all Mondays for instance. Right now it just bunches the profits/losses from all Mondays into Monday chart column (it's clear on scatter graph that this is what's happening) instead of summing all values into one chart column

    Do I have to make a separate data range that would first extract all Mon,Tue,Wed... etc. references and add their respective values and then make a chart based on this new data range?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Plotting chart based on dates but extracting days of week only

    Can you post a sample?

  5. #5
    Registered User
    Join Date
    07-01-2006
    Posts
    40

    Re: Plotting chart based on dates but extracting days of week only

    here's xls file
    Attached Files Attached Files

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Plotting chart based on dates but extracting days of week only

    Yes. You were correct that you would need to first sum for each weekday. See the attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-01-2006
    Posts
    40

    Re: Plotting chart based on dates but extracting days of week only

    Thank you... I see how you got it to work

+ 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