Subtract/Take X Months Off Date

Apr 18, 2008

A1 contains an entered date (4/18/08). B1 contains an entered number representing months (6). I want C1 to subtract 6 months from 4/18/08 and then show the rounded down date of 10/1/07.

View 9 Replies


ADVERTISEMENT

Excel 2010 :: Add 12 Months To Date And Then Subtract Today

Apr 25, 2014

I'm in Excel 2010, and the cell with the date I want to work from is G22e?

EDIT: I'm trying to get the difference of the (date+12 months)-TODAY() to appear in months and days. (I also meant H22 not G22)

Here's the latest thing I tried (that doesn't work):

=IF(DATEDIF(H22,TODAY(),"y")>=1,DATEDIF(H22,TODAY(),"y")&" yrs, "&DATEDIF(H22,TODAY(),"ym")&" mths, "&DATEDIF(H22,TODAY(),"md")&" days",IF(DATEDIF(H22,TODAY(),"ym")>=1,DATEDIF(H22,TODAY(),"ym")&" mths, "&DATEDIF(H22,TODAY(),"md")&" days",DATEDIF(H22,TODAY(),"md")&" days"))

EDIT #2: I guess I should probably note that the date in H22 is the result of another formula

=EDATE(G22,12)

View 7 Replies View Related

Function That Takes Date In Format YYYYMM And Add / Subtract Number Of Months

Dec 13, 2011

I'm trying to write a function that takes a date in format YYYYMM and adds/subtracts a number of months.

for example: newDate(YYYYMM,numMonths)

newDate(201109,5) would give 201202
newDate(201102,-4) would give 201010

I was thinking i could use the left/right function to retrieve the month and year ........

View 7 Replies View Related

How To Subtract / Add Days / Months Using Borrow / Carry Forward To Previous Cells

Dec 8, 2013

I have subtracted two dates from B2 & B1 using DATEDIF() Function and the results are available in (B5) Year, (C5) Month and (D5) Days respectively. Now the problem is how to Subtract, Add days & Months using borrow, Carry forward to the previous cells (I need formula, function for the above). I have to take 30 days from month ie in C5 if the days (D5

View 1 Replies View Related

Elapsed Months (many Months Have Gone By Since Todays Date)

Jul 19, 2009

Cell A1 is a past date. In cell B1 I would like how many months have gone by since todays date. eg. Cell A1 = July 07, B1 would = 24 months.

View 3 Replies View Related

Creating View By Filtering 2 Columns By Date (both Within 3 Months Of Today Date)

Mar 20, 2014

Trying to do a linkback from another post located here but not having much luck doing it: [URL]

I'm working with 2 date columns and trying to filter a view to only include projects with dates within 3 months of today's date.

I've attached a current working file of the data and the end result i'm hoping to achieve via a macro of some sort.

I've manually got it to work via formula by inserting 2 additional columns (highlighted yellow) which determine if the dates "YES" fall in this 3 month time frame of "" blank if not.

create a macro which does all of this automatically without modifying any columns if this is possible

View 5 Replies View Related

How To Subtract A Year From Date

Aug 30, 2013

If I have a date format 7/1/13 that shows as Jul 13, how can I subtract 1 year from this in the next cell?

View 3 Replies View Related

Subtract Date With No Year

Oct 2, 2007

I am looking for a way to count the number of Days after Christmas each year.

For example today is the 1st October hence it is easy to work out the number of days since last Christmas as being =Today()-25/12/2006

How do I have a reoccuring formula that is Today-Christmas each year without having to enter the year of last Christmas so that for example as at 26/12/2007 the answer will be 1 and so it will also be on the 26/12/2008?

View 9 Replies View Related

Subtract Date And Time

May 22, 2009

Is there a way to subract date and time? For example if in cell A1 you have 05/20/09 8:00 am. and in B1 you have 5/21/09 16:00. You want to know the time in between.

View 10 Replies View Related

Add Day To Date & Subtract Month

Jul 9, 2007

in the attachment I have problems in Cell B4, A9, and B9:

1. Cell B4: if Cell C2 is 25-May-07, then Cell B4 must be 26-Apr-07, if Cell C2 is 25-Apr-07, then Cell B4 must be 26-Mar-07, I did, but it is not working well, mean the format is not applied on that (Cell B4)

2. Cell A9: if Cell B4 is 26-Apr-07, then Cell A9 must contain the day of Cell B4 format (d), like 26...

3. Cell B9: the same as Cell A9, but format must be (ddd)

View 5 Replies View Related

Subtract Weekdays From Set Date

Dec 18, 2007

I need a formula which counts back a set number of weekdays from a given date. Eg. I am supplied with a project end date and need to schedule 25 week days prior.

I've searched a can only find formulas for the number of weekdays between 2 dates.

View 4 Replies View Related

Find Starting Date And Fill In The Following Months Until End Date

Mar 4, 2013

I have collected some data on economic factors for different countries. Unfortunately, the dates when I started to calculated my economic factors are different for each country (due to the data available to me).

What I would like Excel to have done is to take the date when I started to measure for e.g. country A (D3 ie 30/06/2007), copy it into column "I" (for country A, it's cell I3) and fill in the following months in the rows below (with always the date of the last day of a month) until it reaches 28th of Feb 2013. Then, it should go up to the next country (country B) take the starting date (D4, ie 31/07/2007), go to the last entry in "I" (ie I71) and paste the date in, fill in the months until 28th of Feb 2013, do the same for country C and so on.

I have started to code a VBA but I am unfortunately a beginner in VBA and totally stuck at the moment. My VBA code does paste in the months but for some reason, it also changes the starting date of the first month.

Moreover, I tried a workaround for the fact that Excel doesnt know when to stop; ie I introduced a "monthdiff" variable which should calculate the number of months between the starting date (which is variable and unique for each country) and the end date (which is always 28th of Feb 2013). At the moment, it only does this for country A.

VB:
Set rng = ActiveSheet.Range("I3" & Cells(monthdiff, "I").Address)[SIZE=4][/SIZE]

I have tried to make this dynamic but have been unsuccessful so far.

Spreadsheet with data&code is attached.

VB:
Sub Macro1()
Dim mainrange As Range
Dim rng As Range

[Code].....

View 3 Replies View Related

Filter Data By Date Within 3 Months Of Today Date?

Mar 20, 2014

I'm trying to filter 2 date columns to include only data containing dates within 3 months of today's date.

I see there is a data filter option for "next quarter" but not 100% sure if this covers the quarter from today's date?

View 3 Replies View Related

Subtract Number Of Workdays From A Date

Feb 26, 2014

I am looking for a formula which substract a number of workdays defined in a cell from a date defined i nanother cell. For example I have a date in cell B2: 10.08.2014 - this is the due date for service delivery. In cell C2 there is a number of workdays: 84 - this is the duration for the delivery process. I would like to have a formula calculating in cell D2 the date when the delivery process has to start. The tricky point is that B2 is basicly a range of merged cells B2:B6. As an example I am attaching an exmple sheet.

View 10 Replies View Related

How To Calculate Date In The Future And Subtract One Day

Nov 9, 2011

I'm trying to calculate a date in the future and subtract one day.

The date entered in N38 is 11/09/11.

The term entered in months in C8 is 24.

I want N39 to return the date 24 months in the future minus one day.

So N39 should dispay 11/08/13

How the heck do I do that?

View 5 Replies View Related

Add And Subtract Date & Time To Return One Sum

Oct 31, 2008

I am trying to add/subtract dates and times to return one sum; but I only want to count the work week (5 days M-F) and work day (8 hrs.) 8am- 4pm. This is to compute the actual turn around time for a certain process.

i.e.:
Date ReceivedTime ReceivedDate ApprovedTime Approved10/1/20081:00 PM10/15/20089:00 AM

The total hours this process should equate to is: 9days and 6hours.

way to achieve this sum?

View 9 Replies View Related

Subtract Decimal Number From Current Date

Nov 14, 2006

Need to find out exact date. if I insert 32.5 (32 years 5 months ) in particular cell. my output shld be 10 june 1974 or 10/06/1974. I want to find back date...

View 4 Replies View Related

Subtract X Working Hours From Date & Time

Jun 20, 2008

I am trying to subtract 8 hours from a date/time. What I need to do is to capture that lead time using only weekdays, and working hours of 8am-5pm.

For example:

Date/Time
6/23/2008 9:18AM (Monday)

Subtracting 8 hours from this scenario would give me
6/20/2008 10:18AM (friday)

View 3 Replies View Related

Calculate Date Six Months From Cell Date

Jan 25, 2010

I have a start date for a contract in cell AM1. I need AN1 show a date six months from the start date in AM1. I am fine with that part.

However, I would like for AN1 to calculate not only a six-month date but also to auto-update to the next six month date from AM1 once the first six month date is about, let's say, one month past. What I am doing is calculating when a six-month inspection needs to be completed; these inspections are ongoing, so I need them to auto-update.

So let's say a contract was awarded today, 25 JAN 2010. That would be value in AM1.

I want AN1 to produce a date six months from 25 JAN 2010, which would be 25 JUL 2010 (yes, this way of calculating the six month date is fine). Then around, let's say, 25 AUG 2010, I want AN1 to auto-update to produce the next six month date, which would be 25 JAN 2011 (six months from 25 JUL). Obviously the function would need to relate to TODAY() in some way.

View 11 Replies View Related

Subtract 1 Month If The Value Returned Would Be Greater Than Today's Date

Sep 28, 2009

=Date(year(today()),month(today()),A1) works great, However I need the formula to subtract 1 month if the value returned would be greater than today's date.

View 2 Replies View Related

Subtract 1 Year From Date Based On Month (January)

Jan 4, 2014

How I can subtract a year when I formulate based on if the current month is January.

Such as Current month = January 2014, I would require the cell to populate December 2013, any other month would return the current year value.

I have currently tried { =DATE(YEAR(A3)-1,MONTH(A3),DAY(A3)) } whereas cell A3 uses NOW() function formatted to MMMM, but it changes for every month.

View 9 Replies View Related

Date / Time - Subtract Number Of Days Between Cells Only

May 2, 2014

I have a cells with a date and time in each cell. I want to subtract the number of days between the cells only. Is there a way to do that with the time in the cell? If not, how do I remove the time in each cell?

View 5 Replies View Related

If Two Cells Are Blank Return Blank - If One Has Date Subtract Today Date

Apr 24, 2013

Using one spreadsheet with three date columns and two columns counting days.

If there is a value in Resolution date, then Column N is blank
If there is no value in Submit date and Resolution date, then Column N is blank
If there is no value in Resolution date, and there is a value in Submit date, subtract Submit date from todays date to show how many days it has been pending approval

Created on = J4
Submitted on = K4
Resolution Date = L4
Days to Approve = M4 I've got that formula =IF(L4="","",L4-K4)
Days Pending Approval= N4 (cell with formula)

If Resoultion Date L4 has a value, return blank
If Submit on K4 and Resoultion date L4 are blank, return blank
If Resolution date L4 is blank, and Submit on K4 has a value, subtract Todays date from Submit on K4 to show Days Pending Approval

Cell J4______Cell K4______Cell L4__________Cell M4__________Cell N4
Created on___Submit On___Resolution Date___Days to Approve___Days Pending Approval
4/5/13_______blank______Blank____________Blank___________Blank
4/5/13_______4/5/13_____4/7/13___________2_______________Blank
4/5/13_______4/5/13_____Blank____________Blank___________()Today-K4

View 3 Replies View Related

Subtract Days Between Due Date And Today Date If Condition 1 And Condition 2 Are True?

Feb 2, 2014

I need cell (O4) to display days overdue or days remaining on an assigned task based on subtracting due date (M4) from todays date, but only perform days subtraction function if (M4) is not blank and only if task complete cell (N4) is less than 100.

Have the conditional blank cell figured out, but nesting another condition for the less than 100 complete cell. So in other words, I don't want cell (O4) to subtract days and display any error, irrelevant data if there is not any due date entered or the task is entered as complete...

View 3 Replies View Related

Subtract Date/time And Get Elapses Days, Hours, Minutes, Etc

Jul 20, 2007

I want a forumal to do in excel.

Assuming that a workday is from 8:30am to 5:00pm. (also need to not calcualte Saturday and Sunday but this example doesn't show it).

Wednesday, 7/18/07 at 4:00pm (minus) Friday, 7/20/07 at 9:00am (should equal) 10 hours or 1 day, 1 hour and 30 minutes.

Basically what I want to do it determine how much work time has elapsed from the time a message was left on voicemail to the time that someone picks that message up. We only want to assume that a message can be retrieved duruing business hours but a message can be left at anytime!

View 10 Replies View Related

Subtract Date & Time To Show Total Hours & Minutes

Oct 13, 2007

How can I work out the following in hours an minutes: -

Cell A1 = 12th May 2007 20:00
Cell B1 - 14th May 2007 14:30

or should I put the dates and times in seperate cells? I would like the answer to show 42 hours 30 minutes

View 3 Replies View Related

Date More Than 11 Months Using VBA

May 5, 2008

My boss asked me to create a workbook that notify you when the date in the sheet is more than 11 months old.

In column A has list of street names and in column B is where the dates of completed Footpath Replacement occured by the contractors.

We have to check those new footpaths before 12 months up otherwise contractors will not have to return to fix any fault they made.

So what is the code be in Visual Basic Editor with the message box to warn you of any date that is 11 months old?

View 9 Replies View Related

Add Months To Date

Jul 10, 2008

I have managed to create a formula to add a date (contained in cell E3) to a number of months (contained in cell F3).

This formula is in cell G3
=DATE(YEAR(E3), MONTH(E3)+(F3+1), 0)

This works fine. Apart from before I put information into E3 and or F3 then G3 displays "31/01/1900". I wish G3 to remain empty until information is entered into both E3 and F3.

I have used data validation on cell E3 to restrict users to enter a date between 01/01/1980 and 01/01/2099.

View 9 Replies View Related

Add X Months To Date

Jan 30, 2008

I have a macro that adds a text in column H if criteria is met. In column Q I have a date field. I'd like to add 3 months to that date and put the result after my text below, so it would look something like this:

"FORCE-MATCH CANDIDATE < $5K ICDP, 01-04-2008".

Is it possible to do relatively easy?

Sub ForceMatch()
Dim ws As Worksheet
Dim line As Integer
Dim Endline As Long
For Each ws In Worksheets
If ws. Name <> " Total" And ws.Name <> "Batch" And ws.Name <> "Summary" And ws.Name <> "PivotTable" And ws.Name <> "Fields" Then..............

View 3 Replies View Related

Subtract A Static Date And Time From The Current Date And Time

Oct 24, 2007

I have a column of values resulting from subtracting a static date and time from the current date and time.

This means it is constantly updating, which makes it impossible to sort.

All my work depends on sorting those values, though.

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved