Remember Me?
Menu
Home
Search
Today's Posts
Home
Search
Today's Posts
ExcelBanter
»
Excel Newsgroups
»
Excel Programming
>
Which day
Reply
LinkBack
Thread Tools
Search this Thread
Display Modes
#
1
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Which day
Rick, I caught that after I sent but figured the user could figure out how
to correct
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Rick Rothstein" wrote in message
...
Add one more "th" to your CHOOSE function to handle the 5th such and such
a day in the month; for example September 30, 2010 will be the 5th
Thursday in the month.
=INT((DAY(G10)-1)/7)+1& CHOOSE(INT((DAY(G10)-1)/7)+1,
"st","nd","rd","th","th")&TEXT(G10,"dddd")&" of "& TEXT(G10,"mmmm")
--
Rick (MVP - Excel)
"Don Guillett" wrote in message
...
Looks good and if you really want to get fancy
4thThursday of March
=INT((DAY(G10)-1)/7)+1&
CHOOSE(INT((DAY(G10)-1)/7)+1,"st","nd","rd","th")& TEXT(G10,"dddd")& " of
"& TEXT(G10,"mmmm")
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Peter T" <peter_t@discussions wrote in message
...
=INT((DAY(A1)-1)/7)+1
But I fear that's too obvious and I'm missing something!
Regards,
Peter T
"geebee" (noSPAMs) wrote in message
...
Hi,
I need to write something which determines whether or not the day is
the
first, second, third or fourth day. For example if it is Thursday,
determine
whether or now its the first, second, third or fourth Thursday of the
month.
Thanks in advance,
geebee
Reply With Quote
Reply
Thread Tools
Search this Thread
Show Printable Version
Search this Thread
:
Advanced Search
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
Posting Rules
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
All times are GMT +1. The time now is
04:58 AM
.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
Contact Us
ExcelBanter forum home
Privacy Statement
LinkBack
LinkBack URL
About LinkBacks