Good Evening Everyone,
First, thank you to everyone who has taken the time to answer my questions. Your help has been amazing!!!
I have run into another issue to which I cannot find an answer. I need to sum the total hours that employees work in hh:mm. For the sake of clarity, I need to have a result that is not a decimal, but an exact sum expressed in hh:mm such as 3:43. Below is the table and query that I am using.
How do I get Access to return the needed format? Can someone point me in the correct direction, please?
Related
Good day everyone,
I hope you're all doing great. I want to say that I am a novice in terms of excel and sheets formulas.
I have a similar table to this in google sheets. I am focusing on 3 things, the duration of the entire shift, the break duration and the lunch duration. The break and lunch duration need to be converted to minutes or use the duration in seconds column.
I need to sum both break and lunch times per agent and subtract that total by the duration of the whole shift.
I have been throwing myself at this for longer than I would like to accept. I've been looking for formulas that could help but I haven't really found much. I got to create a helper column joining both the name and the codes together to determine which code is from which agent, but that's as far as I got.
I've also tried some INDEX(MATCH, MATCH) but nothing really comes as expected. Also tried using ARRAYFORMULA but I don't know if that'll help. Any assistance with this would be much appreciated as I really want to get to the bottom of this. I feel as though this is difficult for a novice or I am just complicating things with such a simple solution being available.
Thanks again for the assistance.
Firstof all, complete the names in each row with, in G1
={"name";ArrayFormula(lookup(row(A2:A),row(A2:A)/if(A2:A<>"",1,0),A2:A))}
then work with pivot table.
I'm trying to create a dynamic dashboard for staff to track the total amount of time they've worked for our program. They fill out a form with start/end time and denote if it's work that's eligible for our program to pay them for it. I'm building a dashboard where they can see how many extended hours they've racked up over the course of the school year because we have limits on how many hours they can earn.
I'm including an editable
copy of my spreadsheet to show what I've got so far... I'd like to add up any durations in column E that have a "Yes" in Column F (which is all of them at the moment) and have that sum sit in cell C5. But all I can get it to do is sum up to zero, and I can visibly see that it should be more than zero. I've tried changing the format of the cell(s) too, but it's still zero.
Any help or ideas are greatly appreciated! And I'm always trying to learn and improve, so if you know how to do this and don't mind explaining to me how the solution works, I'd also really appreciate that so that I can keep getting better at Sheets. :)
Thanks in advance!
This is because the numbers in column J (in Data sheet) are stored as text. Either enter them instantly as numbers or use the helper column where they are converted by the formula e.g. =VALUE(J1)
Played around with it enough that I got it finally!
=SUM(ARRAYFORMULA(if(C8:C="Yes",E8:E-D8:D,0)))
Thanks for helping me troubleshoot and think it through!
im trying to calculate the ROI in days for a specific case.
I start an investment amount with value X and every day i get different profits. All this separate profits get added everyday until the amount of the investment X is reached. The output should be the amount of sums which are equivalent to the days -> ROI in days
i googled already a bit but its very confusing for me.
do i need SUMIF or MATCH-function?
this seemed promising but it didnt work for me :(
https://www.extendoffice.com/documents/excel/3865-excel-count-cells-until-value-is-reached.html
maybe the syntax in google sheets is slightly different? i dont know :(
hope someone can help me out with this. it cant be that difficult
First time asking a question here so please forgive me. I am trying to count the number of days in each month between two dates. I have found an answer on here that solves this. However, it breaks down and gives me "0" as a result when the beginning date is in December and the end date is in January.
This answer by Tom Sharpe is the closest that I have been able to get to this answer. Tom's Answer!
I wish I knew how to format code or screenshots on this website. I'm sorry! The link to the question has everything, I just need it to work when the Date Range spans two different years.
Please let me know if I can help.
I just checked the previous answer and it seems to work just fine for me.
=SUMPRODUCT(--(TEXT(ROW(INDIRECT($A2 & ":" & IF($B2="",TODAY(),$B$2))),"mmm")=C$1))
I tweaked it a small amount, making the B2 from the original post an absolute value. I took this under January in cell C2 and handle dragged to fill in to December and everything calculated just fine even over multiple years. My initial thought is that your headings (jan-dec) have something that isn't a 3 letter abbreviation.
I have the date of birth of a person and want to calculate the days until his/her next birthday. How to do this in a way to deal with leapyears and other "odd" things?
Using google spreadsheet internal functions:
=IF(DATE(YEAR(TODAY()),MONTH(A2),DAY(A2))>TODAY(),
DATE(YEAR(TODAY()),MONTH(A2),DAY(A2)),
DATE(YEAR(TODAY())+1,MONTH(A2),DAY(A2)))
-TODAY()
where A2 is the cell with the birthday of the person.
The IF at the beginning is for testing if the next birthday is this year or next year.
A slightly shorter neater version using pure sheets functions is:
=DATE(YEAR(A2)+DATEDIF(A2,TODAY(),"y")+1,MONTH(A2),DAY(A2))-TODAY()
This simpler, and uses the DATEDIF(...,"y") to get complete years that have passed and adds one, rather than needing an If around the entire calculation.
Having figured this out working on the problem myself, I then came across the same solution on this site, which includes some more explanation.
following the nice and short version that Jon Egerton posted, here is a small change that returns 0 when the birthday is on the current day (instead of returning 365), and also handles future dates
=DATE(YEAR(A2)+IF(A2<TODAY(),DATEDIF(A2+1,TODAY(),"y")+1,-DATEDIF(TODAY(),A2,"y")),MONTH(A2),DAY(A2))-TODAY()
I found that using WolframAlpha for calculating the days is the most "simple" way to do it. Use the following code:
REGEXEXTRACT(JOIN("";ImportXML(JOIN("";"http://www.wolframalpha.com/input/?i=birthday+";YEAR(A2);"-";MONTH(A2);"-";DAY(A2);"&asynchronous=false&equal=Submit"); "//script")); "(\d+) days until next")
Where A2 is the cell with the birthday of the person.