Index, match and return value (with if statements)?

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

Appreciate your help
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))


DE Qual tracking-Updated Jan 12 2022.xlsx
ABCDEFGHIJKLM
1Emp IDLast NameFirst NameMJFTypeSupv IDPEL IDLocationPEL NameActiveCredit DateExpiry DateCredit Result
298765xLHxxxxLIxENGExternxl Servixes - xxxI - KINExTRIxSINx204252 - SxxxOxIN369xxxNENxINEERINx 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
598765xLHxxxxLIxENGExternxl 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-21E
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
Sheet1
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I'm sorry, but this is very difficult to understand - mainly because you have nonsense INDEX formulas in there to confuse matters. Also it seems that the requirement is not to fetch on Emp ID, but on matching both an Emp ID and Pel ID - is that the case?
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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