Index and match from different sheet with if statement?

Charlie109

New Member
Joined
Jan 26, 2022
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
I need to return value from another worksheet.

Sheet1 has the raw data to pull from
Col A= Emp ID
Col G = PEL ID
Col L = Expiry Date
Col M = Credit Result

I need to look up an EmpID from another sheet (called 33685 DE Qual Status).
Row 2 = all individual EmpID
Col A = the PEL ID
Column below each EmpID required the credit result from sheet1 (Credit result should be either a P, a date or REQ'D
if ColL in sheet1 has a date, that is the value to enter in sheet 33685 DE Qual Status
if there is no date in ColL then enter value that is in ColM (should be P); if the value is E, change it to P and if there is no match the value should be REQ'D

Attached is a spreadsheet.

Appreciate your help
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Attach
DE Qual tracking-Updated Jan 12 2022.xlsx
ABCDEFG
1PELTitleTimeTypeName ->
2EE ID ->180650801801
3QUAL 33685IN PROGRESSAPPROVED
4PEL IDPEL NameDURATIONENVIRONMENTTYPE
5369INTRO TO CODES & JURISDICTIONAL REQUIREMENTS FOR PRESSURE BOUNDARIES - CAL4CBTCRSREQ'D#N/A
63520INTRODUCTION TO CANDU - CBT8CBTCRSREQ'DCredit Result
73659BASIC NUCLEAR THEORY - CBT7CBTCRSREQ'DCredit Result
83875INTRODUCTION TO EQ ENGINEERING - CBT3CBTCRSPP
913128PRINCIPLES OF NUCLEAR SAFETY8CLASSROOMCRSREQ'DP
1013505PROFESSIONAL ENGINEERS ACT & DESIGN AUTHORITY - CAL2CALARQREQ'DP
1121803OPERATING POLICIES & PRINCIPLES INTRODUCTION FOR ENGINEERING STAFF - CAL2CBTCRSREQ'DP
1225663INTRODUCTION TO OPERATING EXPERIENCE - CBT2CBTCRSREQ'DP
1328624PRESSURE BOUNDARY PROGRAM OVERVIEW - CAL2CBTCRS11-Aug-24REQ'D
1428738DE EVALUATION - DESIGN REQUIREMENTS - PEV2OJTJPMREQ'DP
1528739DE EVALUATION - CALCULATIONS & ANALYSIS - PEV3OJTJPMREQ'DP
1628740DE EVALUATION - ENGINEERING SPECIFICATIONS - PEV3OJTJPMREQ'DP
1728743DE EVALUATION - PLANT MODIFICATIONS - PEV2OJTJPMREQ'DP
1864196SEISMIC QUALIFICATION FOR ENGINEERS - CAL2CALARQREQ'DP
1965863TECHNICAL OPERABILITY EVALUATION (TOE) - CAL1CBTCRSREQ'DP
2066157RISK BASED MODIFICATION PROCESS OVERVIEW - CAL3CBTCRSREQ'DP
2166561RECORDS MANAGEMENT AWARENESS - CAL2CALARQREQ'DP
2266978DISCOVERY ISSUE RESOLUTION PROCESS (DIRP) - CAL72CBTCRSREQ'DP
2367329PROCEDURAL COMPLIANCE - CAL2CBTCRSREQ'DP
2467882ENGINEERING BEHAVIOURS - CAL1CALARQREQ'DREQ'D
2568601AGING MANAGEMENT - CAL4CBTCRSREQ'DP
2669122ADVANCED PRINCIPLES OF NUCLEAR SAFETY3CLASSROOMCRSREQ'DP
2769151SCIENTIFIC, ENGINEERING & SAFETY ANALYSIS (SESA) SOFTWARE - CAL8CBTCRSREQ'DP
2869451INTRODUCTION TO RISK MANAGEMENT AND MARGIN MANAGEMENT - CAL2CBTCRSREQ'DP
2970843CSA N285 OVERVIEW - CAL2CBTCRSREQ'DP
3070844CSA N286 OVERVIEW - CALCBTCRSREQ'DP
3170845INTRODUCTION TO DESIGN BASISCLASSROOMCRSREQ'DP
3277796INTRODUCTION TO CSA N299 - CALCALARQREQ'DP
3378129NUCLEAR NON-PROLIFERATION IMPORT AND EXPORT CONTROL REGULATIONSCALARQREQ'DP
33685 DE Qual Status
Cell Formulas
RangeFormula
G5G5=INDEX(Sheet1!M:M,MATCH('33685 DE Qual Status'!$G$2,A5,0))
G6:G7G6=INDEX(Sheet1!M:M,MATCH('33685 DE Qual Status'!$G$2,A6))
ed is the file
 
Upvote 0
Sheet1
DE Qual tracking-Updated Jan 12 2022.xlsx
ABCDEFGHIJKLM
1Emp IDLast NameFirst NameMJFTypeSupv IDPEL IDLocationPEL NameActiveCredit DateExpiry DateCredit Result
2801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN67882xxxNENxINEERINx BEHAVIxURS - CALY31-May-2130-Jun-22P
3801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN64246xxxNNxET CxNTINUINx TRAININx CBTY28-May-2130-Jun-23P
4801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN70577xxxNNxET CxNTINUINx TRAININx FxR NUCLEAR SUxxxRT STAFF - CBTY28-May-2130-Jun-23P
5801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN76782RxWHMIS FxR Rx ANNUAL CxNTINUINx TRAININx - CBTY28-May-2130-Jun-22P
6801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN77107DNDREFURBISHMENT INTERFACE AND ISLANDINx TRAININx TIER 2 - CxNTRACTxR STAFF - CALY24-Mar-21P
7801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN23783xxxRESxIRATxR MEDICAL ASSESSMENT - xxxY08-Mar-2108-Dec-22P
8801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN369xxxNCxDE-xVER-CxDE REVIEW - ASME SECTIxN III CxDE CHANxES REFRESHER - CALY24-Feb-2024-Feb-23P
9801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN66979xxxNTxE AND DIRx REFRESHER TRAININx AND xxEX - CALY14-Jan-2031-Mar-23P
10801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN70964xxxNTxE AND DIRx REFRESHER - CAL - TRACKINx xEL (CxMxLETE xEL 66979)Y14-Jan-2031-Mar-23P
11801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN65799xxxNENVIRxNMENTAL QUALIFICATIxN REFRESHER FxR ENxINEERINx - CALY10-Jan-2031-Mar-23P
12801801xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN61146xxxNSAFE xxERATINx ENVELxxE - CALY02-Dec-1902-Dec-22P
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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