+ Reply to Thread
Results 1 to 11 of 11

Differentiating Date to Day

  1. #1
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Differentiating Date to Day

    Columns C&D show a date to day conversion in a given week, but Saturdays are split into AM and PM. How can they be marked as such in col F?

    Cheers.
    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
    80,978

    Re: Differentiating Date to Day

    One way:

    =TEXT(C3,"ddd")&IF(WEEKDAY(C3,2)=6,IF(ISODD(SUMPRODUCT((WEEKDAY(C$3:C3,2)=6)*(C$3:C3<>"")))," AM"," PM"),"")
    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 Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Differentiating Date to Day

    What determines whether AM or PM should be added on? Is it just the first one is AM and the second one is PM? Do you want this to apply if there are duplicates of other dates?

    Pete

  4. #4
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Differentiating Date to Day

    Yes, first Sat AM, 2nd PM.

  5. #5
    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
    80,978

    Re: Differentiating Date to Day

    And did you try my suggestion???

  6. #6
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Differentiating Date to Day

    Yes, thanks Ali all good.
    Cheers

  7. #7
    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
    80,978

    Re: Differentiating Date to Day

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  8. #8
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Differentiating Date to Day

    Tried to 'Add Reputation' but received this message:

    'You must spread some Reputation around before
    giving it to AliGW again.'

    Apparently you have too much.

  9. #9
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Differentiating Date to Day

    AliGW, what would be the expression if there was also a Wed AM and Wed PM?

  10. #10
    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
    80,978

    Re: Differentiating Date to Day

    Try this:

    =TEXT(C3,"ddd")&IF(OR(WEEKDAY(C3,2)=6,WEEKDAY(C3,2)=3),IF(ISODD(SUMPRODUCT(((WEEKDAY(C$3:C3,2)=6)+(WEEKDAY(C$3:C3,2)=3))*(C$3:C3<>"")))," AM"," PM"),"")

  11. #11
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    117

    Re: Differentiating Date to Day

    Yes, the above works.
    Cheers.

+ 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] Counting and differentiating dates!!
    By meus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2015, 07:08 AM
  2. [SOLVED] Differentiating between no time and midnight
    By kristy.brown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2014, 08:58 AM
  3. Differentiating recurring values in tables
    By grant606 in forum Excel General
    Replies: 4
    Last Post: 11-19-2007, 02:25 AM
  4. Differentiating between 0 value and no value input
    By svaiskau in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-07-2007, 10:42 AM
  5. differentiating between formulas and values
    By shellshock in forum Excel General
    Replies: 3
    Last Post: 07-07-2005, 01:02 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