Insert Value based on matching name in a specific matching header column

Swissmiss

New Member
Joined
Sep 27, 2013
Messages
23
I am working on combining test data into one giant workbook. I have two sheets of data. I need to add the mastery values per standard for each student to my master sheet. What formula can I use to accomplish this?

Any help much appreciated :)

Master Sheet:

Student NameStudent IDCourseTeacher<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>E3.13.D<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>E3.17.B<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>E3.18<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>E3.19
John Doefr4568djEnglish IIISmith

<tbody>
</tbody>

Outcome Sheet:

Student NameStudent IDPointsPoints PossibleMasteryOutcome Name
John Doefr4568dj24Not MasteredE3.13.D
John Doefr4568dj14Not MasteredE3.17.B
John Doefr4568dj34MasteredE3.18
John Doefr4568dj12Not MasteredE3.19

<tbody>
</tbody>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Book1
ABCDEF
1NameStudent IDPointsPoints PossibleMasteryOutcome Name
2John Doefr4568dj24Not MasteredE3.13.D
3John Doefr4568dj14Not MasteredE3.17.B
4John Doefr4568dj34MasteredE3.18
5John Doefr4568dj12Not MasteredE3.19
Outcome



Book1
ABCDEFGH
1Student NameStudent IDCourseTeacherE3.13.DE3.17.BE3.18E3.19
2John Doefr4568djEnglish IIISmith2131
3
Master


In E2 control+shift+enter, not just enter, and copy across:

=INDEX(Outcome!$C$2:$C$5,MATCH($B2,IF(Outcome!$F$2:$F$5=E$1,Outcome!$B$2:$B$5),0))
 
Upvote 0
ABCDJM
1NameStudent IDPointsPoints PossibleMasteryOutcome Name
2John Doefr4568dj24Not MasteredE3.13.D
3John Doefr4568dj14Not MasteredE3.17.B
4John Doefr4568dj34MasteredE3.18
5John Doefr4568dj12Not MasteredE3.19
6Sally Doe<table cellpadding="2.5px" rules="all" verdana,="" arial,="" tahoma,="" calibri,="" geneva,="" sans-serif;="" border:="" 1px="" solid="" rgb(187,="" 187,="" 187);="" border-collapse:="" collapse;"="" width=""><tbody>[TR]
[TD="align: right"]5554250
7Sally Doe555425024Not MasteredE3.17.B
8Sally Doe555425044MasteredE3.18
9Sally Doe555425012Not MasteredE3.19

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody></table>[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD]Mastered[/TD]
[TD]E3.13.D[/TD]
[/TR]

</tbody>
Outcome

ABCDATAUAVAW
1Student NameStudent IDCourseTeacherE3.13.DE3.17.BE3.18E3.19
2John Doefr4568djEnglish IIISmithNot MasteredNot MasteredMasteredNot Mastered
3Sally Doe5554250English IIIJonesMasteredNot MasteredMasteredNot Mastered

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Master

In E2 control+shift+enter, not just enter, and copy across:

=INDEX(Outcome!$C$2:$C$5,MATCH($B2,IF(Outcome!$F$2:$F$5=E$1,Outcome!$B$2:$B$5),0))


I super appreciate your answer! I tried to apply it and tweak it to the actual cell names (I had a ton of columns) but I can't make it work. I added the real column cells at the top of your example. And in the cells I'm trying to get the word mastered, not mastered. The data is also for about 500 students that come in the same pattern so I added another student so you could see what I mean. What would be the formula to get it to look like this? Super grateful for any suggestions :)
 
Upvote 0
Okay I realized it didn't look right when I tried to edit yours in the reply so I retyped it below:

I super appreciate your answer! I tried to apply it and tweak it to the actual cell names (I had a ton of columns) but I can't make it work. I added the real column cells at the top of your example. And in the cells I'm trying to get the word mastered, not mastered. The data is also for about 500 students that come in the same pattern so I added another student so you could see what I mean. What would be the formula to get it to look like this? Super grateful for any suggestions :)


ABCDATAUAVAW
1Student NameStudent IDCourseTeacherE3.13.DE3.17BE3.18E3.19
2John Doe12345English IIISmithNot MasteredNot MasteredMasteredNot Mastered
3Sally Doe12345English IIISmithMasteredNot MasteredMasteredNot Mastered

<tbody>
</tbody>
Master


ABCDJM
1Student NameStudent IDPointsPoints PossibleMasteryOutcome Name
2John Doe1234524Not MasteredE3.13.D
3John Doe1234514Not MasteredE3.17B
4John Doe1234534MasteredE3.18
5John Doe1234512Not MasteredE3.19
6Sally Doe5432144MasteredE3.13.D
7Sally Doe5432124Not MasteredE3.17B
8Sally Doe5432144MasteredE3.18
9Sally Doe5432112Not MasteredE3.19

<tbody>
</tbody>

Outcomes
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top