Calculate the total time taken from dates in multiple columns in Excel - excel-formula

I want to calculate the time difference in hours and show it in a new column.
For example time taken from Initial Contact (A2) to Response Time (B2) and show it in E2. AND time taken from F/U Contact (C4) to Response Time (D4) and show it in E4.

Here is the answer and thanks to Scott Craner. I had tried different formulas like DATEDIF, IF etc and nothing worked. But the below formula suggested by Scott worked like magic!
=SUM(-A2,B2,-C2,D2) and format the cell to display time in hours and minutes [h]:mm.
enter image description here

Related

TODAY() function not working in Microsoft Excel

I want to calculate the number of days that have elapsed from the start date. For that I am using the function =TODAY()-C3. You can see in the image that C3 contains the start date. But the answer is coming "03-Jan-00". If I just write =TODAY() or =TODAY()+5 it is working. I am attaching the screenshot and a google drive link where you can see the screen recording of the problem for a better understanding.
https://drive.google.com/file/d/1lQ7djK1BRICjFfAaAG0T08snuRZhcU-k/view?usp=share_link
Works as shown:
Just note that cell c1 is formatted as number.
The reason that you need to format as a number is because that is the result you expect. ie the difference between two dates is a number of days, not a day with month and year.

How do I find the missing amounts between different months?

So my problem is this, currently I have an amount of money with start date and end date. I'm able to calculate the beginning month and end month money but I'm having a lot of trouble trying to figure out the in between months amount. Then once figuring that out to combine all three equations into a single situation to be able to type in any start date, any end date, then amount that automatically calculates for each given month automatically.
The table looks like this:
As you can see it calculates May and August by pasting the calculations into those cells manually. But, I'm not able to figure out how to calculate the middle portion then putting the formula into one single formula to be able to automatically calculate.
The code that I currently have to calculate May is:
=(MAXIFS(Dates!$A:$A,Dates!$B:$B,VLOOKUP($B$2,Dates!$A:$C,2))-$B$2)/($B$3-$B$2)*$B$4
This calculation is essentially if the start date is on 5/26/2019 start at that date, to only calculate 6 days for this example. Then calculate the amount needed for those 6 days.
The August Formula is:
=IF($B$3<=MAXIFS(Dates!$A:$A,Dates!$B:$B,VLOOKUP($B$3,Dates!$A:$C,2)),($B$3-MINIFS(Dates!$A:$A,Dates!$B:$B,VLOOKUP($B$3,Dates!$A:$C,2))+1)/($B$3-$B$2)*$B$4,"No")
This does the same as May where when it ends, in this case 8/15/2019 it only calculates up until 8/15/2019 and not the entire fiscal month.
The Dates sheet looks like this:
This is just a sample of the data as the sheet itself is too big to show in a picture. But here is how it lays out for a Fiscal Year:
What I want the end result to look like is:
But also to have it automatic where anyone could enter in Start Date/End Date/Amount and it auto calculates everything for the person. The dates can go from February - January or just a single month as well.
Any help would be much appreciated and if anything needs to be expanded on please let me know as I'm not sure how to ask a question for this specific problem.
Thanks in advance,
-Maykid
Use an array formula:
=SUM(if(LOOKUP(row(index($XFD:$XFD,$B$2):index($XFD:$XFD,$B$3)),Dates!$A:$A,Dates!B:B)=C$1,$B$4/($B$3-$B$2)))
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode.
Put in C2, hit Ctrl-Shift-Enter then copy over.

time sheet overtime hours add up

This is basically about overtime calculations, but I want it calculated separately. IF(A1>8,A1-8,0)
I want A1 when it reaches 8, to flow over to I1. Now I know this formula...
But additionally I would also like B1, C1, and D1 to do the same. So what I'm saying is that each of those cells when a value above 8 is input, I would like it to flow into I1 aswell. That's one part of it, also I would like any amount that is input to cells E1, F1, and G1 to flow into I1 . The final 3 cells are basically weekend work and considered by my company as overtime.
=SUMPRODUCT((A11:G11>H3:N3)*(A11:G11-H3:N3))
So this one works guys but, what I want to do is grab from two separate rows for the seven days of the week. Like this.....
=SUMPRODUCT((D11:G11,A13:C13>H3:N3)*(D11:G11,A13:C13-H3:N3))
But what I'm getting now is #VALUE! I'm not sure what I'm doing wrong.
I would like to know if this is possible and will greatly appreciate the help solving this problem.
So Seeming no one answered you guys decided to minus my rep, I stumbled on the answer myself. I worked this out by making a table with each day and the hours of single time in them.
For the purpose of this formula below I'll say K3 is Sunday and that D19 is also the hours worked on the Sunday. It tells the cell to compare the number input to D19 and if greater than, then minus what is in K3 and return the value in the cell I have input the formula. Because this is for overtime I wanted it to add up each day separately and give me a running total through the week. This Formula worked perfectly for me.
=SUM((D19>$K$3)(D19-$K$3),(O11>$L$3)(O11-$L$3),(P11>$M$3)(P11-$M$3),(Q11>$N$3)(Q11-$N$3),(K13>$H$3)(K13-$H$3),(L13>$I$3)(L13-$I$3),(M13>$J$3)*(M13-$J$3))
Feel free to copy and paste and change it to suit your needs.

Using the 'TODAY' function

My spreadsheet is to show me how many days active a certain field has been.
For this I am trying to find a formula which will automatically take the entered date from one cell and deduct it from "todays" date.
As an example I have used =DATEVALUE("22/04/2017")-TODAY() - and although this works, i am unable to drag the formula down into other cells, to auto populate when a date has been entered/ amended. I'm having to enter the formula above every time, and if the date changes, as an example from the 22/04/2017 to the 20/04/2017, I would have to manually amend the formula too. How can I get it just pick up the date in that particular cell and deduct "today" from it?
Sorry if i'm rambling, I just don't know if I'm explaining myself properly.
Thank you
Typically, 'how many days active a certain field has been' would be a positive number (i.e. the number of days). Reverse the subtrahend and minuend to get a positive integer like this,
=today()-a3
To avoid getting 5/15/2017 or 42,870 as the result when A3 is blank, check to see if there is something in A3 before attempting subtraction.
=if(len(a3), today()-a3, text(,))

My Excel sheet adds 5 cells and displays them in another cell. I want to see the running total instead of waiting for all 5 cells to be filled

I believe this should be a pretty simple solution but I really don't know how to go about it..
I have the following formula in cell C20 =SUM(I13:I17) This is my total wages for that week. Cells I13-I17 are for Monday - Friday and what I got paid that day.
I would like it to display a running total instead of waiting for all 5 cells to have a number in them. Currently it won't show anything in C20 unless all cells have something. I can't alter anything with the I13-I17 as they are filled by another formula.
I want to be able to see what I've currently earned that week instead of waiting until Friday when all 5 cells have then been filled.
I hope I've explained my self well enough on this. It seems like it would be a very simple thing but I can't figure it out.
Thanks for any help,
Kyle..
use this instead
=If(I13<>"",If(I14<>"",IF(I15<>"",IF(I16<>"",If(I17<>"",SUM(I13:I17),SUM(I13:I16)),SUM(I13:I15)),SUM(I13:I14)),I13),"0")

Resources