I'm trying to do something similar than this: https://exceljet.net/formula/score-quiz-answers-with-key
But it is not the same because I have different "points" for each question.
For example, correct answer for question 1 gives you 2 points, but correct answer for question 10 gives you 6 points.
I need to get the total of points for each student based on their answers and how many points each answer gives them.
This is the sheet with the answers and points:
Please try this formula. Paste to R5 (first result row) and copy down.
=SUMPRODUCT(--(B5:Q5=B$1:Q$1),B$3:Q$3)
It would probably be easiest to add more cells to calculate how many points each student got for each question. Then you can sum those up and divide by the total.
Here's an example.
screenshot
Give a try on below formula.
=SUM((B5:Q5=$B$1:$Q$1)*($B$2:$Q$2))
Matrix multiplication will also give you desired result.
=MMULT(--(B5:Q5=$B$1:$Q$1),TRANSPOSE($B$2:$Q$2))
Related
I apologize if the title is a bit vague. I am trying to create a calculator that takes into account how much "scrap" I have, how much is needed to resmelt it, and how many bars recieved.
Currently using:
(=if((amtOwned/qtyToSmelt)<1,,rounddown((amtOwned/qtyToSmelt)*barsMade))
Table and Formula
The problem I am having is you MUST have the QTY to Smelt. But the value returned includes partial quantities.
Ex. 125 Bottle Caps should equal 4 Bars total. Yet it returns 5.
How can i make the formula only account for increments of the bars recieved?
Thank you for any help, again i apologize if this isn't that clear. Im not exactly sure how to express my need in this situation.
I have tried messing around with the syntax and where every argument sits, even this formula is the most recent iteration of what i thought would be needed.
EDIT: I have tried using the TRUNC function and this seems to be working as I need it to. The formula now is:
=TRUNC((AMTowned/AMTneeded),0)*barsRecieved
=TRUNC((136/50),0)*2 This is returning 2 bars instead of 3. Which is exactly what I need.
It appears this is working by truncating the number first then multiplying it. So, 1.5 becomes 1 before being multiplied. This was my guess after doing more research. I had been searching for a while before I posted this but am glad to have learned what I have in searching for this.
There is a tool for auditing formulas. To see it go to Formulas > Evaluate Formula.
So here is you formula =IF((E3/C3)<1,,ROUNDDOWN((E3/C3)*D3,0))
Have you tried the calculation on your regular calculator? To me it is doing what you would expect. (125/50)*2 = 5
I am currently doing a formula to find the overall grade for a student that has done 2 exams and 1 assignment.
I have made a formula that can achieve the task, but i have ran into a problem and I dont exactly understand why its giving me the incorrect answer.
As you can see in the screen shot provided you can see the 2 exams and 1 assignment, the grades are, A, A+, B+ which averaged should come out to a a value of 13.66 and as a grade as A (rounded upwards) but when i click out of the cell it shows a C+ and I dont understand why.
=INDEX(L$2:L$16,MATCH(SUMPRODUCT((E8:G8=L$2:L$16)*(M$2:M$16))/COUNTA(E8:G8), M$2:M$16,-1))
The quickest solution since you specified that its only for three scores, is to use the average of three separate lookups, something like:
=AVERAGE(VLOOKUP(E6,gradevalues,2,FALSE),VLOOKUP(F6,gradevalues,2,FALSE),VLOOKUP(G6,gradevalues,2,FALSE))
...where gradevalues is a named range representing the list of lettergrades-to-scores.
eg.,
Your original formula is exactly right.
After hand typing everything in from your example, it works flawlessly.
I need to analyse empirical research data:
Given the following data:
The explanation: 5 people answered Question 1 with "entirely agree", which is equivalent to a score of 7. Zero people answered Question 1 with "entirely disagree", which would be a score of 0.
I want now to calculate the number of responses strictly less than the Median and the number of answers equal to the Median.
The result should look like this (the Median is given thanks to Research data analysis in Excel: Median of x times column value)
I tried with the functions =INDIRECT and =INDEX; without success.
Would be great, if someone could help me. Thank you.
Use SUMIF:
Below:
=SUMIF($B$6:$H$6,"<" & I2,B2:H2)
Equal
=SUMIF($B$6:$H$6,"=" & I2,B2:H2)
A working, but not a better solution is to sum up the row conditionally:
the highlighted cell has this formula:
=IF(B6<I2,B2,0)+IF(C6<I2,C2,0)+IF(D6<I2,D2,0)+IF(E6<I2,E2,0)+IF(F6<I2,F2,0)+IF(G6<I2,G2,0)+IF(H6<I2,H2,0)
I hope it helps.
What I have attempted:
AVERAGEIF(B11:V11,">+MEDIAN(B11:V11)")
What I am trying to do:
I would like to take the average of the upper half of given data. Elaborating more. I would like to find a formula that will allow me to remove a given lower fence of outliers and dissect the data then given to me. I would greatly prefer to maintain this formula within one cell "not grabbing different results from formulas within multiple cells".
Update:
Following through I found the solution.. I think.
One thing I should have explained further:
The data coming in replicating a typical sqrt function.
What I wanted to achieve is to capture the mean of the "plateau" of the data.
The equation I used was:
=AVERAGEIF(B3:B62,(">"&+TRIMMEAN(B3:B62,0.8)),B3:B62)
This was something I just copied and pasted. of course "B3" and "B62" are significant only for my application.
My rough explanation of the equation:
TRIMMEAN will limit the AVERAGE to the top 20%(">")(0.8) of the data selected. So for my application, this SHOULD give me a rough mean of the "plateau" of the data i would like to find the mean for.
This formula calculates the Median() of the range, then AverageIf() uses the median and only grabs values that are greater than or equal to >= the median ~ giving you the average of the 'top-half' of your values.
AVERAGEIF(A1:A10,">="&MEDIAN(A1:A10))
Hope this help!
I'm trying to output a Pass/Fail indicator for each student. A new student is on every row and their 10 answers are logged from Column E to N.
I want to match their answers with the 10 correct answers in Column S to AB, count them, and then have the word Pass show in the results Column O if they have a 70% pass rate, and fail if they are under that 70%.
All help appreciated.
I'd suggest a separate row for the answers but in matching columns:
then something like:
=IF(SUMPRODUCT(--(E$1:N$1=E3:N3))>6,"Pass","fail")
As #Jeeped points out, the correct answers could be left where they are with only a small adjustment to the formula above but (apart from the lurid colours!) I think the layout shown is neater and possibly more useful.