+ Reply to Thread
Results 1 to 14 of 14

sum the current week on each day

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    sum the current week on each day

    Hello,

    I'm trying to add a column to give me the the total of the current week for each day of that week. I've tried a few different things but none of them are working. Any help would be greatly appreciated.

    Thank you.


    Book1.xlsx

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: sum the current week on each day

    =sum(index($c$1:c2,aggregate(14,6,row($a$2:a2)/(weekday($a$2:a2,2)=1),1)):c2)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sum the current week on each day

    Maybe this with a helper column in column E.
    1. Enter formula in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Enter formula in F2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F
    1 Date Branch Target WeeklyTarget Helper Results
    2 7/2/2018 701 98,793 317,613 27
    3 7/3/2018 701 50,000 317,613 27
    4 7/4/2018 701 68,820 317,613 27
    5 7/5/2018 701 50,000 317,613 27
    6 7/6/2018 701 50,000 317,613 27
    7 7/7/2018 701 - 317,613 27 1,905,678.00
    8 7/8/2018 701 - 317,613 28
    9 7/9/2018 701 50,000 409,062 28
    10 7/10/2018 701 50,000 409,062 28
    11 7/11/2018 701 71,466 409,062 28
    12 7/12/2018 701 128,077 409,062 28
    13 7/13/2018 701 109,519 409,062 28
    14 7/14/2018 701 - 409,062 28 2,771,985.00
    15 7/15/2018 701 - 409,062 29
    16 7/16/2018 701 215,286 563,414 29
    17 7/17/2018 701 50,000 563,414 29
    18 7/18/2018 701 98,128 563,414 29
    19 7/19/2018 701 50,000 563,414 29
    20 7/20/2018 701 50,000 563,414 29
    21 7/21/2018 701 50,000 563,414 29 3,789,546.00
    22 7/22/2018 701 50,000 563,414 30 563,414.00
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    I figured out another way that may help, I forgot to mention that I'm using a power pivot, I was working on getting the week range in on my date table to only show for the current week.

    I'll let you know how it goes.

    Thank you all for the help.

  5. #5
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by AlKey View Post
    Maybe this with a helper column in column E.
    1. Enter formula in E2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Enter formula in F2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F
    1 Date Branch Target WeeklyTarget Helper Results
    2 7/2/2018 701 98,793 317,613 27
    3 7/3/2018 701 50,000 317,613 27
    4 7/4/2018 701 68,820 317,613 27
    5 7/5/2018 701 50,000 317,613 27
    6 7/6/2018 701 50,000 317,613 27
    7 7/7/2018 701 - 317,613 27 1,905,678.00
    8 7/8/2018 701 - 317,613 28
    9 7/9/2018 701 50,000 409,062 28
    10 7/10/2018 701 50,000 409,062 28
    11 7/11/2018 701 71,466 409,062 28
    12 7/12/2018 701 128,077 409,062 28
    13 7/13/2018 701 109,519 409,062 28
    14 7/14/2018 701 - 409,062 28 2,771,985.00
    15 7/15/2018 701 - 409,062 29
    16 7/16/2018 701 215,286 563,414 29
    17 7/17/2018 701 50,000 563,414 29
    18 7/18/2018 701 98,128 563,414 29
    19 7/19/2018 701 50,000 563,414 29
    20 7/20/2018 701 50,000 563,414 29
    21 7/21/2018 701 50,000 563,414 29 3,789,546.00
    22 7/22/2018 701 50,000 563,414 30 563,414.00


    Sorry, let me clarify.

    Col D is what I'm trying to get. I filled it in manually to show what I'm looking for.

  6. #6
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: sum the current week on each day

    with a helper column
    why?
    =SUM($C$2:C2*(ISOWEEKNUM($A$2:A2)=ISOWEEKNUM(A2))) CSE

  7. #7
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by tim201110 View Post
    =sum(index($c$1:c2,aggregate(14,6,row($a$2:a2)/(weekday($a$2:a2,2)=1),1)):c2)
    This works to give the cumulative total for each week, I'm looking for the full total of the week to be repeated on each row. Col D in the attachment is what I'm looking for as my end result.

    Let me know what you think and thank you.

  8. #8
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by tim201110 View Post
    why?
    =SUM($C$2:C2*(ISOWEEKNUM($A$2:A2)=ISOWEEKNUM(A2))) CSE
    This is also giving me the cumulative total.

    I'm looking for the full week total because I'm trying to build a pivot table and get it to show me the current day's total as well as the current week's total.

    Col D is essentially my helper column.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sum the current week on each day

    Try this
    Enter in D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sum the current week on each day

    ***replace for helper column with =WEEKNUM(A2-1) and use formula from post #9
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by AlKey View Post
    Try this
    Enter in D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    So helper col for the weeknum, looks good.

    Thank you very much.

  12. #12
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by AlKey View Post
    ***replace for helper column with =WEEKNUM(A2-1) and use formula from post #9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sorry, one more caveat, the dates repeat in the table for more than one Branch.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sum the current week on each day

    Then use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: sum the current week on each day

    Quote Originally Posted by AlKey View Post
    Then use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Fantastic!!!

    Thank you.

+ 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] Current Week Course and Assignment
    By Billy Spivy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2018, 09:17 AM
  2. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  3. UserForm with that shows Previous Week Data and allows you to update current week
    By hicks1ch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 09:47 AM
  4. Chart previous week data as grouped and current week as ungrouped
    By r_a_c_a_4_u in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2013, 12:55 PM
  5. Macro to sort an activity sheet by current week and current + last 1 and 2 weeks
    By engineering_excel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-13-2011, 11:28 AM
  6. Replies: 4
    Last Post: 03-21-2011, 05:37 PM
  7. Current week
    By monty4u1 in forum Excel General
    Replies: 2
    Last Post: 11-24-2009, 05:37 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