Is there any formula to match dates with the days in excel.
e.g if my date is 25-jan-12 on cell A1 and i wish to return the day of the week on cell B1, what formula can be used?
Is there any formula to match dates with the days in excel.
e.g if my date is 25-jan-12 on cell A1 and i wish to return the day of the week on cell B1, what formula can be used?
Depends what you mean by day of the week. There is a WEEKDAY function, or, if you just mean Monday, Tuesday, etc, you could use formatting on a copy of the cell.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
How about this:
=TEXT(WEEKDAY(A1),"dddd")
- Moo
@Moo: that would probably DAY not WEEKDAY but, if it's just for display, you can do that with formatting.
Regards, TMS
It worked perfectly guys! thanks alot
You're welcome.
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Just to clarify some of the options:
HTML Code:
WEEKDAY is the day of the week. It has a second parameter which determines which day you start counting with;
1 or omitted Numbers 1 (Sunday) through 7 (Saturday). Behaves like previous versions of Microsoft Excel.
2 Numbers 1 (Monday) through 7 (Sunday).
3 Numbers 0 (Monday) through 6 (Sunday).
I probably confused the issue when I replied to Moo as using TEXT would require the second parameter to be "00" not "dd".
Regards, TMS
Thanks, Trevor. Appreciate the clarification.
- Moo
@Moo: You're welcome. Thanks for the rep.
@TMS Thanks for a detail u sent me for the thread. I'm trying to apply it. i hope i succeed
You're welcome. Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks