# Calculating Difference In Months Between Dates / Ignoring Days And Years?

Mar 13, 2012
Cell A1 contains 02/29/2012

Cell B1 contains 12/01/2006

I am looking for a formula that will return the number of months (periods) between two dates, ignoring days and years. Using the above dates, which cannot be changed, the result needs to be 63. The formulas I have tried keep returning 64 because my later date is at the end of a period, and my earlier date is at the beginning.

View 7 Replies
ADVERTISEMENT
Oct 17, 2009

my spreadsheet is setup with two dates: A date for when someone joins our group A date for when they are released/leave

I want to be able to see exactly how many years/months/days transpired between these two dates. I have tried lots of different formulas with no success.

View 12 Replies
View Related
Feb 4, 2010

I recently manage to create a spreadsheet. On the spreadsheet what I am looking to do is once I change the year in cell U1 from 2010 to 2011 to automatically change the days and the date number, and where Sat and Sun preferably to auto-fill in yellow the whole column within the table as you can see in the spreadsheet.if not then just do not display Sat/Sun columns at all..

View 5 Replies
View Related
Jan 23, 2009

How can I convert the number of days for example 366 days to years, months, days 366=1year, 0 months, 1 day

View 3 Replies
View Related
Jan 8, 2014

Was needing to calculate years and months returning it such as 2.10 if 2 years and 10 months.

And also if left blank would not return any value. (There might not be a date yet in H3 in some cells.)

G3 thru G1000 has the hire dates. H3 thru H1000 will be the cell for the formula.

View 3 Replies
View Related
Sep 13, 2009

I am using the following formula to calculate years months and days in Excell 2007

=DATEDIF(C7,D7,"y") & " yrs, " & DATEDIF(C7,D7,"ym") & " mths, " & DATEDIF(C7,D7,"md") & " days"

C7 3/24/04

D7 1/4/08

What is returned is 3 years, 9 months, 136 days

How might if fix it show the correct days?

View 9 Replies
View Related
Oct 23, 2009

I have a start date dd/mm/yyyy, and require a formula that everytime a spreadsheet

is opened, based on the current date, to calculate how many years, months and days

have elasped yy mm dd since the start date...

My date formula knowledge is a little limited.

View 9 Replies
View Related
Apr 26, 2007

I have some cells which must be in the format 15/06/2007 15:25

I then need to add either days, months or years onto it.

Say the above date/time is in cell A1, when I do =YEAR(A1)+5 it displays 2012 if I choose the general cell format, but when I select the same cell format (date time) it comes out as 04/07/1905 00:00

View 9 Replies
View Related
Aug 7, 2009

The issue is i want years and months between two dates which are not in computer language. Date like 2008/12 and 2010/01. File is attached for you reference

View 2 Replies
View Related
Apr 12, 2007

Which formula should I use to return years and months between two dates.

4/1/05 7/30/25

View 2 Replies
View Related
Dec 20, 2006

I have two columns with dates (and times) in that I am trying to define how many days, hrs and mins have elapsed i.e. A1 has 12/12/06 21:00, B1 has 17/12/06 21:00. C1 has B1-A1 and is custom formatted to show as dd"days" hh"hrs" mm"mins". In this case it will therefore show as 5days 0hrs 0mins. Which is correct.

However, if more than 1month has elapsed then the format m"m" d"days" h"hrs" m"mins" does not work. For example 17/03/06 03:00 to 20/12/06 07:00 shows as 10m 4days 4hrs 00min, which it clearly isn't.

I know the reason it does this is because it calculates the difference between the two times and adds that to it's 0 value, which in my format is 01/01/1900 00:00. therefore when it adds 277days (the answer) it becomes 04/10/1900 04:00, so my formatting is just calling the month value ('10') and the day value ('4').

I understand the reason it does this, 277 days on from 01/01/1900 is indeed Oct 4th, but 277 days on from 17/03/06 is not 10months and 4 days as there are different length months in between. It also seems to add a month on, possibly because the format for 'months' is between 1 & 12 and therefore cannot begin at 0?

Does anyone know if it's possible to force excel to work out the correct number of months and days have elapsed between two dates and not apply it to 01/01/1900? Or any other possible solution, maybe with a different custom format?

View 4 Replies
View Related
Dec 1, 2013

ith the example below, i am having a problem with the calculation of Total Month. If i put Dec 31 2012 in A2 the total month is 10 BUT if I change the A2 to Dec 30, 2012 the total month is 11. What i am trying to do is to calculate the number of months only disregarding the years. example August 15, 2010 and January 16, 2013 i need to have total months of 5 months only.

A

B

C

1

First Month

2nd Month

Total Month

2

12/31/2012

11/30/2013

=DATEDIF(A2,B2,"ym")

3

View 9 Replies
View Related
Sep 27, 2007

say C2= 22/02/2007. in cell C4 When I use this formula =TODAY()-C2 to get the difference between today and a past date the result the formula give is 07/05/1900

i would like to receive the difference in Months between the past date and today? I.E. HOW MANY MONTHS IN BETWEEN

View 4 Replies
View Related
Feb 21, 2009

what is the formula to convert the date in MMYYYY into some numbers so that I can derive the difference between 2 dates?

For example:

I have 2 dates 31-Jan-09 and 28-Nov-05 in Column A & Column B respectively. I would like to derive no. of months between the difference of the 2 dates which in this case is 38 months.

View 9 Replies
View Related
Jan 30, 2014

I am using the following formula in Column E to calculate the difference between an employees start time, and their previous shift end time in order to work out how many hours rest they have had:

=IF(A4=0,"",IF(I4=0,"",MOD(I4-B4,1)))

My Current Formula works fine for same day calculations, but if an employee finishes work at 18:00 on Friday and starts work at 22:00 Saturday night, Excel calculates the Total Rest hours as 04:00, when in fact they have had 28:00 hours rest...

Is there a way of calculating the hours difference between two dates?

I have attached a sample of my spreadsheet to illustrate

View 5 Replies
View Related
May 14, 2008

I have dates in Column D (mm/dd/yyyy). I'm trying to write a macro to compare the date in any cell in Column D to the current date. Then, if the date in that cell is within a month of the current date, color it red. If the date is within two months, color it orange. Etc, for up to six months. I've read up a little on dates in VBA, but I'm pretty lost.

View 4 Replies
View Related
Jun 18, 2014

How to find the difference between 2 dates in days ,eg,12/10/14 and 14/10/14 = 2 days on a spreadsheet.

View 4 Replies
View Related
Jun 22, 2012

Is there a simple function for calculating the number of months between 2 dates.

Eg 1/5/2012 - 8/9/2020

View 1 Replies
View Related
Feb 2, 2008

I am attempting to get the formula in Column "E" (see attached excel file) to work based off the individual reps 'days off / holidays' (Columns K:P (or more as needed) that they might have. the formula I am using (which works fine) is:

=IF(C2=D2,0, SUMPRODUCT((WEEKDAY(ROW(INDIRECT(C2&":"&D2)),2)={2,3,4,5,6,7})*(COUNTIF($K$2:$S$2,ROW(INDIRECT(C2&":"&D2)))=0)))

My issue comes up when I am coping this formula for say 100+ rows. When I copy the formula to all of the rows, the (COUNTIF($K$2:$S$2) becomes static and does not realize that the row (ie. Row 26 Rep C) has different days off than Rep A. I can manually change the reference for the countif to specify the correct row to their own days but that becomes tedious very quickly. I was wondering if anyone has come across a way to make the countif work based off of that the name in Column B matches the name in Column G then looks 'to the right' and uses the 'days off' that are listed for the corresponding Rep. I have tried a few different ideas but nothing has worked so far.

View 2 Replies
View Related
Aug 16, 2009

I need to create a spreadsheet that will calculate the difference between two dates and show the result in days. The complicated part is that weekends (Sat and Sun) need to be ignored and any time after 4:30 pm needs to be treated as the next business day. I have been trying to look at similar questions in forum and use the WORKDAYS function with little success.

Example:

A1- 14/08/09 4:40 p.m.

B1- 17/08/09 9:10 a.m.

I need the answer (B1-A1) to show up as 0. But if the time in A1 was changed to 4:20 p.m. than the answer should be 1 day.

View 5 Replies
View Related
Jul 11, 2006

I am creating a problem report spreadsheet for work. In col C I have a date/time that the problem started, eg, 23-Jun-2006 15:20 and in col D I have a date/time for when the problem was resolved, eg, 26-Jun-2006 15:40. I need to calculate the amount of hours that we were not available for use (due to the problem). This is based on a list of available hours. Eg, on Mondays we are available 19.5 hrs, T-F 22.5 hrs, Sa 14.5 hrs, and Sun 0 hrs.

If I do a straight subtraction, it uses 24 hrs for each day - not taking into account our available hrs. If I do NETWORKDAYS it automatically doesn't consider Sat or Sun - and i need it to - and it does have a DayEnd and DayStart but it assumes they are constants. I found the day corresponding to the date and thought I could determine the series of days between it, e.g., if the start day was Friday & the end day Monday, the series in between is Sat & Sun. Then I could do a lookup on all 4 days in a table & add them all together. But I can't figure out how to do this!

View 4 Replies
View Related
Aug 5, 2008

I need a formula that will allow me to put a date in cell a2, and in cell a3 put the the number of days between 2 dates. Example.. For example (A2) shows 08/06/08, a3 to show the number of days from 08/06/08 to 08/14/2008--(a3 )14 and (a4) to shows the number of days from 08/06/08-10/05/2008 ---(a4) 60 days.

View 5 Replies
View Related
Mar 9, 2009

I am trying to calculate dates that will happen 16 days from date specified in column A (A23:A200), based off a certain entry in Column B (B23:B200), which is named in cell P5. I can get the date by doing the specified date + 16, e.g. =IF($B$23:$B$200=$P$5,$A23+16,"")

The trouble I am running into is not having the date populate until it has reached 16 days from the dates in column A, show blank if possible until 16 days from date in column A. The dates in column A will always be previous to todays date.

View 2 Replies
View Related
Oct 23, 2007

I have a static date and military time in B6 (5/10/07 18:00) I have to write various formulas to reflect 1 month (whatever calendar month it ends up in, so not necessarily 30 days) minus 7 days and then the same formula plus 7 days. How is this written?

View 9 Replies
View Related
Feb 7, 2007

is there a way to calculate the number of days between two dates using the excel cells

example.....how do i put in formulas so excel will calulate the number of days between May 3rd and september 19?

i want to enter may 3 in say a1 then sept 19 in a2 a3 should says days between em

View 3 Replies
View Related
Dec 31, 2013

Calculating Number of Business Days Between Two Dates?

View 9 Replies
View Related
Apr 19, 2006

I have a spreadsheet where I have an intial date of issue of a warrant. Once this warrant has been executed, then a further column is populated with the date. The data I need to work out (Preferably without using macros if possible) is, if there is no execution date the length of time from issue to todays date, but if there is an execution date then length of time from issue to execution. I can do either on their own, but i would like to have only one column showing this info and if possible to update each time the sheet is opened

View 6 Replies
View Related
Jul 31, 2007

I am looking for a formula that will add months and return the year. E.g. if I add 1.05 and 1.07 I should get 3.01. i.e. 3 years and 1 month.

View 9 Replies
View Related
Mar 2, 2010

The below formulae allows me to see the difference between two dates and only returns the difference in working hours ie :

Difference between

02/02/2010 08:00 & 03/02/2010 08:00 is 16 Hours 0 Minutes

=(INT(A3)-INT(C6))+MAX(MOD(A3,1)-MAX(MOD(C6,1)))

The following displays it in the Hrs and Mins format

=TEXT(B15,"[h]")&" Hour"&IF(OR(TEXT(B15,"[h]")+0=0,TEXT(B15,"[h]")+0>1),"s "," ")&MINUTE(B15)&" Minute"&IF(MINUTE(B15)1,"s ",""))

View 9 Replies
View Related
Oct 14, 2009

Please refer to the attached screenshot of my working spreadsheet.

I'm attempting to concatenate lines 86 and 87, month and year together.

The formula I use is: "=C86 & C87" - but I get a large number instead of "October 2009"

View 4 Replies
View Related