Text in one cell pulls data from 2 cell next to it for each row

antinora

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

It's been a while as my role changed at work. However I'm looking for VBA suggestion/code. I want to scan each cell in column E looking for the word "MISSING" then once found report the text in the 2 column cells (C & D in this case) to the left on the same row for all rows.

Thanks and Happy Friday eve!

Below is sample data from my spreadsheet.

MrExcelUpload29OCT20 - Antinora.xlsx
ABCDEFGH
1FnameDatePD 1 ClassPD 1 TeacherPD 1 AttendancePD 2 ClassPD 2 TeacherPD 2 Attendance
2Aadesh10/22/2020PGS85-08SAMUELSENPHVS11QQT-01MADIGAN HUSSAINP
3Aakash10/22/2020FSS61-09RAMIREZPMGS21QQH-09SANCHEZP
4Aaliyah10/22/2020EES87QQT-03VARGAS RIVERAAPQS85QF-02AMALFITANOP
5Aamar10/22/2020HGS43QQX-05SOTRIYADISPKPS61T-02JOSEPHP
6Aaron10/22/2020HGS41QQR-01CAVERMISSINGPQS85QV-02MEDITZA
7Aaron10/22/2020KPS61T-01VALDEZPEES85X-02WOLFA
8Aaron10/22/2020EES81Q9T-01SOLOMON GIBBONSPZJPOPLIT-10VARGAS RODRIGUEZP
9Aarti10/22/2020SES21Q9-01FEISERPPPS85-08KUSHNICKP
10Abdalrahman10/22/2020SDS21QQM-01MOHAN DPEES41QWA-02MALINAUSKASA
11Abdul10/22/2020SHS21QQH-01SANDERSPALS11U-01SHERIDANP
12Abdullah10/22/2020EES87QQT-03VARGAS RIVERAAPGS85-02SAMUELSENL
13Abdulrahman10/22/2020EES81Q12-01HASSANLHGS41Q12-01BANGAREE CHIARAPPAP
14Abel10/22/2020HGS43QQX-01ROBERTSONAHUS21-04LOVEA
15Abel10/22/2020EES85-01WALLACEPMRS21H-01CHENP
16Abigail10/22/2020EES81Q9-01MOHAN DPAES21-02MARTI MUNOZP
17Abraham10/22/2020EES85-01WALLACEPSCS21U-01PEREIRAP
18Abu10/22/2020MGS21-04LUPOPSES21-02BRAVSTEINP
19Acleama10/22/2020PQS85QV-01MEDITZPMRS21H-01CHENP
20Adam10/22/2020MGS41Q9-01FIORLETTAAMGS42Q9-01FIORLETTAP
21Adam10/22/2020AYS21-02SHERIDANPMRS21H-01CHENP
22Adamaris10/22/2020AYS21-02SHERIDANASCS21U-01PEREIRAP
23Adamaris10/22/2020FSS43QQI-01MONTANPSCS21U-01PEREIRAP
24Addie10/22/2020AYS21-02SHERIDANASCS21U-01PEREIRAA
25Adeena10/22/2020HVS11QQT-02COHENPZJCOMSCI-01HANL
26Adilya10/22/2020PGS85-08SAMUELSENASES21-02BRAVSTEINA
27Aditya10/22/2020EES43QWA-01VALDEZPPPS85-02GERARDP
28Adna10/22/2020EES87QQM-01PERKINSPAHS21-02ALFAROP
29Adonis10/22/2020AYS21-02SHERIDANPPQS85QV-02MAKSIMOVICP
30Adrian10/22/2020PPS85-01KUSHNICKAHUS21-04LOVEA
31Adrian10/22/2020HVS11QQT-02MADIGAN COSMAAZJCOMSCI-01MOTTOLAA
32Adrian10/22/2020MGS41Q9-01FIORLETTAAMGS42Q9-01FIORLETTAA
33Adrian10/22/2020SES21-01BRAVSTEINPHUS21-04LOVEP
34Adrian10/22/2020PGS85-01SCAROLAPEES81Q9-09MOHAN DP
35Adriana10/22/2020MRS11QBT-01CHEN LALLAHVS11QQT-01MADIGAN HUSSAINA
36Adriana10/22/2020MCS41X-01WATSONPMCS42X-01WATSONP
37Adriana10/22/2020PGS85-01SCAROLAPFSS41QQL-01BAEZP
38Aeshah10/22/2020SHS21QQH-01SANDERSPEES85X-02CANZONERI COLICP
39Afrida10/22/2020EES81Q9-01SHARMAPMES41Q9-01SOLOMON GIBBONSP
40Ahmed10/22/2020PQS85QF-01AMALFITANOPEES85X-02WOLFP
41Aidan10/22/2020PGS85-01SCAROLAPFSS61-02SHABANAP
42Aiden10/22/2020HGS41Q9T-01MEIGHANPZJPOPLIT-02WALLACEA
43Aiden10/22/2020MGS21-04LUPOPEES85X-02WOLFP
44Aila Marie10/22/2020EES41QWB-01SCAROLAPSLS21QQL-03SOLOMON GIBBONSMISSING
45Aishah10/22/2020HGS41QQR-01CHEN LALLMISSINGHGS43QDX-01SOTIRYADIS DEVEAUA
46Akash10/22/2020APS21-01MARTI MUNOZAMGS21QQH-09SANCHEZA
47Akelia10/22/2020PHS11-01FOUNTOULISASES21QQT-01SULTAN PAKA
48Aklema10/22/2020RZS22-01NEWMANPZJCOMSCI-01HANP
49Alan10/22/2020SFS21QQH-01VACANCY SCIAEES87-01CONWAYA
50Alan10/22/2020PGS85-01SCAROLAPHLS43U-01DOOBAYP
51Alana10/22/2020MGS21-04LUPOPSFS43-01VARGASP
52Alana10/22/2020SFS41-01CAVERPSES21Q9-03FEISERP
53Albaneris10/22/2020RZS22-01NEWMANLZJCOMSCI-01HANP
54Albert10/22/2020SLS21QQL-01BRAVSTEINMISSINGPQS85QV-02MEDITZP
55Albert10/22/2020HUS21Q34-01LOVE PERSAUD CPPPS85-02GERARDP
56Alberto10/22/2020EES83QDX-01LEVY JACKSONLSFS43-01KARMODYP
57Aleesa10/22/2020SHS21QQH-01SANDERSPEES87-01CONWAYP
58Alejandra10/22/2020PPS85-01KUSHNICKAEES87Q34-01WHITEA
59Alejandro10/22/2020MGS21QQL-02COHENPESS85Q12-01PERSAUD CP
60Alessa10/22/2020EES85-01MEDITZMISSINGPPS85-08KUSHNICKP
61Alex10/22/2020SES21QQT-06MEANEY PAULAPPS85-08KUSHNICKA
62Alex10/22/2020SHS61U-01GATTALFSS61-02SHABANAP
63Alex10/22/2020RZS22-01NEWMANLSHS65T-02ROSSIELLOP
64Alex10/22/2020HGS41QQR-01AMALFITANOMISSINGPQS85QB-02RAMNARINEA
65Alex10/22/2020SLS21QQL-01SHERIDANMISSINGEES83Q12-01JAIRAMA
66Alex10/22/2020EES81Q9T-01MEANEY PAULMISSINGSLS21Q9-02SHARMAP
67Alex10/22/2020SLS21Q9-01SHARMAPEES81Q9-09MOHAN DP
68Alexa10/22/2020PGS85-08SAMUELSENPEES81Q9-09MOHAN DP
69Alexander10/22/2020SHS21QQH-01SANDERSAEES85QQT-01CANZONERI COLICA
70Alexander10/22/2020ZJPOPLIT-01SINGHAPPS85-02GERARDA
71Alexander10/22/2020SDS21QNM-01WALLACEMISSINGEES43QWA-02VALDEZP
72Alexander10/22/2020EES85-01MARTI MUNOZPSHS21QQH-02SANDERSA
73Alexander10/22/2020PGS85-01SCAROLAPALS11U-01SHERIDANP
74Alexander10/22/2020PGS85-01SCAROLAPEES43QWA-02VALDEZP
75Alexander10/22/2020MRS21-01CHILLARAPFSS41QQL-01BAEZP
76Alexander10/22/2020SLS21Q9-01SHARMAPMES41Q9-01MAKSIMOVICP
77Alexander10/22/2020PGS85-08SAMUELSENPEES81Q9T-02GARRETSON ALDENP
78Alexandra10/22/2020PQS85QF-01AMALFITANOPEES43QWA-02VALDEZP
79Alexandra10/22/2020SES21Q9-01FEISERPPPS85-02GERARDP
80Alexel10/22/2020MGS21QQT-06RAMOO MORANCYPZJPOPLIT-10VARGAS RODRIGUEZP
81Alexia10/22/2020PQS85QF-01AMALFITANOPSHS65T-02ROSSIELLOP
82Alexian10/22/2020RZS22-01NEWMANPPPS85-08KUSHNICKP
83Alexis10/22/2020PQS85QV-01MEDITZAEES85X-02WOLFP
84Aliah10/22/2020PQS85QF-01AMALFITANOPSFS43-01VARGAS RIVERAP
85Alicia10/22/2020SLS21Q9-01SHARMAPEES81Q9T-02GARRETSON ALDENP
86Alima10/22/2020KPS61T-01JOSEPHPFSS61-02SHABANAP
87Alinta10/22/2020PQS85QB-01SHERASHS21QQH-02SANDERSA
88Alishba10/22/2020SLS21QQL-01WALLACEMISSINGEES41QWA-02MALINAUSKASA
89Alishba10/22/2020AYS21-02SHERIDANPEES83QQX-01CHEESEBOROP
90Aliyah10/22/2020EES87X-01GARRETSONAPQS85QB-02RAMNARINEA
91Aljahron10/22/2020SES21Q9-01FEISERPMES41Q9-01MAKSIMOVICP
92Altaaf10/22/2020MGS21QQT-06RAMOO MORANCYPEES85QQT-01CANZONERI COLICP
93Alyssa10/22/2020PPS85-01KUSHNICKPEES83QQX-01CHEESEBOROP
94Alyssa10/22/2020FSS63-04TAVERASPSCS21U-01PEREIRAP
95Amaesh10/22/2020HGS43QQX-01ROBERTSONAPPS85-02GERARDA
96Amanda10/22/2020EES85-01WALLACELALS11U-01LEVY JACKSONP
97Amanda10/22/2020PPS85-01KUSHNICKPHGS43QDX-01SOTIRYADIS DEVEAUP
98Amandeep10/22/2020MRS11QBT-01CHEN LALLAESS85Q12-01PERSAUD CA
99Amara10/22/2020FISHERMISSINGMRS21-02PERSAUD LA
100Amara10/22/2020SES21Q9-01FEISERPZJPOPLIT-02WALLACEP
101Amarias10/22/2020MRS11QBT-01CHEN LALLAEES87Q34-01WHITEA
102Amarnauth10/22/2020HGS41QQR-01MOHAN DMISSINGAHS21-02ALFAROA
103Amaya10/22/2020SES21-01BRAVSTEINAPPS85-08KUSHNICKA
104Amber10/22/2020EES83QDX-01LEVY JACKSONAHGS43QDX-01SOTIRYADIS DEVEAUA
105Ameera10/22/2020PPS85-01KUSHNICKPHVS11QQT-01MADIGAN HUSSAINP
106Amel10/22/2020PHS11-01FOUNTOULISLSHS65T-02ROSSIELLOP
107Amelia10/22/2020EES87X-01GARRETSONLHVS11QQT-01MADIGAN HUSSAINP
108Amelia10/22/2020PQS85QB-01SHERPZJPOPLIT-10VARGAS RODRIGUEZP
109Amelia10/22/2020HGS43QQX-01ROBERTSONPSFS43-01KARMODYP
110Amina10/22/2020PQS85QB-01REYESPEES85QQT-01CANZONERI COLICP
111Amir10/22/2020FSS61-01SHABANAPKPS61T-02JOSEPHP
112Amirah10/22/2020HGS41Q9T-01MOTTOLA CAMACHOPSES21Q9-03FEISERP
113Amisha10/22/2020MRS21-01CHILLARAAHVS11QQT-01MADIGAN HUSSAINP
114Amit10/22/2020SES21-01BRAVSTEINAEES87-01CONWAYA
115Amit10/22/2020SDS21QNM-01FISHERPSFS43-01KARMODYP
116Ammitoje10/22/2020MGS21QQL-02COHENAEES43QWA-02VALDEZA
117Amritpal10/22/2020MGS21QQL-02NEWMANPEES43QWA-02VALDEZA
118Amy10/22/2020EES81Q9-01MOHAN DLMES41Q9-01MAKSIMOVICA
119Amy10/22/2020SHS21QQH-01SANDERSPPQS85QV-02MEDITZP
120Anahi10/22/2020SDS21QNM-01FISHERAPGS85-02SAMUELSENP
121Anahis10/22/2020HVS11QQT-02MADIGAN COSMAPSHS65T-02ROSSIELLOP
122Anais10/22/2020MES41Q9-10MOHAN SAMES42Q9-10MOHAN SA
123Anderson10/22/2020EES81Q12-01HASSANPHGS41Q12-01BANGAREE CHIARAPPAP
124Andre10/22/2020SES21Q9-01FEISERPZJPOPLIT-02WALLACEP
125Andrea10/22/2020PQS85QF-01AMALFITANOAZJCOMSCI-01HANA
126Andrea10/22/2020SHS61U-01GATTAASES21QQT-01SULTAN PAKA
127Andrea10/22/2020PQS85QB-01FEISERPSLS21QQL-03GARRETSON ALDENMISSING
128Andrea10/22/2020SES21-01BRAVSTEINPMGS21QQT-01RAMOO MORANCYP
129Andres10/22/2020SLS21QQL-01SHARMAMISSINGEES41QWA-02MALINAUSKASP
130Andres10/22/2020SLS21Q9-01FOUNTOULISPPPS85-02GERARDA
131Andrew10/22/2020MGS21QQT-06RAMOO MORANCYAPGS85-02SAMUELSENA
132Andrew10/22/2020HUS21-08MEIGHANAEES85QQT-01CANZONERI COLICP
133Andrew10/22/2020AYS21-02SHERIDANPMGS21QQT-01RAMOO MORANCYP
134Andrew10/22/2020EES87X-01GARRETSONPSHS65T-02ROSSIELLOP
135Andrew10/22/2020EES81Q9T-01SOLOMON GIBBONSPPGS85-02SAMUELSENP
136Andy10/22/2020MRS21-01CHILLARAAHUS21-04LOVEA
137Andy10/22/2020HGS43QQX-01ROBERTSONPPGS85-02SAMUELSENP
138Aneeqa10/22/2020SLS21QQL-01SHERMISSINGEES81Q9-09MOHAN DP
139Aneury10/22/2020MGS21QQF-77REYESPEES83Q12-01JAIRAMP
140Angel10/22/2020MGS21QQT-06RAMOO MORANCYAPQS85QB-02RAMNARINEA
141Angel10/22/2020APS21-01MARTI MUNOZAMRS11QBH-01GENAOP
142Angel10/22/2020PGS85-01SCAROLAPEES87Q34-01WHITEP
143Angel10/22/2020SHS21QQH-01SANDERSPEES85QQT-01CANZONERI COLICP
144Angel10/22/2020SLS21Q9-01SHARMAPMES41Q9-01MAKSIMOVICP
145Angel10/22/2020SHS61U-01GATTAPPPS85-08KUSHNICKP
146Angel10/22/2020MGS21-04LUPOPEES41QWA-02MALINAUSKASP
147Angel Miguel10/22/2020MGS21QQL-02COHENPZJCOMSCI-01LEVY JACKSONP
148Angela10/22/2020MRS11QBT-01SHERPEES87Q34-01WHITEA
149Angelena10/22/2020FSS61-01SHABANAASES21-02BRAVSTEINA
150Angelic10/22/2020FSS61-01SHABANAPSCS21U-01PEREIRAP
151Angelica10/22/2020EES81Q9-01MOHAN DAMES41Q9-01MAKSIMOVICA
152Angelica10/22/2020PQS85QF-01AMALFITANOPMGS21QQH-09SANCHEZP
153Angelica10/22/2020SHS61U-01GATTAPMRS21H-01CHENP
154Angelin10/22/2020PQS85QV-01MEDITZPMGS21QQH-09SANCHEZP
155Angelina10/22/2020HGS41Q9T-01MOTTOLA CAMACHOAMES41Q9-01MAKSIMOVICP
156Angelina10/22/2020SFS41-01CAVERPMES41Q9-01MAKSIMOVICP
157Angelina10/22/2020EES81Q9T-01SOLOMON GIBBONSPSLS21Q9-02SHARMAP
158Angelis10/22/2020HGS41Q9T-01MOTTOLA CAMACHOAEES81Q9T-02GARRETSON ALDENA
159Angely10/22/2020AYS21-02SHERIDANPMGS21QQT-01RAMOO MORANCYP
160Angie10/22/2020MGS21QQF-77ARRIOLAPSLS21QQL-03VALDEZMISSING
161Angie10/22/2020MGS21QQF-77REYESPESS85Q12-01PERSAUD CP
162Anisah10/22/2020EES87X-01GARRETSONPPQS85QB-02RAMNARINEP
163Anisha10/22/2020EES81Q9-01MOHAN DPPQS85QB-02SHABANAP
10.22.20
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
What do you want to do with the values from C & D if E is missing?
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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