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!
Related
=byrow(AF3:AF;lambda(each;if(each="";"";SUMIFS(INDIRECT("AF"&row(each)&":AF");Indirect("O"&row(each)&":O");Indirect("O"&row(each));Indirect("K"&row(each)&":K");"CHECKOUT"))))
the formulas by #Martin!
From the above of the formulas by #Martin I try to modify a litle bit to ajustment to my kinda of my case I thought by trying to change the "SUMIFS" into "MINIFS" will comes out as I expected but well it's not. It's not working at all even close as I imagine it before. I was wrong because it's not for a MINUS function but in other hand it's like for another function to get a MINIMUM of number in a dataset.
What I want is to get a SUBTRACTION every each row of them SUBTRACT from the number of every below of each of them with the two conditions :
*first: based on the NAME on column "O".
*second: based on the criteria I desired and should be a certain value like CHECKOUT on column "K".
And I attached the link to explain more and than so you'll be understand what I mean is. And with the "expect output" in it hope can make this question more be clearly. Thanks in advance!
Please, feel free to edit My Example Quest of Spreadsheet
Isn't there anyway for you of differentiating that first values to be substracted from? (Or maybe eventually there would be more). For example putting "CHECKIN" to those values and "CHECKOUT" for all the ones that will diminish it. In that case you could modify that original formula and sum all the CHECKINs and substract from it all the CHECKOUTS
I've put it in a new tab of your spreadsheet, let me know if this could work for you:
=byrow(AF3:AF;lambda(each;if(each="";"";IF(OR(INDIRECT("K"&row(each))="CHECKIN";INDIRECT("K"&row(each))="CHECKOUT");sumifs(INDIRECT("AF"&row(each)&":AF");Indirect("O"&row(each)&":O");Indirect("O"&row(each));Indirect("K"&row(each)&":K");"CHECKIN")-sumifs(INDIRECT("AF"&row(each)&":AF");Indirect("O"&row(each)&":O");Indirect("O"&row(each));Indirect("K"&row(each)&":K");"CHECKOUT");""))))
I am trying to code a Google sheet for my mother's book keeping but I am hitting a wall. I have a number of categories that will be referenced and, depending on the category the monetary value will be changing.
Example.
Clerical $20/hr
Prop Mngt $35/hr
Admin $50/hr
Plus others I'm not aware of yet
I have tried this code =IF(SEARCH("Administration",$C8)>0,"$50") and it worked for the one keyword.
When I tried =IF(SEARCH("Administration",$C8)>0,"$50"),=IF(SEARCH("Clerical",$C8)>0,"$20") I was given ERROR.
How do I tell C8 to autofill D8 with the correct hourly rate? This will then feed D10 with =SUM(D8*E8) ???
Thank you for your help. I know just enough to know it's possible but not enough to grasp the issues I'm facing.
Try
=IF(not(iserror(SEARCH("Administration",$C8))),"$50",IF(not(iserror(SEARCH("Clerical",$C8))),"$20",""))
Another solution is to use this formula I think more understandable
=IFs(not(iserror(SEARCH("Administration",A1))),"$50",not(iserror(SEARCH("Clerical",A1))),"$20")
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 know this is kind of an odd question, but I have a list of urls that I need to cycle through and display that url in a separate cell, and it needs to automatically change each day. And then finally, once it reached the end of the list to go back to the top of the list.
Is this something that is even possible to accomplish on Google Sheets, or do I need to take a completely different approach?
EDIT: Here is a rough example of what I am trying to do, and I honestly don't know where to start, so I haven't tried much yet. I know how to display the last row in a column, but I cant figure out how to auto change that last row each day. I feel like the best way to do this would be to either move the top row to the bottom each day, or vice versa, but I have no idea how to accomplish this.
Please let me know if you have any suggestions/if I can clarify anything... Any help would be greatly appreciated! Thank you!
Yes this very much possible, I have made one example sheet for you and you can make copy of the same.
Example Sheet.
E2 Contains Today's date, F2 contains date for comparison, G2 is the difference between 2 dates which will go on increasing daily, there will be automatic increment in the Column H.
Based on daily increment in Column H you will get your Urls in Column B.
You don't need to start list from the beginning again, you can go on adding list in Column A. However still if you will need then you can manipulate formulas by comparing another date.
Hope this will work for you.
Hello Everyone (this is all in Google Spreadsheets),
I'm trying to make a report where I have to sum the product of the number of Apples and Bananas bought respectively within a certain time frame by different people. The price of the goods differs, depending on who is buying them. The people who buy it do so at different times and purchase a different number of items. The formula should be extendable to include additional people in the future.
For details see this Google Spreadsheet.
I would like to get the calculation without needing steps in-between. If it makes any difference, the number of items bought on specific dates are actually in different worksheets, so they're not on the same page as in the example. I named the ranges accordingly (even though I believe/hope it makes little difference in terms of what formula to use).
Finally, if it were possible to use one formula for the total expenditures, instead of the sum over the cells above that would be grand.
I use the DATEVALUE, because otherwise I wouldn't be able to find the first and the last date of the calendar weeks. There is a dedicated DATEVALUE column in every worksheet. (Additionally, I don't have to deal with the intricacies of the date format, which gets me every time.)
I hope I didn't miss an answer to my problem and provided enough information. I can't get my head around it, I am really looking forward to your answers.
Thank you everyone :)
Greg
P.S. A picture of the sheet, if required: Apples, Bananas & €
Credit to Sennsei from the Google Docs Help Forum (Link). I quote:
I won't be surprised if this isn't the best way to go about this, but regardless, here's my take on solving your problem. Result is based on this modified worksheet.
Apples:
=IFERROR(SUM(ARRAYFORMULA(ARRAYFORMULA(VLOOKUP(FILTER('Prices/Amounts'!$J$4:$J,'Prices/Amounts'!$K$4:$K>=B4,'Prices/Amounts'!$K$4:$K<=B5),FILTER('Prices/Amounts'!$J$4:$L,'Prices/Amounts'!$K$4:$K>=B4,'Prices/Amounts'!$K$4:$K<=B5),3,0))*ARRAYFORMULA(VLOOKUP(FILTER('Prices/Amounts'!$J$4:$J,'Prices/Amounts'!$K$4:$K>=B4,'Prices/Amounts'!$K$4:$K<=B5), 'Prices/Amounts'!$B$3:$D,3,0)))),0)
Bananas:
=IFERROR(SUM(ARRAYFORMULA(ARRAYFORMULA(VLOOKUP(FILTER('Prices/Amounts'!$F$4:$F,'Prices/Amounts'!$G$4:$G>=B4,'Prices/Amounts'!$G$4:$G<=B5),FILTER('Prices/Amounts'!$F$4:$H,'Prices/Amounts'!$G$4:$G>=B4,'Prices/Amounts'!$G$4:$G<=B5),3,0))*ARRAYFORMULA(VLOOKUP(FILTER('Prices/Amounts'!$F$4:$F,'Prices/Amounts'!$G$4:$G>=B4,'Prices/Amounts'!$G$4:$G<=B5), 'Prices/Amounts'!$B$3:$D,2,0)))),0)
Expenditure:
=B7+B8
The B4's and B5's refer to the date constraints. Since the formulae contain $ signs to ensure the cells stay the same, the formula can be dragged across to apply to other weeks without having to touch the formulae. As a plus side, these formulae allows a sheet to be infinitely expandable!
Sennsei