Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel calendar - list of names displayed on calendar | Excel Worksheet Functions | |||
Where can I find a 2007 calendar with one worksheet? | Excel Discussion (Misc queries) | |||
import calendar items from excel into outlook calendar | Excel Discussion (Misc queries) | |||
Where can I find a 2006 Business Calendar template? | Charts and Charting in Excel | |||
I can't find a calendar template for 2005 and beyond. | Excel Discussion (Misc queries) |