Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert month to number and subtract one
I have a date in cell A1 of December 1, 2005. I do a =text(A1) and it
returns December. I want to now get November, October in other cells based off of the December cell. How can I subtract from December to get November? Thanks in advance |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert month to number and subtract one
I assume you have =TEXT(A1,"mmmm")
For November: =TEXT(DATE(1,MONTH(A1)-1,1),"mmmm") For October: =TEXT(DATE(1,MONTH(A1)-2,1),"mmmm") etc -- Kind regards, Niek Otten "Deeds" wrote in message ... I have a date in cell A1 of December 1, 2005. I do a =text(A1) and it returns December. I want to now get November, October in other cells based off of the December cell. How can I subtract from December to get November? Thanks in advance |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert month to number and subtract one
Better make that
=TEXT(DATE(2,MONTH(A1)-1,1),"mmmm") etc -- Kind regards, Niek Otten "Niek Otten" wrote in message ... I assume you have =TEXT(A1,"mmmm") For November: =TEXT(DATE(1,MONTH(A1)-1,1),"mmmm") For October: =TEXT(DATE(1,MONTH(A1)-2,1),"mmmm") etc -- Kind regards, Niek Otten "Deeds" wrote in message ... I have a date in cell A1 of December 1, 2005. I do a =text(A1) and it returns December. I want to now get November, October in other cells based off of the December cell. How can I subtract from December to get November? Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can I subtract excel cell values that contain both a number a. | Excel Discussion (Misc queries) | |||
how do i subtract a negative number | Excel Worksheet Functions | |||
if month is less than halfway over subtract 1 | Excel Worksheet Functions | |||
how to subtract the very next LOWEST number | New Users to Excel | |||
How can I subtract 111 from a number like 097 and get 987, using . | Excel Worksheet Functions |