Filter formula with 2 conditions - google-sheets

I am having a hard time figuring out how to get this to work on Google Sheets. I am trying to create a player pool based on the checkbox on a different tab. However, I want it to look for a checkmark, then look at the position, and then bring in the data.
Checkbox is in column A. Player position is in column H.
=if(and('Hitter Gameday'!A:A=true,'Hitter Gameday'!H:H="SS"),filter('Hitter Gameday'!B:X))
Thanks for any help anyone can provide!

Try
=iferror(filter('Hitter Gameday'!B:X, 'Hitter Gameday'!A:A=true, regexmatch('Hitter Gameday'!H:H, "C.*")))
and see if that works?

Related

Index Formula - Google Form

Data from Google Form
Attendance Sheet
Hi,
I have attached two photos. I have readjusted the Google Form so that the data is easier to read but I am basically trying to index the results based on the name. While I am getting a result, it's not accurate, it seems to be offset or something. Just wondering if anyone can help please?
Thanks,
Shea
I tried using the OFFSET formula to bring it back a few columns but still not correct
Can you try this in Cell C6 of your attendance tab and see how it goes...
=IFNA(FILTER(FILTER(AB!$D:$Q,AB!$D$1:$Q$1=C$5),AB!$C:$C=$B$3,AB!$B:$B=$B6),"-")

The subtraction from the number of each below of row on column AF. Get minus each others gradually row by row pointing upwards by formula in G.sheets

=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");""))))

Sum durations if they meet a criteria? (Google sheets)

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!

Is it possible to select the next cell each day from a list in Google Sheets?

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.

Google Spreadsheet & ArrayFormula - auto-adding formulas

I'm having problems with something that is likey very simple to correct. I have a form that submits data to a Google Spreadsheet, simply a date, name and score. On a separate sheet I am going to have a leaderboard which shows all submissions ranked by highest score (for simplicity in the example in the link below, I just have the leaderboard showing up on the right of the same sheet). I have it sorting the data fine, but I'm struggling with getting the 'rank' value to display. As shown for the first 3 rows (G2, G3, G4) I know what the formula is to display the 'rank' value...but what I'm struggling with is how to get that value to show without having to have that formula in each cell. Since the data will be coming from a form, there will obviously be new rows added regularly which means the leaderboard will automatically get adjusted and I want all of the rows to display the rank #. From what I have read, ArrayFormula should allow this to work, but even with looking at examples I can't figure out how to get it to work with my formula.
I know I could just highlight the entire 'G' column and paste in the formula, and hope it adds it to enough rows...but then it displays 'N/A' for all of the rows which don't currenlty have any data.
Hoping its just a simple solution that I'm being dumb and missing...any help would be greatly appreciated. The link to an example is below. To summarize, for all rows that have content in column H and I, the G cell for that row should show the rank value automatically.
https://docs.google.com/spreadsheets/d/1pCIJQi5g2scOtB6o2PgVVb-0azzhupEOPjiL0RMM57A/edit?usp=sharing
Thank you!
=ARRAYFORMULA(RANK(INDIRECT("I2:I"&COUNTA(H:H)),$I$2:I,0))
This will automatically rank and sort, for all values, including additional ones that are added. You only need to enter it into G2, and it will dynamically fill in the rest for you.
You can use
IFERROR(RANK(...),"")
and drag it to all rows - this will leave blank cells instead of #N/As. I'm sure there are other ways but that seems like the easiest one to me.

Resources