+ Reply to Thread
Results 1 to 4 of 4

Date Formula - Counting Based on Days Remaining the Week

  1. #1
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Date Formula - Counting Based on Days Remaining the Week

    I have a pivot table that looks like this:

    Date Count
    7/15/2019 2
    7/16/2019 2
    7/17/2019 6
    7/18/2019 4
    7/19/2019 6
    Grand Total 20

    In the 'Date' field, i have a filter for 'this week' to account for only the days this week.

    On another tab, I reference the Grand Total of '20', but I want to be updated to only count the current day and any remaining days in the week from this pivot table.

    Is there a way to update the formula to only take the current day and the remaining days in the week? On the Monday (1st day) of each week, it would calculate a value of '20', '18' on Tuesday.....'6' on the last day of the week. The following 'week', the grand total is all days in the week.

    Current Formula: =SHEET1!$A$6
    Last edited by bdav1216; 07-16-2019 at 09:49 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Date Formula - Counting Based on Days Remaining the Week

    if your pivot will only have a week's data, then:
    =SUMIF(Sheet1!A:A,">="&TODAY(),Sheet1!B:B)

    if you don't even want to filter, then:
    =SUMIFS(Sheet1!B:B,Sheet1!A:A,">="&TODAY(),Sheet1!A:A,"<="&TODAY()-WEEKDAY(TODAY(),2)+7)

    if it doesn't work, upload a sample file and input my formula. we'll tell you what went wrong

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Re: Date Formula - Counting Based on Days Remaining the Week

    I attached a sample of how my data would work. Sheet2 needs the calculation applied, Sheet1 has the raw data example. In Sheet1, I will always have 5 data points.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Date Formula - Counting Based on Days Remaining the Week

    Adjusting benishiryo's first formula to suite the "table" on sheet1 seems to work fine:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Derive the the number of days based on the given date for the week
    By Excel God in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2018, 04:34 AM
  2. automatic revolving timeline based on the current date of remaining days.
    By Brian_Godbey in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-04-2017, 12:03 PM
  3. [SOLVED] Formula for counting rain days of the year, month, and or week
    By dedark05 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-24-2016, 01:27 AM
  4. excel formula: days remaining=end date-todays date+extention days
    By fsprings in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-04-2013, 06:45 AM
  5. [SOLVED] Automatically divide cell by days remaining in the week
    By Granny in forum Excel General
    Replies: 4
    Last Post: 09-01-2012, 02:03 AM
  6. Replies: 3
    Last Post: 04-10-2009, 06:02 PM
  7. Replies: 9
    Last Post: 09-03-2007, 08:26 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