Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This is very useful in creating an invoice, in which case, you usually
create an invoice for the last month. So, given today Arpil 1, 2009, how to get March 1, 2009 and March 31, 2009 Suppose I have 04/01/2009 in A3 I have been able to find the first date of March through this in for example F8. = TEXT(DATE(YEAR(A3), MONTH(A3)-1, 1), "mm/dd/yyyy") Now, how do I find the last date of the previous month? Thank you. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about the 1st day of this month minus ONE
-- Don Guillett Microsoft MVP Excel SalesAid Software "Author" wrote in message ... This is very useful in creating an invoice, in which case, you usually create an invoice for the last month. So, given today Arpil 1, 2009, how to get March 1, 2009 and March 31, 2009 Suppose I have 04/01/2009 in A3 I have been able to find the first date of March through this in for example F8. = TEXT(DATE(YEAR(A3), MONTH(A3)-1, 1), "mm/dd/yyyy") Now, how do I find the last date of the previous month? Thank you. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Apr 1, 5:25*pm, "Don Guillett" wrote:
How about the 1st day of this month minus ONE -- Don Guillett Microsoft MVP Excel SalesAid Software "Author" wrote in message Sounds cool, but how? I am not an Excel person. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=DATE(YEAR(A3),MONTH(A3),0)
for last day of pervious month and =DATE(YEAR(A3),MONTH(A3)-1,1) for the first day of previous month... If you want in text format then put TEXT around it with desired format... -- -Sheeloo ------------------------------------- Pl. click ''Yes'' if this was helpful... "Author" wrote: This is very useful in creating an invoice, in which case, you usually create an invoice for the last month. So, given today Arpil 1, 2009, how to get March 1, 2009 and March 31, 2009 Suppose I have 04/01/2009 in A3 I have been able to find the first date of March through this in for example F8. = TEXT(DATE(YEAR(A3), MONTH(A3)-1, 1), "mm/dd/yyyy") Now, how do I find the last date of the previous month? Thank you. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
For the last day of the previous month:
=A3-DAY(A3) For the first day of the previous month: =DATE(YEAR(A3),MONTH(A3)-1,1) -- Biff Microsoft Excel MVP "Author" wrote in message ... This is very useful in creating an invoice, in which case, you usually create an invoice for the last month. So, given today Arpil 1, 2009, how to get March 1, 2009 and March 31, 2009 Suppose I have 04/01/2009 in A3 I have been able to find the first date of March through this in for example F8. = TEXT(DATE(YEAR(A3), MONTH(A3)-1, 1), "mm/dd/yyyy") Now, how do I find the last date of the previous month? Thank you. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Wed, 1 Apr 2009 14:14:37 -0700 (PDT), Author wrote:
This is very useful in creating an invoice, in which case, you usually create an invoice for the last month. So, given today Arpil 1, 2009, how to get March 1, 2009 and March 31, 2009 Suppose I have 04/01/2009 in A3 I have been able to find the first date of March through this in for example F8. = TEXT(DATE(YEAR(A3), MONTH(A3)-1, 1), "mm/dd/yyyy") Now, how do I find the last date of the previous month? Thank you. Some date in A1. First date of previous month: =A1-DAY(A1)-DAY(A1-DAY(A1))+1 or =DATE(YEAR(A1), MONTH(A1)-1,1) Last Date of previous month: =A1-DAY(A1) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dates - Need to display date one month prior to user-entered date | Excel Worksheet Functions | |||
Date arithmetic: adding 1 month to prior end of month date | Excel Worksheet Functions | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
=VLOOKUP(1,Nationality!B5:B29,IF(MONTH(date)6,MONTH(date)-6, MON | Excel Worksheet Functions | |||
Calculate month-end date from date in adjacent cell? | Excel Worksheet Functions |