Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=date(year(a1)-1,month(a1),day(a1))
It'll work for almost every date except the leapyear dates (Feb 29, 2008 won't give Feb 29, 2007). alvin Kuiper wrote: Hi Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Thanks Alvin "Dave Peterson" skrev: =date(year(a1)-1,month(a1),day(a1)) It'll work for almost every date except the leapyear dates (Feb 29, 2008 won't give Feb 29, 2007). alvin Kuiper wrote: Hi Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=DATE(YEAR(A1)-1,MONTH(A1),DAY(A1))
Just be careful about leap years. -- Gary''s Student - gsnu200853 "alvin Kuiper" wrote: Hi Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi.
=EDATE(A1,-12) Note that this will move a Feb 29 to Feb 28. Dana DeLouis alvin Kuiper wrote: Hi Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Alvin,
Here's one that'll handle leap years: =MIN(DATE(YEAR(A1),MONTH(A1)-{12,11},DAY(A1)*{1,0})) -- Cheers macropod [Microsoft MVP - Word] "alvin Kuiper" wrote in message ... Hi Is there a way in a worksheet - Functions where i can take a cell value (date) and make it a year less like 01-11-2009 (danish date) shall be 01-11-2008 I can in VB, but can't find it in a waotksheet alvin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert day of year to numeric value format year+day in 4 digits | Excel Worksheet Functions | |||
How do I crate a function for week of year + year in same cell. | Excel Worksheet Functions | |||
Combination Graph with current year and prior year sales | Charts and Charting in Excel | |||
how to calculate $1000/year at 5% for 25 years showing each year | Setting up and Configuration of Excel | |||
trying to get day/month/year froamt while user enters year only | New Users to Excel |