+ Reply to Thread
Results 1 to 7 of 7

Pull Data from Last Week Only?

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Pull Data from Last Week Only?

    How can I pull data from last week only regardless of today's date? I want the formula to be able to work in these situations below:

    I.e.

    1) Today is 11/20/2016, I want to pull data from previous week Sunday (11/13/16) to Saturday (11/19/2016)

    2) If the date becomes 11/23/2016, I still want to pull the data from the same week range as above.

    **I do not want to have the formula refer to 11/20/2016 as "last Sunday". I want to have 11/13/2016 instead.

    3) If the date then is 11/27/2016, I want to pull the data from the previous week's Sunday (1/20/16) to Saturday (11/26/16)



    Apparently this formula does not do the trick- for it is only for this week: =COUNTIFS('Feedback Data'!C:C,">="&(TODAY()-WEEKDAY(TODAY())+1),'Feedback Data'!C:C,"<="&(TODAY()-WEEKDAY(TODAY())+7),'Feedback Data'!$E:$E,A3)



    Let me know how to write this...
    Last edited by excellenthelp; 11-22-2016 at 01:02 AM.

  2. #2
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Pull Data from Last Week Only?

    Hmm... The closest I could get is:

    Please Login or Register  to view this content.


    But it will screw up if the TODAY's date is a Sunday - it will spit out two Sundays before TODAY's date.

    What is the fix for it?

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pull Data from Last Week Only?

    I am hoping there is a simpler way. So far this is as good as I can come up with.

    If you array enter this formula it will return 11/13/2016 until 11/27/2016. To get the last date in the week add 6 to results in another (adjacent?) cell.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Pull Data from Last Week Only?

    You could try =(TODAY()-7)-WEEKDAY(TODAY()-2)

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pull Data from Last Week Only?

    @ David A Coop

    Try this small change to your formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I experimented with it using a reference cell instead of TODAY.
    It always returns Sunday of the previous week until the following Sunday ... meaning a new previous week.

    The simple frequently eludes me.

  6. #6
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: Pull Data from Last Week Only?

    Hi all - Thank you for helping! You helped me narrow down on the formula and the result was this:

    Please Login or Register  to view this content.
    Thanks you all! All of you got reputations!

    Marking this as SOLVED.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pull Data from Last Week Only?

    You're welcome. Glad you found your solution. Thanks for the feedback and the rep.

+ 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. How to consolidate a data pull by person, expense category and week
    By jnk_0487 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 02-02-2015, 07:58 PM
  2. [SOLVED] Making Daily Sales Planner recognize which month and which week to pull sales data from
    By Topher53180 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 10:33 AM
  3. Replies: 1
    Last Post: 07-21-2014, 06:13 PM
  4. Pull in Data for Week to Date and Previous Day
    By cartica in forum Excel General
    Replies: 5
    Last Post: 08-06-2013, 09:41 PM
  5. Replies: 1
    Last Post: 02-04-2013, 11:40 AM
  6. [SOLVED] Pull information based on week date falls under
    By mjhopler in forum Excel General
    Replies: 1
    Last Post: 06-19-2012, 11:54 AM
  7. Macro To Pull Last week worth of Data out of a Worksheet
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 46
    Last Post: 12-08-2010, 09:51 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