DateDif Formula Is Not Working?
Aug 22, 2014why my datedif function is not working.
View 3 Replieswhy my datedif function is not working.
View 3 RepliesIm going insane trying to figure out how to Average out the data i've accumulated with the DATEDIF Formula...Can anyone please clarify if this is even possible ??
Here's the situation...
I've got a range of data that has been calculated by using the DATEDIF Function (below):
I am creating a report and I am using the following Formula with condition.
(IN Q2 in the file attached)
=IF(P2="","Enter New to IMP check Date",DATEDIF(P2,C2,"d"))
Where in P2 is the START Date and C2End date.
P2 = 01 Jan 13
C2 = 10 Mar 14
When I apply the DATEIF formula its ignoring the year differ ace and give a result of 8 days not sure whats wrong here as the "Y" & "M" function works correctly and give proper result.
Sample attached : Book1.xlsx
I'm trying to calculate the number of days between dates in column A and B. I've looked at the examples in this site and thought I used the formula correctly, but the cell returns an error message when I type: =DATEDIF(A1,B1,"D")
View 7 Replies View RelatedI'm trying to do this:
=VLOOKUP((DATEDIF(A2,C2,"Y"),H1:I10,2))
It doesn't work, I have found. It's for a spreadsheet that tracks Paid Time Off which which accrues at a different rate depending on how long the employee has worked for the organization. I want to use the VLOOKUP table to list the 10 different accrual rates and hoped that the DATEDIF function could produce one of 10 results that would match the values in the first column of the table.
I am calculating the length of time someone has worked for the company:
Column; Row A1,
Hire Date MM/DD/YYYY
Column; Row B1,
=DATEDIF(A1,NOW(),"y") & " years, " & DATEDIF(A1,NOW(),"ym") & " months, " & DATEDIF(A1,NOW(),"md") & " days"
Which gives me a result like: "4 years, 5 months, 10 days"
I want to be able to average the results from column B, thereby producing the average "years, months, and days" worked. Just not sure how to get there.
I have 2 dates..
09-feb-09
15-dec-09
Is therea way to calculate the number of years? this is equivalent to 0.27777 years.
Is there a way to get this with the datedif or another functiom?
When using the following formula datedif will calculate completed intervals (years in this case): =DATEDIF(A1,TODAY(),"y") Is it possible to tweak the formula so that it will round up to the next intyerval? i.e. 16 years in stead of 15 years 3 months and 12 days
View 5 Replies View RelatedI have several cells that I use the "DATEDIF" function to added dates and display as, "1 M 2 D". I need to add the multiple results to get an sum of all of them.
Column C1 is the start date.
Column C2 is the finish date.
Column C3 is a separate start date.
Column C4 is a separate finish date.
I used the following formula to get the month/day count for each separate start/finish dates: =DATEDIF(C1,C2,"M")&"M"&DATEDIF(C1,C2,"MD")&"D". Both give me the result I need. I have blown a gasket trying to add all the start/finish into a single Month/Day number. Sample result should look like this:......
I'm using Excel 2000 and trying to use the datedif function. I've formated 2
columns as date m/dd/yyyy and left the formula column general I'm entering
dates
A1: 1/1/2002
B1: 1/1/2005
I'm entering the formula in C1
=datedif(b1,a1,"M")
I'm looking for the nmber of months between 2 dates
I get #NUM! for a result.
I have a DATEDIF column which I have used to calculate the age of a group of people from their dates of birth. This has produced results in cells which look like this: Age is 44 years, 1 Months and 28 Days
Where I am stuck is that I need to calculate the average of this column so I get the average of the total group. Is this possible?
I am trying to subtract two dates to find out whether an invoice is 6 months past due (regardless of number of days). I use DATEDIF in my formula and it works fine until now. It seems the function takes number of days into account and won't return the desire result when there are 31 days. I want to find out whether the number of months between two date are greater than or equal to 6 months without considering the number of days. I am attaching a sample worksheet for better explanation. As you can see, October is not working right.
View 5 Replies View RelatedI need to calculate the date difference between two dates and get the result in the number of years and proportion of months ie;
20/09/99 to 01/02/02 is 2.33333333 years. I can use the DATEDIF function to get 2 years 4 months as the result but for the calc I'm doing I need it in the format of 2.33333333. Thinking I just need to tweak the DATEDIF a bit but just can't work it out!
I need to calculate the difference in Years, Months and Days between:
Date 1 = TODAY()
Date 2 = 4 years after a date in cell A1, which will always be earlier than today's date
(A bit of backround - I have certain risk management procedures that have a lifespan of 4 years. I want to calculate the time between now and 4 years after the date the procedure was completed, essentially to see how long before they have to be redone).
So far I have:
=DATEDIF(A1+4,TODAY(),"y")&"y "&DATEDIF(A1,TODAY(),"ym")&"m "&DATEDIF(A1,TODAY(),"md")&"d"
But that returns #NUM!.
Removing the +4 obviously just calculated the difference between the date in A1 and today, but I need the date in A1 PLUS 4 years and today.
I have also tried:
=(DATE(YEAR(A1)+4,MONTH(A1),DAY(A1))-TODAY())/365.25
which works in theory, however:
a) no consideration for leap years
b) does not return nY, nM, nD - only the decimal.
However I would be happy to use this method if I could convert it to Years Months Days.
I have a problem with the code below. The code pastes values into column c, depending on values in Column A.
The problem is that, at the end I want it to go to column d and execute the R1C1 formula, but the lastrow1 variable is always set to 1 ( I went through the code pressing F8) so the formula won't go down the column.
Code:
If Range("A" & i).Value = 2 Then
Worksheets("deacc").Activate
Call SelectRndRow
Worksheets("sheet1").Activate
Range("c1").Select
Selection.End(xlDown).Select
[code]....
I currently have a workbook (Unconfirmed Application Audit 02) which is the result of an audit of applications on PCs. I have come up with a macro which will insert new columns into the sheet and fill those columns with data, should the application listed, have a replacement specified in the AppRM file. The macro works fine for column G, in that it pulls through the new software manufacturer name but column H should pull through the new product name and I should display the new product version and they don't. To me, it looks like the exact same formula in each column apart from the column reference to get the information from.
View 7 Replies View RelatedI'm trying to use a formula for column F, starting in cell F6, for column M, starting from M26. The formula works in Column F but after I tried to use it in column M with adjustments, it doesnt work. Attached is the file.
View 3 Replies View RelatedI have a Age calculating formula in an excell cell, which calculates the age as on another date.
The forumala is =IF(E4="","",IF($C$1="","",ROUNDDOWN(($C$1-E4)/365,0))) where E4 is the date of birth and C1 is the date in which I want the age calculated to be.
The above formula works very well on my computer, but does not on any other computer. If I access it from my sent items or from a shared drive, it works perfectly on mine, but not on any other computer!!! I get a #value error message on all other computers.
I have tried the foll:
If i enter =ISNUMBER(C1) where the age has to be calculated, I get #Name?
If I enter =ISNUMBER(E4), i get TRUE
The above is on the sheet where it does not work ( on others computer ) and i get TRUE for both on mine. Also both have the same date formats and same time zones...
where the issue with the following formula is?
=IF(AND($E$2="N",$AA$550),"BT1",IF(AND(Z5="F",Y5>=0),"CLEAR",IF($AA$5
Yesterday (13/03/2007) was the 9th working day of the month (basing a week on Mon – Fri) – today is the 10th working day
Is there any formula, or mix of formula’s I can use to automatically calculate this?
I am trying to use a countif and formula but can't get it to work. This part of the formula works fine =COUNTIF(J:J,"
View 9 Replies View RelatedI am trying to create a formula to work out the last working day of each month, but I can't come up with anything that is less than the 1,024 formula limit. I am using a UK calendar so the only two holidays to effect the last working day of the month will be Easter and the last Monday in May.
This is the formula I am using which takes account of Easter, the checking for the last Monday in May is simple enough in another column, but I would rather keep it in one column, just wondering whether there is a simpler way of doing this.
A1 is a specified date and then I would like to work out the last working day of the month, on a new row, for up to the next 50 years....
I have a column of numbers ranging from 0000-9999. They are not in order and multiple numbers are used more than once. I would like to know how many times the numbers in the range of 4000-4999 appear. I am trying to use the formula =COUNTIF(F4:F500,"=4????") or =COUNTIF(F4:F500,"=4*") but neither are working. If I do a single number like this =COUNTIF(F4:F500,"=41420"), it will count them for me.
View 9 Replies View RelatedI am trying to create a formula that if the date column falls between 01/01/2014-01/25/2014, it returns January as the value.
View 10 Replies View Relatedsee the attached spreadsheet, I am getting an error message with the attached formula
View 2 Replies View Relatedthe autosum is not working on one cell which has a formula. All the other cells with formulas are summing correctly. The forumla i used is: =IF(C21="No","-1","") If i enter "No" in C21 the value -1 is return.
However the autosum does not seem to pick up this -1 and only returns 0.
I am trying to sum up column V, when for a specific date in column z, and only sum when the two names EEM, Merri1* are involved. I used the * because there are a couple of variations for MErri1 after the 1. The formula is not working. I believe it's the way I'm combining this
[Code] .....
Full formula is below:
[Code] .....
I am not sure where the error is in the formula. Also I would like to add one more condition to it.
Another problem- I created Drop Down using Data Validation. Now I need to make the Drop DOWN ICon visible. It becomes visible only when I click on the cell.
I am trying to work out an excel workbook for calculating family recipes. I have gotten most of it figured out but am having a problem with one thing. When the serving size of an item is 8 oz & the recipe calls for 14.5 oz the only way I can get it to work properly is to enter 1.75 in the serving size.
But I would like (actually need) to be able to enter the 14.5 and have it calculate the calories correctly - since sometimes the amount to be added to the recipe may be 15 ounces and the serving size is 8 ounces etc....
See attached sample workbook. Row 37 current has formulas between columns AQ and IP that return a value 2 or 4. Conditional formatting on these cells then gives them an appropriate colour.
Due to the large number of cells involved, I wanted to use a multi-cell array formula instead. I have attempted this on row 50 which should give the same results, but as you will see this is not happening.