+ Reply to Thread
Results 1 to 4 of 4

Roundingd ate to nearest Monday

  1. #1
    Registered User
    Join Date
    11-16-2011
    Location
    Reading, England
    MS-Off Ver
    Excel 365
    Posts
    69

    Roundingd ate to nearest Monday

    I'm trying to round a date that an animal calves to the nearest Monday. Therefore in say cell A2 I will have the calving date and I want cell B2 to show the nearest Monday to that date. It may be the previous Monday if animal calves on a Tuesday, Wednesday of Thursday. Or the following Monday if animal calves on a Friday, Saturday or Sunday. If animal calves on a Monday then that date will be the same in B2. Hope that makes sense and any help would be appreciated.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,215

    Re: Roundingd ate to nearest Monday

    Suppose your date in "A2"
    formula in "B2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Both format as : [$-F800]dddd, mmmm dd, yyyy


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    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: Roundingd ate to nearest Monday

    There may be more elegant ways, but this will work with the calving date in A1:

    =IF(WEEKDAY(A1)=2,A1,IF(AND(WEEKDAY(A1)>1,WEEKDAY(A1)<6),A1-WEEKDAY(A1)+2,A1+(7-WEEKDAY(A1))))
    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.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,891

    Re: Roundingd ate to nearest Monday

    Or:

    =WORKDAY.INTL(A2-4,1,"0111111")

+ 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] Userform Spin Up/Down to go to nearest Monday
    By af25 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2015, 06:31 PM
  2. Round to nearest 15 then nearest hour if less than 1 hour
    By BLOUNTFIRE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 12:22 AM
  3. [SOLVED] Calculate future date to nearest Monday
    By mswauger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 04:13 PM
  4. [SOLVED] Find monday preceeding given-date unless date is a monday
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2012, 07:42 AM
  5. [SOLVED] Round Cell to Nearest 0.25 up-to 1.0 then to nearest 0.5
    By haynesc87 in forum Excel General
    Replies: 4
    Last Post: 05-30-2012, 01:38 PM
  6. Nearest Monday
    By luvthavodka in forum Excel General
    Replies: 5
    Last Post: 07-21-2010, 06:13 PM
  7. Replies: 1
    Last Post: 04-13-2005, 06:35 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