+ Reply to Thread
Results 1 to 3 of 3

convert date into day of the week

  1. #1
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    convert date into day of the week

    Hello all,

    suppose i got in A a date format only example :

    11/03/2010
    13/03/2010
    10/04/2010
    09/05/2010
    08/05/2010

    how do i get in B day of the week if the date match is only for saturday or saunday ?

    thank you

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: convert date into day of the week

    If you have a date in A2 then this formula in B2 will give you the day of the week

    =TEXT(A2,"dddd")

    If you only want to show that if the date is a weekend date then try

    =IF(A2="","",IF(WEEKDAY(A2,2)>5,TEXT(A2,"dddd"),""))

    edit: or shorter version.......

    =TEXT(A2*(WEEKDAY(A2,2)>5),"dddd;;")
    Last edited by daddylonglegs; 05-10-2010 at 06:34 AM.

  3. #3
    Forum Contributor
    Join Date
    09-19-2007
    Location
    Beirut
    MS-Off Ver
    0365 MSO Version 2109
    Posts
    207

    Re: convert date into day of the week

    shorter version works great
    remarkable as usual

    thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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