Calculate Dates/times Using If Statements?
Sep 2, 2008
I'm not too hot with Excel formulas but I'll explain as best I can. I have 3 columns with dates and times
A - 01/08/2008 08:17:08
B - 01/08/2008 12:17:08
C - 01/08/2008 17:00:11
This is what I want to do...
If A > B then Calculate the time difference between A and C
If A <= B then Calculate time difference from B to C
I'd like to get this formula in 1 cell if possible?
View 4 Replies
ADVERTISEMENT
May 19, 2008
I seem to have the worst luck when it comes to getting dates and times to calculate together. My logic just seems to go straight out the window.
What I am trying to do, the end result, is get a Time Worked (duration) that I have spent on a ticket, and a Total Time, the time a ticket was opened, to the time it was closed.
I guess we can try to do this one step at a time.
The first thing that I would like to know is if there is a way to calculate Date/Time in a MM/DD/YYYY, H:MM format?
IE:
Ticket Opened ...................Ticket Closed
5/16/2008 2:54 PM..............5/19/2008 10:47 AM
Total Time in Days / Hours / Minutes
Right now I have the Date and Time split into separate cells, simply because I couldnt figure out a way to subtract the combined date and time.
View 10 Replies
View Related
Jan 25, 2012
From the below example, I would need to know the difference between date & time of Received and Resolved in number of days. Meaning - time difference should also be calculated in days
CELL ACELL BCELL CCELL DCELL E - REQUIRED OUTPUTReceived
DateReceived
TimeResolved
DateResolved
TimeTurn Around Time - IN DAYS20-Jan-122:43:00 PM23-Jan-124:50:00 PMDifference between Resolved date & time and Received date & time
View 7 Replies
View Related
Oct 18, 2008
Im trying to calculate hours and minutes between two dates/times over more than 24hrs. I have:-
A1 is 18/10/08 13:14, B1 is 20/10/2008 12:20, C1 is 1:23:05
Using the formula C1 =INT(B1-A1)&TEXT(B1-A1,":hh:mm")
But what I really need is just Hours and Minutes so the above should read 47:05.
View 5 Replies
View Related
Feb 28, 2009
I need to calculate billable hours.I have a start date/time and end date/time.Then I need to subtract out all time between 05:00:00.000 and 20:00:00.000. These are not billable hours.But I can include all weekend time.And I can include all holiday time.I need to accomplish this with formulas, no macros.
View 2 Replies
View Related
May 1, 2008
I need to calculate the hrs between two date and time and deduct any time outwith the hrs of operation (09:00-19:00), if the date and time falls outwith these times.
I have used the formula 24*IF(A2>G2,G2+1-A2,G2-A2), where G2 IS 21/04/2008 11:45 and A2 is 20/04/2008 00:22, but can't get it right.
View 6 Replies
View Related
Jun 19, 2008
I have a spreadsheet with Received Date/Time in C2 and Resolved Date/Tim in D2, Work Start Time in E2, Work End Time in F2. C2 and D2 are in dd/mm/yyyy hh:mm AM/PM format:04/03/2008 10:27 AM06/03/2008 1:06 PM9:00:00 AM5:00:00 PM
I need to be able to calculate the resolution time of each request in hours/mins excluding weekends and public holidays. I've tried using the NETWORKDAYS function but it doesn't seem to pick up multiple days between the Received and Resolved dates/times. I have put the Public Holidays in my spreadsheet ( attached) in AA2-AG2.
View 4 Replies
View Related
Apr 8, 2014
I'm looking for a formula that will calculate the difference in times between specific times while working with a 24 hr clock. Please see details below:
E3 provides the start time of 4:00
H3 provides an end time of 15:30
If an employee works betwen the hours of 0:00 (midnight) to 5:59, this is considered DIFF hours and is therefore the number I am seaking. So for the data noted above, the total DIFF hours worked is 2 hours.
View 7 Replies
View Related
Feb 8, 2010
I was playing aroung some VBA code, but the code executes 98 times and I don't know why. For example, range A1 contains 5. When I type, say 3, in A1, I want A1 to show me 8 (5+3). Then I may type 10, in this case A1 must show 18 (8+10). And so on. I decided to place entered values in different column, then sum them in A1 with below stated code
View 3 Replies
View Related
Nov 17, 2008
I have a list of dates and I need to calculate how many of the dates are before or between certain dates. I can't quite get my parameters correct.
View 9 Replies
View Related
Aug 19, 2014
I have attached a sample work sheet that has the directions and a sample.
I want to use vlookup (or any relevant formula) to find a value in a table if it falls between two dates. The sample worksheet does a lot better job explaining this.
For instance, if I want to find 3/1/15, it is between 2/1/15 and 4/1/15, so I want the dollar amount to be $8.75
Sample.xlsx
View 2 Replies
View Related
Jan 27, 2010
I am having issues writing the VBA code for IF statements. I am essentially trying to nest IF statements within one another. I have it done through the regular If functions as seen in the attachment, but I cannot seem to get it to work with VBA.
I need it to work in VBA without knowing how many rows of data there are. In the attachment you will see the rules that I need the data follow, but here is an example. Essentially, depending upon how large cell C2 is, I need to add a certain amount of months to whatever is in E2.
=IF(C2="","",IF(C2<500000,DATE(YEAR(E2),MONTH(E2)+1,DAY(E2)),IF(AND(C2>=500000,C2<1000000),DATE(YEAR (E2),MONTH(E2)+1,DAY(E2)),IF(AND(C2>=1000000,C2<=2000000),DATE(YEAR(E2),MONTH(E2)+1,DAY(E2)),IF(AND( C2>2000000,D2="Critical"),DATE(YEAR(E2),MONTH(E2)+2,DAY(E2)),IF(C2>2000000,DATE(YEAR(E2),MONTH(E2)+1 ,DAY(E2)),"Reevaluate"))))))
View 9 Replies
View Related
Jan 2, 2014
This is for employee time sheet and schedule. I have multiple employees work a specific shift on various days. I need the calculate the hours worked each day and then have them totaled at the end of the period. Here is and example:
Employee Monday Tuesday Wednesday Thursday Friday Saturday Sunday Total Hours Total Cost
John Smith 10-5 12-6 9-2 5-10:30 3-8:30
How do I get it to calculate the difference in the same cell, convert it to hours, add up all the results and place it in the totals columns then calculate those totals by their pay rate to get my Labor cost?
View 1 Replies
View Related
Sep 12, 2007
I need to calculate turn around time between two sets of data reflecting both a starting date and time and obviously an ending date and time. This should reflect work hours meaning a day that starts at 08:00 and end at 16:30.
That would be a start and would be great if someone can show me how to calculate this.
But obviously people don't work on Sundays and only work from 08:00 to 12:00 on Saturdays... Can't even imagine how one would take this into account.
View 11 Replies
View Related
Dec 20, 2006
Trying to get times worked in hours and mins, from a given start time to a given finished time.
I would like H18 to read 14
and H19 to read 13.5 and so on,
H23 and H24 are full 24 hour coverage,
but i get a 0, when using 08:00 - 08:00
as we only deal with a full or half hours, the figures should read whole numbers or half number as in th example above.
Also would like to total all hours worked in H28 to 117 as opposed to the figure given in the attached file.
DAY / DATESTARTENDHOURS
MON22-May200618:008:00 AM14:00
TUE23-May200617:006:30 AM13:30
WED24-May200617:307:30 AM14:00
THU25-May200618:007:30 AM13:30
FRI26-May200618:008:00 AM14:00
SAT27-May20068:008:00 AM0:00
SUN28-May20068:008:00 AM0:00
TOTAL2.875
Couldnt upload the file as it was 75kbs, a
View 9 Replies
View Related
Dec 9, 2006
I have a file with two sheets.
Sheet1 Data are as follows :
Column A : Date (Data is : 31/01/2006,01/02/2006 ...... )
Column B : Name (Data is : ABC , XYZ, ABC .......)
Column C : Time (Format is : HH:MM) (02:00 , 03:00 .....)
Sheet2 Data are as follows :
A1 : Start Date and B1 : End Date
A2 : Name and B2 : Sum of Time
A3 : ABC and B3 : (i Want Result in this cell)
Result is :
I want Result in B3 cell : Name(ABC) of Time sum from sheet1 Column C between Start date(A1) to End Date (B1).
View 8 Replies
View Related
Jun 22, 2012
Is there a way to calculate the number of hours between two times specified like this:
Start
End
Hours
Comments
Mon 6:00p
Mon 9:00p
3.00
Same day
[Code]..
I think I can write a UDF and that may be the easiest. Is there a straightforward way without a UDF?
View 6 Replies
View Related
Jun 13, 2013
I have a huge two column spreadsheet. The first column is a list of times in the format: dd-mm-yy hh:mm:ss and the second column is a status of either START or STOP
Every time there is a START, I want it to count the difference between that time, and the next STOP time, and display the results in column C
Sometimes there will be multiple START's in a row or multiple STOP's in a row, but I am only interested when the status actually changes from the first START to the first STOP. It then resets until there is another START.
Here's an example of how I'd want it to function:
13-06-13 01:22:13 START
13-06-13 01:22:16 START
13-06-13 01:22:20 STOP 00:00:07
13-06-13 02:20.01 STOP
13-06-13 02:21.03 START
13-06-13 03:22.04 STOP 01:01:01
I can do this manually, but of course there is too much data to do that, so I'm looking for an automated solution that looks at the status.
View 1 Replies
View Related
Mar 25, 2014
How to calculate overlapping times. I have found a few formulas on here I have tried to reproduce with no luck. This thread is similar to my issue.(How to calculate the amount of overlapping time) I need a non VBA format.
I need to know what times are overlapping; I need to see when two people are working active cases at the same time and how much time is overlapping. This is a huge spreadsheet with several rows of data. At this moment I am dong it all manually.
Here is a sample of what is looks like. As you can see the first line is overlapping with the second line by 8 minutes into the next case.
NAME
DOS
Start time
End Time
Person A
2/3/14
6:40
7:38
[Code] .....
View 1 Replies
View Related
Aug 20, 2008
I have problem to calculate the time which is more than 23:00:00hrs in a file. I need to compare the benchmark time and the difference of time(start time and end time) and show pass/fail depending on benchmark set time. For few of the times which is more than 23:00:00 hrs the format is taking different(example: for 49:15:48, it is showing 02/01/1900 01:15:48 in formaula bar) for which i am not able to use formula and know pass/fail.
View 4 Replies
View Related
Jul 31, 2006
I have formated my cells as custom hh:mm and want to have a 24 hour clock calculate time.
In cell D6 I have starting time of 23:00
In cell E6 I have finish time of 07:00
This should equal 7:00 hours but I get ######### am I doing somthing wrong or do I have to format the cells differently.
The formula in F6 is E6-D6.
View 6 Replies
View Related
Jan 10, 2007
I am working on an employee weekly schedule and would like to be able to calculate the amount of hours an employee is scheduled each day. For example; if you worked from 7am to 4pm, I want to have a formula that can determine that (7am to 4pm= 9 hours) then sum the total amount of hours for all employees scheduled that day.
Mon Tue Wed Thrs Fri Sat Sun Total
Employee 1 7-4 7-4 8-5 off 2-10 5-10 off 40
Employee 2 8-5 11-8 off 7-4 1-8 off 8-5 43
Hours 18 18 9 9 15 5 9 83
View 2 Replies
View Related
Jun 9, 2014
If you have some low time resolution data you need to compare with high time resolution data how do you average the high resolution data. For example data that starts and ends a fortnight apart and you want to compare it with data that starts and ends 1 hour apart you need to average the hourly data to do so. I can't figure out how:
So if I had Sheet 1 with hourly data
A B C D E
1 Date, Time, Measurement
2 01/01/2014, 01:00, 62
3 01/01/2014, 02:00, 38
etc....
Then in Sheet 2, fortnightly data
A B C D E
1 Date on, Time On, Date Off, Time Off, Measurement
2 02/01/14, 15:23, 18/01/2014, 12:25, 52
3 18/01/2014, 12:25, 01/02/2014, 14:19, 34
etc....
I'd want to add a new column of data to average the hourly data so I can use the correl function.
View 7 Replies
View Related
Aug 17, 2009
In one column I need dates and every date has to appear 16 times.
So, I need date 2009-06-03 in 16 rows, in next 16 i need next day - 2009-06-04.
View 5 Replies
View Related
Aug 18, 2010
I have A1= Date A, B1 = Time A, C1 = Date B, D1 = Time B, E1 = Hours between Date&Time B and Date&Time A
How can I enter a formula that takes the date and times from separate columns and calculates them?
View 6 Replies
View Related
Oct 25, 2011
I have a table that I am storing into an array. I have an array FDate where I store a date and another array FTime where I store times.
FDate is formatted as m/dd/yyyy Hh:Mm: Ss
Ftime is formatted as Hh:Mm:Ss
I know in excel that you can add and subtract dates and times. How do you accomplish the same task in VBA?
View 1 Replies
View Related
Dec 6, 2006
I'm trying to get excel to calulate the difference using the following format
dd/mm/yyyy hh:mm
dd/mm/yyyy hh:mm
So really I need excell to tell me what the actual difference is between dates
View 9 Replies
View Related
Jan 19, 2009
I am trying to create a "daily donut" to track how long it has been since I left for my current deployment, and how much time I have left until I return home. I would like to show exactly how many year(s), month(s), day(s), hour(s), minute(s), and second(s) (like 1 year, 4 months, 4 hours, 5 minutes, & 34 seconds not 1.0 year, 0.33 months, etc.) it has been (again, not 3600 seconds, 60 minutes, 1 hour, etc.), and how many I have left. I have spent many hours trying to figure this out, and I have even tried looking through this forum, but I still can't completely figure this out. I was close in figuring out the date differences in the x amount of years, months, and days format, but it wouldn't account for the time. I.E., 06/03/09 05:00:00 AM - 06/01/08 06:00:00 AM, would show 2 days, instead of 1 day (I'm not sure how to incorporate the time yet).
The variables are:
A1 Date I Left For My Deployment in M/DD/YY HH:MM:SS AM/PM
A2 =Now() Function in Same Date & Time Format as A1
A3 = Date I Get Home from My Deployment in Same Date & Time Format as A1
Any ideas or help? And if possible, I would like to be able to do this using excel's built in functions (not excel add-ons, vb, etc.), so that it would work on government computers.
View 9 Replies
View Related
Dec 31, 2007
I receive data from a company I deal with that has the date and time of all of my transactions with them listed in an excel worksheet. Only problem is that the date/time that I receive is not in my timezone, which is a bit of a problem for me!
What I want to do is to be able to adjust the date and time shown in the cell forward by 14 hours, so that the data is shown in the timezone that I am currently in. So the end result for the first line of data in the attached file would end up being 2006-08-11,10:28:51 instead of 2006-08-10,20:28:51.
View 5 Replies
View Related
Dec 27, 2013
I'm placing dsum on a table, and want to sum some criteria I've wrote, all I need is the sum of the 15 latest match of the event I've wrote - which needs to be Sum together , I can use "helping column" in the table, but is there is more elegant way to do this with a furmula which make dsum calculate only the latest 15 cases ?
View 1 Replies
View Related