Set Pass/fail based on 10 answers from each of many individuals - excel

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.

Related

Excel formula to find a number within a range of numbers and return a date

First time writing one of these, so I will try and explain what I'm trying to do in an understandable manner.
I'm trying to create a spreadsheet to track when a premium bond wins, and have it return the date that the winning premium bond was purchased. Because premium bonds cannot be purchased singularly, when you buy them your bond numbers are given to you a range (eg: 111AA111111- 111AA111210).
As this is the data they provide, I've set my spreadsheet up with purchase date in column A, first number of the range in column B, and last number of the range in column C.
Sample image of the sheet with example bond ranges and purchase date:
Now on a separate sheet I've listed the wins, with win date in A, winning bond number in B, and prize amount in C. In D or E I would like to somehow get it to then give me from the first sheet the date of purchase that winning bond was from.
Sample image of the sheet with winning bond numbers and month they won:
I've done a lot of googling and found similar threads to do this, but none of them have been quite what I want and I've not yet been able to work out how to tweak them into doing it. These have used index and sumproduct, but I'm yet to get it to work.
Any help in the right direction is greatly appreciated. If this doesn't make sense let me know and I'll try and explain it better.
So, like this:
INDEX($B$3:$B$5,MATCH(C9,$C$3:$C$5,1))
Not added a constraint to limit to the upper value, but you could.
This answer is pretty much the same than #SolarMike's answer but based on a diferent point of view.
If the pattern is always like 111AA111111 where 1 is a numeric value and AA is a text value and unique then you can extract the text part from each id using function MID and search for it with INDEX and MATCH:
Formula is:
=INDEX($A$1:$A$3;MATCH("*"&MID(B9;4;2)&"*";$B$1:$B$3;0))
But for this to work each AA must be unique.

Excel - Sum dependent values based on multiple criteria in repeating pattern

I'm currently working with a dataset with a fairly unusual setup. I'm trying to sum the number of responses based on the course and question ID for 40k+ entries. Each question is broken into four response categories. I'm trying to sum the number of responses for each question so I can then break down the response percentage per question, per course. In the example below I'm trying to sum 6+1, 5+2, 5+2, 4+3, etc. But I have hundreds of course names, each with question IDs ranging from 1 to 26.
Like #Scott Craner said, I believe a pivot table would do the trick for you here:
The percentage column would be another instance of "Resp Cnt", where you show values as a % of Parent Row Total.

Calculate "cell/sum(cells)" script across hundreds of small sets

I'm new here, and would greatly appreciate some help with this problem. I'm trying to take a column (Column H in this case) that's split up by blank rows into a few hundred sets of 21 cells each and find the portion of each cell to that set.
Picture - Objective: Take a cell and divide it against 21 other cells in that set. Skip the blank row and repeat the same process several hundred times.
For example, I want to find out: "In 2015, what portion of Alabama employees were in Management Occupations?" and come to the conclusion that 3.669% were in management (Solution example would be cell [I3]). I want to calculate that for all states across all occupations across all years.
I am currently doing this by typing out what's found in column K to get the solutions found in column I, but that is very laborious and seems inefficient. How would I go about getting solutions found in Column I in the easiest way possible?
Please note that the groups must be broken up by state, which is why there are blank rows between each state.
Thank you very much, and if you need a further explanation of what I'm trying to accomplish, please let me know and I'll respond immediately!
Use SUMIF():
=H3/SUMIF(C:C,C3,H:H)
It will now group the it by the state.
If you want to group it further then use SUMIFS():
=H3/SUMIFS(H:H,C:C,C3,A:A,2015)
This will group it by the state and year 2015.

Report on data for a particular month

I have a data sheet in Excel that gets populated with generic information first (Data, Project code etc.) and then along columns there are questions asked in a survey (40 in total). There are predefined answers (A, B, C etc.)
So a Row would look a little something like this:
Date / Contract# / Sector / Q1 / Q2 / Q3.......... Q40
12/05 010632 Department A B N/A.......... Not Checked
20/07 022365 Department N/A C Not Checked.. Not Checked
01/10 032501 Department A A N/A.......... Not Checked
What I would like to report on is for a particular month, give me the questions with the most "A" answers showing the following (for instance).
What would be the best way to do this?
I cannot seem to get it to work in PivotTables and VLOOKUPs, but not sure they are best suited for this extraction of data.
I would properly go for the next free column as a countif formula reaching over the question answers, so countif(D2:AD2,"A") I Say AD2 But just drag until questions have all been selected on that row....Then in the next column either a month formula as suggested or a TEXT(A2,"MMMMMM") Will show the month....Then Standard pivot.
Hope this helps
Thanks
Chris

excel rows,find if include,low and high

it seems that i cant post my picture.here is my link to it:
picture: http://s18.postimg.org/nfv997rvd/head.png
Hello Stackoverflow.
I have some things I wondering about here. I'll try to take it step by step:
It is marked in orange color:
As mentioned in the example in the picture it says "headphones". I would like it to search through all the lines in column A, to find something that has that name in it, then it should count the number of people, and come out with the number (in how many)
the "middle price" I want it to take the price of B (depending on where it found it called headphones) and take the average price of it.
In secured, as I would like it to count how many of them (from the number, or from the beginning) that have "secured" as "no" and "yes."
would like to use this on several things.
pink:
where would I find the average price of all the goods, and what the name of the particular item is.
same with the highest and lowest price.
How can I do this?
to find out how many Headphones:
=COUNTIF(A:A,"*Headphones*")
Note the *'s around the word so it can be found anywhere in the text to make a match.
For middle price there are 2 options, depending on how you want to define the average.
If it's a straight average:
=AVERAGEIF(A:A,"*Headphones*",B:B)
If you want the median, then you will have a slightly more complex formula with
=MEDIAN(IF(A1:A100="*Headphones",B1:B100))
and entered as an array formula with Ctrl+Shift+Enter
maximums and minimums can also be found with the same type of array formula
=MAX(IF(A1:A100="*Headphones",B1:B100))
=MIN(IF(A1:A100="*Headphones",B1:B100))
Excel also has COUNTIFS for multiple criteria:
Secure/Not Secure Headphones:
=COUNTIFS(A:A,"*Headphones*",E:E,"Ja")
=COUNTIFS(A:A,"*Headphones*",E:E,"Nei")

Resources