+ Reply to Thread
Results 1 to 10 of 10

how to calculate the weekday from day of the month

  1. #1
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    how to calculate the weekday from day of the month

    I want excel to give me the day of the week (monday, tuesday,...) when the day of the current month is typed - e.g today is 11th of July a satuday, so when the user types just 11 in C5, I want D6 to display Saturday. Excel should always show the nth day of the week for the current month.

    Note: I don't want column C to be date formated, it just contains whole numbers, 1 to 31). D6 should show Mon-Sun

    thanks
    Last edited by John19; 07-11-2015 at 06:32 PM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to calculate the weekday from day of the month

    can they type the full date in c5
    if so then format the cell to
    custom>
    DDDD

    and it will show
    Saturday

    otherwise you will need some VBA
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to calculate the weekday from day of the month

    One way:

    Row\Col
    C
    D
    5
    11
    6
    Saturday
    C6: =TODAY()-DAY(TODAY())+C5
    7
    Format of C6: dddd
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: how to calculate the weekday from day of the month

    Quote Originally Posted by shg View Post
    One way:

    Row\Col
    C
    D
    5
    11
    6
    Saturday
    C6: =TODAY()-DAY(TODAY())+C5
    7
    Format of C6: dddd
    that's it - done works perfect
    thank you

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to calculate the weekday from day of the month

    Ok, in your original post before your edit - you wanted the result the same cell as the 11 was typed into - hence my response

    glad you have a result now you have clarified it can be on a different cell

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how to calculate the weekday from day of the month

    This will give you the Name of the weekday if today() is entered in A2 and the number of the date is in B2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Darn: read it wrong again
    Last edited by newdoverman; 07-11-2015 at 06:56 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: how to calculate the weekday from day of the month

    Quote Originally Posted by etaf View Post
    Ok, in your original post before your edit - you wanted the result the same cell as the 11 was typed into - hence my response

    glad you have a result now you have clarified it can be on a different cell
    sorry my mistake

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: how to calculate the weekday from day of the month

    no problem, just clarifying why i suggested VBA ,as the post looks strange from a google search

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to calculate the weekday from day of the month

    Here's another one that returns a TEXT value.

    Assumes the number will always be a valid day of the month. For example, the number for February will never be 30 or 31.

    =TEXT(C5&TEXT(NOW(),"mmm"),"dddd")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: how to calculate the weekday from day of the month

    Or

    =DATE(YEAR(TODAY()),MONTH(TODAY()),C5)

    Format of C6: dddd

+ 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 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
  2. [SOLVED] FIrst Weekday of the month
    By astrikor in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-04-2013, 09:28 AM
  3. Replies: 4
    Last Post: 08-26-2010, 07:32 AM
  4. Dynamic nth Day of Weekday-Next Month
    By nms2130 in forum Excel General
    Replies: 2
    Last Post: 06-29-2010, 09:56 AM
  5. [SOLVED] Xth Weekday of the Month/Year
    By ZuludogM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2005, 07:05 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