Sumproduct and countif questions - excel

I have a workbook that has a separate sheet that is assigned to each classroom teacher. In the column A of each sheet I have the student's names from their rosters listed, in column B I have it set up for them to place an "x" for each incomplete assignment for these particular students. Under my Roster sheet I want the workbook to search through each of the 30+ teacher sheets and find the names of each student and calculate the number of "x's" by their name throughout the sheets and report that info in my "Roster" sheet. Essentially counting how many incomplete assignments each student has throughout. This is the formula that I have on my Roster sheet: =SUMPRODUCT(COUNTIFS(INDIRECT("'"&Sheetss&"'!A:A"),A2,INDIRECT("'"&Sheetss&"'!B:B"),"x"))
"Sheetss" is the range that I have defined for all of my teacher sheets.
My issue with this is that inside my first teacher sheet I can type a student's name (StudentB) in column A and an x in column B, it will return a 1 for StudentB on my Roster sheet, however, when typing StudentB on any other sheet and an x in column B on any other sheet it will not count that data and show a 2, 3, etc.
I feel as though the formula is not searching all of my sheets for data any help would be great. Thanks!!

Related

Identifying the lowest value in a row in Microsoft Excel after VLOOKUP

I'm trying to achieve the following in Excel: I have two worksheets with details of students and their marks for three different subjects.
Worksheet 1 has a Student Name column with names of all students in the class and a Subject column that tells which subject they have scored the least in.
Worksheet 2 has the same Student Name column but the rows may not be in the same order. Worksheet 2 has three more columns named English, Maths and Science populated with the marks scored by the students.
The Subject column for each student in Worksheet 1 should look up the Student Name column in Worksheet 2 for the corresponding student name and then from that row identify the lowest value and return the subject name (which is the first value in the column/table header of the lowest value). I was thinking of using the VLOOKUP function but I'm not sure how I can nest another function within it to search for the lowest value in the row and return the subject name/table header value.
You can use this formula:
• Formula used in cell B2
=LET(_marks,INDEX($E$2:$G$10,MATCH($A2,$D$2:$D$10,0),0),
FILTER($E$1:$G$1,MIN(_marks)=_marks))
Edit:
When a student scores same minimum marks for two subjects. Then we can use as below to return both the subjects,
• Formula used in cell B2
=LET(_marks,INDEX($E$2:$G$10,MATCH($A2,$D$2:$D$10,0),0),
ARRAYTOTEXT(FILTER($E$1:$G$1,MIN(_marks)=_marks)))

Cross reference two cells on two different sheets to return a value to a third sheet in excel

Scenario:
One workbook
Sheet1 contains and employee name and an employee number
Sheet2 contains a variation of the employee name (so and exact match is not possible)
Sheet3 needs to contain the employee number from sheet1 based upon the match of the employee name on Sheet1 with that of Sheet2 to provide the corresponding employee number
I may have to split the three sheets into three separate workbooks, but not sure yet.
I have considered variations of INDEX and MATCH statements and VLOOKUP, but have not been able to return the value desired.

If ID number matches it will return a yes, or will return a "NO" if NO ID number was found to match

I have an excel workbook with 2 sheets. One sheet is called Roster and sheet 2 is called Safety Meeting. On sheet 2(Safety Meeting) is a column with [Id#-name] for those who attended. How do I get “Yes” or “No” return on sheet 1(Roster) on Column C, for those who attended on sheet 2(Safety Meeting). Also, Roster sheet only has ID# and on Safety Meeting sheet it has ID#andName, but I only need to match the ID number. And if ID# is not there it returns a "NO" because there is no match or its missing.
Note: Im only trying to match ID#s, so Column A on Roster Sheet and Column B on Safety Meeting sheet. Sometimes on Column B of Safety Sheet it will only show "ID#- "(ex. 900003- ). Thats why the ID#s only matters not name
I was trying IF and MATCH functions, but having a column with ID numbers and name is throwing me off.
Roster Sheet
Safety Meeting attendees
Well, you may try using in this was as well,
Formula used in cell C2
=IF(ISNA(MATCH(A2,--LEFT($G$2:$G$7,FIND("-",$G$2:$G$7)-1),0)),"No","Yes")
And Fill Down!
With respect to your workbook the formula should be like this in cell C2 - ROSTER SHEET
=IF(ISNA(MATCH(A2,--LEFT('Safety Meeting'!$B$2:$B$7,FIND("-",'Safety Meeting'!$B$2:$B$7)-1),0)),"No","Yes")
Please adjust the ranges accordingly as per your data, !

Sumifs across multiple workbooks without VBA

I am trying to sum of workers and sales. I have 2 workbooks right now. Workbook A has a "Names" column and a "Sales" while Workbook B has a "Names" column and a "Profit" column. The "Names" columns are not in the same order between the two workbooks. I am looking to find the sum of profits in Workbook B, of all the workers in Workbook A that has more than 10 sales. So something like =SUMIFS('[WorkbookB.xlsx]Sheet1'!$B:$B, '[WorkbookA.xlsx]Sheet1'!$B:$B > 10, '[WorkbookA.xlsx]Sheet1'!$A:$A = '[WorkbookB.xlsx]Sheet1'!$A:$A).
I've seen a few posts about sumproducts and indirects but I'm not sure how that works so I apologize if this is an easy solution that I should have found.
I also know I can do a simple Vlookup to match the profits from Workbook B onto Workbook A and then do a sum from there but in this scenario, I can't display profits and names and sales all together.

Using excel to count complete/incomplete across several sheets

I am trying to do the following.
I have 10 sheets labeled Teacher1 through Teacher 10 and an 11th sheet named StudentRoster.
In the StudentRoster sheet I have a list of 100 students names. StudentA, StudentB, StudentC, etc..
In each of the sheets Teacher1, Teacher2, Teacher3, etc. I have about 20 cells in column A that use some of the names listed within StudentRoster (these would be class rosters)
In each of the Teacher1, Teacher2, etc sheets column A will have the student names and column B will be a column in which I will manually insert an "X" to indicate completion of an assignment. Within the StudentRoster sheet I would like to have excel search through Teacher1, Teacher2, Teacher3, ... Teacher10 and count how many "X"s exist for StudentA. Student A may or many not be in all Teacher sheets
Can someone provide me with a way of doing this, I have been trying to use the COUNTIFS formula but I am struggling having it look for StudentA and then to begin counting only the "X"s for StudentA.
List your worksheets on the 11th sheet and name the range sheets then you can use this formula:
=SUMPRODUCT(COUNTIFS(INDIRECT("'"&Sheets&"'!A:A"),A1,INDIRECT("'"&Sheets&"'!B:B"),"X"))
Easiest would be to add a column to each teacher sheet to the left of the studentname. In that column you put in =COUNTIF(range;"X"). Fill in relevant range e.g. C1:K1.
In the student roster list you could use add a top row with the teacher names and sum. With sumif(range of student names in Teacher 1 sheet; select cell with student name in roster; range in teacher 1 sheet with countif outcomes)
Then sum over all sumif statements by student for the total.
There would be other methods, but this one is least complicated and straightforward I think.

Resources