Returning Grade based on Class Code

antinora

Board Regular
Joined
Dec 4, 2013
Messages
87
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Greetings:

I need to return a student's report card number grade for any class code which begins with letter "P".

For example, Zaref received a 90 for his period 4 class beginning with PQS.

Ultimately, I need a list of students whose "P" (phys ed) class grade is < = 55. Some students may have more than 1 "P" class.

Thanks,

Jon

This is the data:

FirstOfficialGradePeriod 1Grade1Grade2Period 3Period 4Grade4Grade5Period 6Period 7Grade7Grade8Period 9Period 10Grade10
AMJAD2LZ12SWS11QBW 0150PGS74 02NSZL 01nilSDS11QPW 0140ESS22QQR 0355ESS22QQW 0440ZM2012 01nil
MALEKE4C412EES88QQJ 0185EJS22 0170HLS22TJ 0170ZL 02nilMQS11QF 0255HES11QQJ 0370PPS74 1190
ZAREEF5Q311MGS22QQE 0140RVS64 0165PQS74Q5B 0390SDS22QEE 0155EES84QQE 0285ZL 04nilHGS42QQE 0375
ANA4L412SCS22 0175PPS74Q4X 0585SCS22QL 01PPHS11QQL 0170ZL 02nilESS22QQR 0390ESS22QQW 0485
ASHELY7F19EES82QCB 0198MGS22Q9B 0180HUS22Q9B 0185EWS22QCW 0280HQS11Q9F 0290ZLA 03nilSLS22Q9T 0280
CHRISTOPHER7L19ESS84QQ1 0155ESS84QQ2 0155ZL 01nilAGS22QQL 0155MES42QCL 0255HGS42QQL 0440PGS72 0740
EMELY5S311FSS44QQL 0159EES86QQB 0285PPS74 0585SLS22QLJ 0290SLS22QQJ 02FBAS11T 0159HGS44QQJ 0370
JAVIER4D412HES11QQE 0170ELS22QHS 0159SHS66T 0155EES88QQC 0265PHS11 0465MRS22QQC 0255SPS22QL 02F
MARLEN5Q311PQS74Q5V 0180HQS11QAH 0155MGS31QQT 0255FSS22XQL 0185HGS44QQE 0265ZL 04nilEES86QQT 0375
NATALIE5C311HGS44QQJ 0155FSS62 1595SES22QLB 01FSES22QQB 0159ZL 02nilPQS74Q5V 0580HLS44T 0280
OSCAR5Q311EES86QQB 0180UNS61 0194PGS74Q4X 1085SCS22QL 04nilSCS22 0455HGS44QQE 0285MRS22QQC 0270
ABDULAZIZ4LR9SLS42QLL 01PSLS42QQL 0165HGS42QQL 0165HSS42QQL 0165ZL 02nilMES22QQL 0155PGS74 0655
JONATHAN4C210HUS22QQT 0165EES86QQB 0270ZL 01nilPQS74Q5B 0465FSS62 0765SLS22QLJ 0365SLS22QQJ 03P
JOSHUA6P210EES84QQM 0155HGS42QQM 0380TWS22QQM 0140SLS22QLM 02PSLS22QQM 0275MES44QQM 0355PQS74Q5B 0540
RUSKIN6J210MGS22QQE 0165EES84QQE 0185AYS22QD 0170PQS74Q5V 0495SES22QLE 02FSES22QQE 0259ZL 04nil
GANESH7F19MES22QCB 0155EWS22QCW 0170SLS22Q9B 0255PPS72Q4A 0690SLS22QL9 05FTWS11Q9 0470HUS22Q9B 0350
CARLOS3J412ELS22QHS 0159ZL 01nilMGS44QQE 0165PGS74 0540HQS11QAH 03NSZM2013 01nilZMFOR 01nil
MANUEL6J210MGS22QQE 0159PGS74 0265FSS42QQL 0280HGS42QQE 0275EES84QQE 0275ZL 04nilRVS62 0275
PAOLA5Q311EES86QQB 0195PPS74Q4X 0675SCS22QL 03PSCS22 0385MRS22QQE 0275UNS61 0393HUS22QQB 0290
BAYRON7F19HUS22Q9D 0155MES22QCD 0255PPS72Q4A 0470SLS22QL9 08FSLS22Q9D 0155ZLA 02nilEWS22QCW 0470
RAFAEL7W19TWS11Q9 0155EES82QCS 0265HUS22Q9S 0155MES22QCS 0165EWS22QCW 0659ZLA 03nilSLS22Q9S 0255
MATTHEW5R210SDS22QES 0155FSS62 0340EES86QQS 0180ZL 02nilHGS44QQS 0285PQS74Q5B 0590MQS11QF 0355
MISBAH6L210PPS74 0190MGS22QQL 0175ZL 01nilHGS42QQL 0280SLS44QEL 0275SLS44QLL 02PHSS42QQL 0290
NICOLE6J210HGS42QQC 0195FSS44QQI 0190PQS74Q5V 03100EES84QQC 0185AES21 03100ZL 04nilMGS22QQC 0270
CARLOS6M210ESS42QBL 0155PPS74 0255HGS42QQF 0285SLS42QLF 02PSLS42QQF 0275MES44QQF 0159FSS42QQI 0185
<colgroup><col width="133" style="width: 100pt; mso-width-source: userset; mso-width-alt: 4864;"> <col width="52" style="width: 39pt; mso-width-source: userset; mso-width-alt: 1901;"> <col width="44" style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="58" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="58" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="51" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="58" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;"> <col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="58" style="width: 44pt; mso-width-source: userset; mso-width-alt: 2121;"> <tbody> </tbody>
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Use helper columns. I build one for you. Modify ranges accordingly for the rest of the columns.


<html><head><title>Excel Jeanie HTML</title></head><body>
<!-- ######### Start Created Html Code To Copy ########## -->
Excel Workbook
ABCDEF
1FirstOfficialGradePeriod 1Grade1P1Score
2AMJAD2LZ12SWS11QBW 0150 
3MALEKE4C412EES88QQJ 0185 
4ZAREEF5Q311MGS22QQE 0140 
5ANA4L412SCS22 0175 
6ASHELY7F19EES82QCB 0198 
7CHRISTOPHER7L19ESS84QQ1 0155 
8EMELY5S311FSS44QQL 0159 
9JAVIER4D412HES11QQE 0170 
10MARLEN5Q311PQS74Q5V 018080
11NATALIE5C311HGS44QQJ 0155 
12OSCAR5Q311EES86QQB 0180 
13ABDULAZIZ4LR9SLS42QLL 01P 
14JONATHAN4C210HUS22QQT 0165 
15JOSHUA6P210EES84QQM 0155 
16RUSKIN6J210MGS22QQE 0165 
17GANESH7F19MES22QCB 0155 
18CARLOS3J412ELS22QHS 0159 
19MANUEL6J210MGS22QQE 0159 
20PAOLA5Q311EES86QQB 0195 
21BAYRON7F19HUS22Q9D 0155 
22RAFAEL7W19TWS11Q9 0155 
23MATTHEW5R210SDS22QES 0155 
24MISBAH6L210PPS74 019090
25NICOLE6J210HGS42QQC 0195 
26CARLOS6M210ESS42QBL 0155 
Sheet3

?
?
<!-- ######### End Created Html Code To Copy ########## -->
</body></html>
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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