+ Reply to Thread
Results 1 to 3 of 3

Automatically Updating Formulas Based on Current Week

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    36

    Automatically Updating Formulas Based on Current Week

    Hi,

    I have a formula which calculates the number of unbooked weeks between a specific timeframe. It works well, however, each week I need to update the formulas, so it looks at the correct weeks when calculating.

    Row 1: weekly dates
    Rows 2 onwards: each person's unbooked weeks

    Current Formula is: =COUNTIFS(E2:Z2,"",$E$1:$Z$1,">="&C2,$E$1:$Z$1,"<="&IF($B2="Leaver",$D2,Z$1))
    However, every Monday I need to go in and change column "E" to "F", then the Monday after that to change "F" to G" to make sure it points to the correct weeks (the end date will always remain the same). Essentially the formula needs to calculate unbooked weeks from the current week to the end -- anything that occurred in the past is irrelevant.

    I was thinking of nesting =TODAY()-WEEKDAY(TODAY(),3) somehow in there, but am getting caught-up on the syntax.

    Any ideas would be very helpful! Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Automatically Updating Formulas Based on Current Week

    Maybe

    =COUNTIFS(E2:Z2,"",$E$1:$Z$1,">="&MAX(C2,TODAY()-WEEKDAY(TODAY(),3)),$E$1:$Z$1,"<="&IF($B2="Leaver",$D2,Z$1))

  3. #3
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    36

    Re: Automatically Updating Formulas Based on Current Week

    Thanks! I'll give it a try! Cheers!!

+ 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] 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
  2. Replies: 4
    Last Post: 08-12-2014, 01:18 PM
  3. Formulas not updating automatically
    By ertweety in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-08-2014, 12:42 PM
  4. Replies: 2
    Last Post: 03-06-2014, 11:27 AM
  5. Replies: 4
    Last Post: 03-21-2011, 05:37 PM
  6. Replies: 4
    Last Post: 02-13-2011, 05:37 AM
  7. automatically updating formulas?
    By gillberto in forum Excel General
    Replies: 2
    Last Post: 12-06-2006, 01:10 PM

Tags for this Thread

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