+ Reply to Thread
Results 1 to 4 of 4

Calculate values based on day of the week

  1. #1
    Registered User
    Join Date
    02-17-2022
    Location
    Nairobi, Kenya
    MS-Off Ver
    365
    Posts
    23

    Calculate values based on day of the week

    Every Monday, I want the value in Column B to change to Actual for the previous 7 days (excluding that Monday).

    For example, on 30th May, I want Column B values for 23rd to 29th May to change to Actual.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate values based on day of the week

    In B2 copied down:

    =IF(WORKDAY.INTL(A2,1,"0111111")<=TODAY(),"Actual","Forecast")
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Calculate values based on day of the week

    B2=IF(TODAY()>A2-WEEKDAY(A2,2)+7,"Actual","Forecast")
    Try above formula, copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Calculate values based on day of the week

    Thanks for 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. [SOLVED] Calculate netdays based on hours per week
    By Smythikal in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-02-2019, 02:10 PM
  2. Replies: 4
    Last Post: 03-31-2016, 05:50 AM
  3. [SOLVED] Calculate # days in week based on date range
    By Peelah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2016, 07:01 PM
  4. [SOLVED] calculate weekly volume based on week number
    By karl8695 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 06:23 AM
  5. Replies: 5
    Last Post: 09-25-2013, 01:48 PM
  6. [SOLVED] Calculate YTD based on week selected
    By Aland2929 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2012, 08:51 AM
  7. Use VBA to calculate week cycle based on date
    By batteredveg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2012, 11:06 AM

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