+ Reply to Thread
Results 1 to 6 of 6

Selecting the next weekday

  1. #1
    Registered User
    Join Date
    09-22-2022
    Location
    Casper, WY
    MS-Off Ver
    MS 365
    Posts
    11

    Selecting the next weekday

    I want to automate the next weekday function, which I manually update now. I use the 9/28/2022 date format, which is a Wednesday. I would like the cell to automatically pick the next Friday, in this example would be 9/30/2022, and display the date 9/30/2022, not the text Friday. If the cell shows 9/30/2022 I would like the cell to display the next Monday. I've been playing around with IF and Weekday with no success yet. Thank you for your time and consideration.
    Last edited by WyoMan; 09-28-2022 at 02:13 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: Selecting the next weekday

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-22-2022
    Location
    Casper, WY
    MS-Off Ver
    MS 365
    Posts
    11

    Re: Selecting the next weekday

    Thank you Fluff13. I'm working with it. Let me see if I understand: A2 is the Start Date, or cell reference; 1 is Days (not sure what this means), and "1110110" seems to be the days of the week. If I want to manipulate the dates displayed, how do I accomplish that? For example, say I want to show a Tuesday, Thursday, Saturday date?

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Selecting the next weekday

    The first position is Monday, the second is Tuesday, ..., the last is Sunday.
    0 means Weekday; 1 means No weekday (Weekend day).

    If you want to show Tuesday, Thursday and Saturday date, please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-22-2022
    Location
    Casper, WY
    MS-Off Ver
    MS 365
    Posts
    11

    Re: Selecting the next weekday

    AWESOME!! Fluff13 and HansDouwe, you are rockstars! I am humbled by the help I have received on this forum. Thank you both very much!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,098

    Re: Selecting the next weekday

    Glad to help & thanks for the feedback.

+ 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] Copy content of table to Weekday named sheet based on Weekday name in table?
    By Elijah in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 12-07-2020, 04:30 AM
  2. Using weekday function to get average if criteria range equals weekday
    By andrew.beckett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2020, 05:09 AM
  3. [SOLVED] Selecting 3 ODD and 3 Evven numbers when randomly selecting from a range of cells
    By UltimateNeo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-23-2019, 05:23 PM
  4. Excel VBA code to return weekday name from a date then autofilters for userdefined weekday
    By studyengineering in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2016, 03:24 PM
  5. [SOLVED] Calculate weekday end date based on sum of weekday start date and cell value
    By Rerock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2014, 09:17 AM
  6. [SOLVED] If Weekday() = vbSaturday Or Weekday() = vbSunday Then
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2014, 09:48 AM
  7. [SOLVED] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 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