Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Find a Day in a Calendar

Hello from Steved

The below formula will find the last day off each month

My question is please What Formula would I use to find a individual day, for
example 6th off June

=MONTH(A1)<MONTH(A1+1)

Thankyou.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Find a Day in a Calendar

Actually, your formula doesn't "find" the last day of each month, it just
returns True if the date in A1 is the last day of the month. Is that the
test you want to perform for the 6th day of the month? If so, this
formula...

=DAY(A1)=6

will return True if the date in A1 is the 6th of the month (without testing
which month that is). If you need to test specifically for the 6th of June,
then this formula would do that....

=AND(Month(A1)=6,DAY(A1)=6)

where you put the month and day numbers in the obvious places.

Rick


The below formula will find the last day off each month

My question is please What Formula would I use to find a individual day,
for
example 6th off June

=MONTH(A1)<MONTH(A1+1)

Thankyou.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Find a Day in a Calendar

Hello Rick from Steved

{=IF(MONTH(D3-DAY(D3)+1-WEEKDAY(D3-DAY(D3)+1)+Mtx)=MONTH(D3),D3-DAY(D3)+1-WEEKDAY(D3-DAY(D3)+1)+Mtx,"")}

The above is how I've contrasted my twelve month calendar to get the days and
DATE(YEAR(AB3),MONTH(AB3)+1,DAY(AB3)) for the months this example is June.

Using =MONTH(A1)<MONTH(A1+1) in conditional formating it has as you know
allowed me to format the last day off each month. ( "Red Font ,Yellow Fill" )

=AND(Month(A1)=6,DAY(A1)=6) it can not find what would I need to do to my
formulas for the Month to get your formula to work please.

"Rick Rothstein (MVP - VB)" wrote:

Actually, your formula doesn't "find" the last day of each month, it just
returns True if the date in A1 is the last day of the month. Is that the
test you want to perform for the 6th day of the month? If so, this
formula...

=DAY(A1)=6

will return True if the date in A1 is the 6th of the month (without testing
which month that is). If you need to test specifically for the 6th of June,
then this formula would do that....

=AND(Month(A1)=6,DAY(A1)=6)

where you put the month and day numbers in the obvious places.

Rick


The below formula will find the last day off each month

My question is please What Formula would I use to find a individual day,
for
example 6th off June

=MONTH(A1)<MONTH(A1+1)

Thankyou.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Find a Day in a Calendar

Hello from Steved

It took me a while to figure out if I put in the Cell range it works

Thankyou.

"Steved" wrote:

Hello Rick from Steved

{=IF(MONTH(D3-DAY(D3)+1-WEEKDAY(D3-DAY(D3)+1)+Mtx)=MONTH(D3),D3-DAY(D3)+1-WEEKDAY(D3-DAY(D3)+1)+Mtx,"")}

The above is how I've contrasted my twelve month calendar to get the days and
DATE(YEAR(AB3),MONTH(AB3)+1,DAY(AB3)) for the months this example is June.

Using =MONTH(A1)<MONTH(A1+1) in conditional formating it has as you know
allowed me to format the last day off each month. ( "Red Font ,Yellow Fill" )

=AND(Month(A1)=6,DAY(A1)=6) it can not find what would I need to do to my
formulas for the Month to get your formula to work please.

"Rick Rothstein (MVP - VB)" wrote:

Actually, your formula doesn't "find" the last day of each month, it just
returns True if the date in A1 is the last day of the month. Is that the
test you want to perform for the 6th day of the month? If so, this
formula...

=DAY(A1)=6

will return True if the date in A1 is the 6th of the month (without testing
which month that is). If you need to test specifically for the 6th of June,
then this formula would do that....

=AND(Month(A1)=6,DAY(A1)=6)

where you put the month and day numbers in the obvious places.

Rick


The below formula will find the last day off each month

My question is please What Formula would I use to find a individual day,
for
example 6th off June

=MONTH(A1)<MONTH(A1+1)

Thankyou.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel calendar - list of names displayed on calendar Brian'88 Excel Worksheet Functions 3 November 17th 06 10:31 PM
Where can I find a 2007 calendar with one worksheet? lcvalcik Excel Discussion (Misc queries) 1 October 18th 06 09:12 AM
import calendar items from excel into outlook calendar jsewaiseh Excel Discussion (Misc queries) 0 September 2nd 05 03:53 PM
Where can I find a 2006 Business Calendar template? Cindy Charts and Charting in Excel 1 March 22nd 05 03:02 AM
I can't find a calendar template for 2005 and beyond. douginrrnm Excel Discussion (Misc queries) 7 January 30th 05 03:30 PM


All times are GMT +1. The time now is 01:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"