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.
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.
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.
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
Yes, first Sat AM, 2nd PM.
And did you try my suggestion???
Yes, thanks Ali all good.
Cheers
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.
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.
AliGW, what would be the expression if there was also a Wed AM and Wed PM?
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"),"")
Yes, the above works.
Cheers.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks