Date Issue

Discuss the spreadsheet application
Post Reply
shr667
Posts: 2
Joined: Thu Jan 18, 2018 9:09 pm

Date Issue

Post by shr667 »

I have a series of 186 dates that I need to subtract 6 months from.
They are various dates and I can not seem to find a way to do it easily.
Does anyone have a suggestion.

Thanks
Steve
Windows 10
Open Office 4.1.4
jeffs12
Posts: 42
Joined: Wed Mar 19, 2008 9:48 pm

Re: Date Issue

Post by jeffs12 »

The EDATE function should do what you want.

Below copied from the online help...

EDATE
The result is a date which is a number of months away from the start date. Only months are considered; days are not used for calculation.
Syntax
EDATE(StartDate; Months)
StartDate is a date.
Months is the number of months before (negative) or after (positive) the start date.
Example
What date is one month prior to 3.31.2001?
=EDATE(3.31.2001;-1) returns 2.28.2001.
AOO 4.1.13 on M$ Windows 7/10/11
shr667
Posts: 2
Joined: Thu Jan 18, 2018 9:09 pm

Re: Date Issue

Post by shr667 »

Thank you, saved me a lot of work.
Is it possible to do the year also?
Steve
Windows 10
Open Office 4.1.4
User avatar
Hagar Delest
Moderator
Posts: 32665
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Date Issue

Post by Hagar Delest »

I guess that if you combine 12 as months and Year() you should get what you want.

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the edit button if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply