SOLVED (check spreadsheet) Trying to create a grade calculator for personal use. Please see the shared spreadsheet.
Trying to get a different score/sum depending on which check box is clicked. Don't know if this is possible. Open for other solutions. Thanks!
https://docs.google.com/spreadsheets/d/1vdtNemd2un3bcQyVua1_aQyYQbLtGOuRrha0nKokcvk/edit?usp=sharing
Checking if the cell/checkbox is checked is simply : =if(cell; valueIfTrue; valueIfFalse)
Score in D11 should SUM the grades values of :
the 1st semester if D14 is checked (D2/D3)
the 2nd semester if D15 is checked (D4/D5)
the 3rd semester if D16 is checked (D6/D7)
And of course all 3 semester if all are checked.
Formula
= SUM(if(D14;ARRAYFORMULA(IFERROR(VLOOKUP(D2:D3; F2:G7; 2; 0)));0);if(D15;ARRAYFORMULA(IFERROR(VLOOKUP(D4:D5; F2:G7; 2; 0)));0);if(D16;ARRAYFORMULA(IFERROR(VLOOKUP(D6:D7; F2:G7; 2; 0)));0))
Related
OS: Windows 10
Here's the basic idea:
I have a list of foods that are on the left side, and when I decide which foods I want, I then decide what order I want them in. After they are in the right order, G7-J7 (Linked Foods) should automatically place a hyperlink based on what food I selected in the Order of Food. How it pulls these links should be from the List of Foods. Then, at the bottom, there are 4 images that will automatically be shown based on what link is in the Linked Food boxes.
Basically, what I did, was I made the Linked Food 1 formula =IF(G3 = "Ramen", D2, "No Link Found").
And then for the Food 1 image, I did =iferror(arrayformula(image(G7)),"")
The image should automatically be there for whatever link I put in the G7 box now, but the G7 box is the main issue I'm having.
Everything works, but this is only an example. In my REAL project I'm doing, I have tons and tons of "foods" and I can't just put =IF(G3 = "Ramen", "Lemonade", "Tofu", "Fruit Punch", ...and the hundreds of others.
SO...What I'm wondering, is if there's an easier way to make these links automatically change, without having to manually put every single item from the List of Foods into the formula.
Any help is appreciated!
It is somewhat unclear if the question is asking this for google docs or Excel, but the solution is basically the same either way.
What you want here is called "VLOOKUP". You will be replacing this line:
=IF(G3 = "Ramen", D2, "No Link Found")
with
=VLOOKUP(G3, C2:D8, 2, FALSE)
This will take the value of cell G3 (Ramen in the example case) and search the range of C2:D8 (all the cells on the left of your table) until it finds it. Once it does it will go to the second column of the range (C = 1, D = 2) and take the matching cell value. The FALSE at the end has to do with sorting but shouldn't play a role here.
Note that your range needs to be the entire size of your foods list so change that D8 to DX where X is the size of your list in rows.
You can read the full syntax for VLOOKUP at: https://support.google.com/docs/answer/3093318?hl=en
I am putting an overtime sheet together that staff can show their availability for the Saturday on a table with name and date with a simple Y/N, I also have another table for the hours each person has accumulated.
Based on several staff members saying Y to their availability (we have two members of staff in) I would like two cells to display the name of staff that has the least number of hours to their name.
Column A is the name
Column B is the hours they have worked
Column C is the checkbox,
checked meaning they will work overtime.
The following formula will return the two willing to work overtime with the least hours.
=query(A:C,"select * where A is not null and C = TRUE order by B limit 2")
I was wondering if anyone had a script or way to randomly select a name based on a list. So heres the problem, i have one person who entered the raffle one time. The next person entered lets say 5 times and so on. The fist person should only get one chance to win while the next person should get 5 chances to win
Assuming the top row for labels and names in ColumnA, 'times' in ColumnB then:
In C2 and copied down to suit:
=sum(B$2:B2)
In D1:
=RANDBETWEEN(1,Sum(B:B))
Then:
=iferror(index(A:A,match(D1,C:C,0)),index(A:A,1+match(D1,C:C,1)))
Alternatively, list the "next person" five times as often as the other two, select the complete list, apply Data > Randomise range and pick the one at the top of the list, say.
My wife runs a dance school, and occasionally needs to calculate the average age on a given date of a group of dancers. I'm not having a problem with the age calculation and averaging, but I wish to add a feature:
My sheet has all dancers in her company listed. Currently, we copy them all, paste to another sheet, and then delete the ones not included. That's a PITA, so instead I'd like to be able to put a checkbox in the first column, that when checked, would INCLUDE the associated age column in the calculation. So, she could just go down the list, click the included dancers, and it would calculate the average JUST for the selected ones and ignore everybody else.
Honestly, at this point, I have ZERO idea of where to start to do this and need a gentle push in the correct direction. Assume I'm an idiot and know almost nothing.
Here's an example sheet with the new checkbox feature to illustrate the function:
https://docs.google.com/spreadsheets/d/1G8LJyS10yi1HIa2MNHCbWUJPso9QAit3i0cO8A-Uw3A/edit?usp=sharing
I placed the formula above the "Age" column (Column C), and the Checkboxes in Column A:
=iferror(AVERAGEIF(A3:A,TRUE,C3:C),"NO DANCER'S SELECTED!")
This also displays an error message in case no dancer's are selected.
Try this. It looks for 'y' in column A. Assumes names are in column B and ages in column C. You can adjust the columns to match you sheet, and change the 'y' to whatever value you want to enter. It will average the ages of the rows with 'y' in column A:
=AVERAGEIF(A2:A,"=y",C2:C)
Thank you ahead of time for anyone who can help me with this, I think I am close, but it still isn't working.
I have a simple sheet activity reporting sheet that I am asking staff to complete over the upcoming year - It has 5 columns:
Column A: Date -In format (4/4/2013 13:30:00)
Column B: Title -In format (text string)
Column C: Attendance -In format (Numbers)V
Column D: Vol led - In format (text string)
Column E: Staff Led - In format (text string)
Using this data I am 90 % positive that I can aggregate on a different summary sheet that contains some static data like months (in the B column) to aggregate on. I am having trouble configuring the criteria in the filters though to cause the correct output to either sum or count .
Quantity of events ed by either staff or vol, if neither box is checked the event should not be counted) Right now I am trying this but it is not working
=SUM(FILTER('Hostel Activities'!A:A,MONTH('Hostel Activities'!A:A)=$B3, NOT(AND(ISBLANK('Hostel Activities'!D:D),ISBLANK('Hostel Activities'!E:E)))
Total number of attendance in a month for activities led by staff or volunteers Right now I am trying this but it is not working
=SUM(FILTER('Hostel Activities'!A:A,MONTH('Hostel Activities'!A:A)=$B3, NOT(AND(ISBLANK('Hostel Activities'!D:D),ISBLANK('Hostel Activities'!E:E)))
THIE WORKS! ## Heading ##Total number of volunteer led activities in a month for activities Right now I am using this and it IS working
=COUNT(FILTER('Hostel Activities'!A:A,month('Hostel Activities'!A:A)=B3,not(isblank('Hostel Activities'!E:E))))
Thank you for any assistance and/or guidance
Danny
The first problem I see with your first two formulas is that you're calling SUM on your FILTER result. But the FILTER is returning the column A, which are dates. So, your basically summing dates, which will surely not yield the result you're looking for. Why are you not using COUNT, as you did on your last formula?
Second, the first two formulas you pasted are identical, how do you expect them to return different results?
It seems that for the first two want to sum an OR condition. You can do this two ways (that I can think of now). The simpler to understand is just to sum two COUNT(FILTER(... formulas, one for each criteria, e.g.
=COUNT(FILTER('Hostel Activities'!A:A,month('Hostel Activities'!A:A)=B3,not(isblank('Hostel Activities'!D:D)))) + B6
Assuming that on B6 is the other COUNT formula (the 3rd one, that already works).
Another option would be to use an OR function as criteria for the FILTER. Like this:
=COUNT(FILTER('Hostel Activities'!A:A,month('Hostel Activities'!A:A)=B3, OR(NOT(ISBLANK('Hostel Activities'!E:E)), NOT(ISBLANK('Hostel Activities1!D:D))) ))
I believe I have figured out a method that works by making some adjustments in the formulas and the source data.
Basically
IN THE SOURCE REPORTING DATA:
I combined columns D and E into the same column and added data validation so the coordinator has to enter if the activity is led by staff,volunteer, or neither.
IN THE MONTHLY AGGREGATION REPORT:
To count the number of activities led by either staff or volunteers I used this :
=COUNT(FILTER('Hostel Activities'!A:A,month('Hostel Activities'!A:A)=B3,'Hostel Activities'!D:D="Staff"))+E3
*E3 is the count of volunteer led activities which is found using this formula:
=COUNT(FILTER('Hostel Activities'!A:A,month('Hostel Activities'!A:A)=B3,'Hostel Activities'!D:D="Volunteer"))
Adding up the number of participants in activities run by either staff or volunteers was a little more difficult, but I was able to do it by adding up 2 unique equations. I would prefer using an OR statement in the filter criteria, but I just couldn't get that to work. This is how I was able to make it happen:
=SUM(FILTER('Hostel Activities'!C:C,month('Hostel Activities'!A:A)=B3,'Hostel Activities'!D:D="Staff")) + SUM(FILTER('Hostel Activities'!C:C,month('Hostel Activities'!A:A)=B3,'Hostel Activities'!D:D="Volunteer"))
Thank you all for your assistance