Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
I wanted the value of a cell to change (either "yes" or "No") based on the following date conditions: Return "Yes" if today's date was either the 1st or 3rd or 5th MONDAY of the month (else value = false) Is it possible to do so using a formula? If not what would be the VBA code required for this? Would appreciate help with this TIA Vinay |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at Chip Pearson's site and you can combine some of the formulas there
to do what you want: http://www.cpearson.com/excel/DateTimeWS.htm#NthDoWYear if you want to use VBA, you can find that as well: http://www.cpearson.com/excel/DateTimeVBA.htm#NDow -- Regards, Tom Ogilvy wrote in message ups.com... Hello: I wanted the value of a cell to change (either "yes" or "No") based on the following date conditions: Return "Yes" if today's date was either the 1st or 3rd or 5th MONDAY of the month (else value = false) Is it possible to do so using a formula? If not what would be the VBA code required for this? Would appreciate help with this TIA Vinay |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Mika & Tom
Will give Pearson's site a try Vinay |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is a formula in "one shot" that should do it:
=IF(AND(WEEKDAY(TODAY(),2)=1,OR(DAY(TODAY())<8,AND (DAY(TODAY())14,DAY(TODAY())<22),DAY(TODAY())28) ),"YES","NO") -- - K Dales "Tom Ogilvy" wrote: Look at Chip Pearson's site and you can combine some of the formulas there to do what you want: http://www.cpearson.com/excel/DateTimeWS.htm#NthDoWYear if you want to use VBA, you can find that as well: http://www.cpearson.com/excel/DateTimeVBA.htm#NDow -- Regards, Tom Ogilvy wrote in message ups.com... Hello: I wanted the value of a cell to change (either "yes" or "No") based on the following date conditions: Return "Yes" if today's date was either the 1st or 3rd or 5th MONDAY of the month (else value = false) Is it possible to do so using a formula? If not what would be the VBA code required for this? Would appreciate help with this TIA Vinay |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to K Dales, & Ron.
Both solutions worked Vinay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting Mondays in Date Range | Excel Worksheet Functions | |||
How do I calculate number of Mondays in a given month in Excel? | Excel Worksheet Functions | |||
Count Mondays worked in Month | Excel Worksheet Functions | |||
Count Mondays worked in Month | Excel Worksheet Functions | |||
Is it possible to grab just the Mondays-Thursdays of every month? | Excel Discussion (Misc queries) |