Xlookup Starting Point

OKCIrish

New Member
Joined
Dec 3, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello,

I'm new to excel, however I am very good at solving issues if I can get going in the right direction or have previous formulas to work off of or modify. I am having trouble on how to solve/approach this data point I would like returned to me.

My main data point that needs to be returned to a specific text in column X is OK, OK-HB, RPR or REJ is based on what is inputted in column K, M, N, T & V, from either drop-down menu selected or manually inputted.

I have been told a nested if formula would cause a lot of complications and Xlookup would be a better suit. However, I am stuck on how I should approach this table for Xlookup to work correctly. Do I have to have all different kinds of variations on the table, or can there be key components for the formulas to look up and return?

In column K & T if the drop down or manual input of STS or UND is selected then it overrides everything and the text in column X comes up as REJ.
Then column K, T, and V would compare for special text in column K & T and column V would have an X in it and column X would be returned as RPR if any of those parameters are met.
After that column K, T, M & N would be looked at. Column K & T would have to have either OK or OK-FR then column M & N would have F or D in it and then column X would return with OK-HB
And finally if column K, M, N, T & V have OK or OK-FR then column X would be returned as OK, with the variance of sometimes column N not having OK in the column at all but still returning column X with OK.

I would greatly appreciate any leads on how to approach this.
 

Attachments

  • Capture.PNG
    Capture.PNG
    50.2 KB · Views: 14

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Ok, Im not sure if you'll be able to plug and play this, but it should give you a working point:
First I created named ranged for the XLOOKUP and MATCH FUNCTIONS These are on the worksheet "Named Ranges".
Then the MAIN worksheet has data validation at a high level for each column. By high level, I mean the drop downs for M,N are not filtered for items in K or T. Also, i have some Zeros in the lists, those can be deleted.

It isn't conditional formating, but the resulting calcuation with give an error in column X if information is not input correctly.

XLookup for OKCIrish.xlsx
ABCDEFGHIJKL
1K-Box Initial ConditionM-Box Hard BandN-Pin HBT-Pin Initial CondV-BentMap X toKBOXINTLISTMBOXHARDLISTNPINLISTTPINLISTVBENTLIST
2BMXRPR00000
3BMRPRBMDDBMX
4BVXRPRBVFFBV
5BVRPRCSCS
6CSXRPRCTCT
7CSRPRDIMDIM
8CTXRPRGSGS
9CTRPRGTGT
10DIMXRPRMRFMRF
11DIMRPROKOK
12GSXRPROK-FROK-FR
13GSRPRPITPIT
14GTXRPRPSPS
15GTRPRPUTPUT
16MRFXRPRSCSC
17MRFRPRSDSD
18OKFOKSTSSTS
19OKFOKUNDUND
20OK-FRDOKUNSUNS
21OK-FRDOKWOWO
22PITXRPRWTWT
23PITRPR
24PSXRPR
25PSRPR
26PUTXRPR
27PUTRPR
28SCXRPR
29SCRPR
30SDXRPR
31SDRPR
32STSREJ
33UNDREJ
34UNSXRPR
35UNSRPR
36WOXRPR
37WORPR
38WTXRPR
39WTRPR
40BMXRPR
41BVXRPR
42CSXRPR
43CTXRPR
44DIMXRPR
45GSXRPR
46GTXRPR
47MRFXRPR
48PITXRPR
49PSXRPR
50PUTXRPR
51SCXRPR
52SDXRPR
53UNSXRPR
54WOXRPR
55WTXRPR
56BMRPR
57BVRPR
58CSRPR
59CTRPR
60DIMRPR
61GSRPR
62GTRPR
63MRFRPR
64OKOK-HB
65OKOK-HB
66OK-FROK-HB
67OK-FROK-HB
68PITRPR
69PSRPR
70PUTRPR
71SCRPR
72SDRPR
73STSREJ
74UNDREJ
75UNSRPR
76WORPR
77WTRPR
Named Ranges


XLookup for OKCIrish.xlsx
KMNTVXZ
1Hard Band
2Box Initial Cond.Box HBPin HBPin Initial Cond.Bent?Final ClassComments
3BMRPR
4CSRPR
5BMXRPR
6CTRPR
7OKFOK
8BMRPR
9BMRPR
10OK-FRDOK
11BMRPR
12UNDREJ
13BMRPR
14BMRPR
15BMRPR
16BMRPR
17BMRPR
18BMRPR
19
MainSheet for OKCIrish
Cell Formulas
RangeFormula
X3:X18X3=INDEX( +Map_X_to, MATCH(K3&M3&N3&T3&V3,K_Box_Initial_Condition&M_Box_Hard_Band&N_Pin_HB&T_Pin_Initial_Cond&V_Bent,0),1)
Named Ranges
NameRefers ToCells
K_Box_Initial_Condition='Named Ranges'!$A$2:$A$77X3:X18
M_Box_Hard_Band='Named Ranges'!$B$2:$B$77X3:X18
Map_X_to='Named Ranges'!$F$2:$F$77X3:X18
N_Pin_HB='Named Ranges'!$C$2:$C$77X3:X18
T_Pin_Initial_Cond='Named Ranges'!$D$2:$D$77X3:X18
V_Bent='Named Ranges'!$E$2:$E$77X3:X18
Cells with Data Validation
CellAllowCriteria
K3:K18List=KBOXINTLIST
T3:T18List=TPINLIST
V3:V18List=VBENTLIST
M3:M18List=MBOXHARDLIST
N3:N18List=NPINLIST
 
Upvote 0
Solution
Ok, Im not sure if you'll be able to plug and play this, but it should give you a working point:
First I created named ranged for the XLOOKUP and MATCH FUNCTIONS These are on the worksheet "Named Ranges".
Then the MAIN worksheet has data validation at a high level for each column. By high level, I mean the drop downs for M,N are not filtered for items in K or T. Also, i have some Zeros in the lists, those can be deleted.

It isn't conditional formating, but the resulting calcuation with give an error in column X if information is not input correctly.

XLookup for OKCIrish.xlsx
ABCDEFGHIJKL
1K-Box Initial ConditionM-Box Hard BandN-Pin HBT-Pin Initial CondV-BentMap X toKBOXINTLISTMBOXHARDLISTNPINLISTTPINLISTVBENTLIST
2BMXRPR00000
3BMRPRBMDDBMX
4BVXRPRBVFFBV
5BVRPRCSCS
6CSXRPRCTCT
7CSRPRDIMDIM
8CTXRPRGSGS
9CTRPRGTGT
10DIMXRPRMRFMRF
11DIMRPROKOK
12GSXRPROK-FROK-FR
13GSRPRPITPIT
14GTXRPRPSPS
15GTRPRPUTPUT
16MRFXRPRSCSC
17MRFRPRSDSD
18OKFOKSTSSTS
19OKFOKUNDUND
20OK-FRDOKUNSUNS
21OK-FRDOKWOWO
22PITXRPRWTWT
23PITRPR
24PSXRPR
25PSRPR
26PUTXRPR
27PUTRPR
28SCXRPR
29SCRPR
30SDXRPR
31SDRPR
32STSREJ
33UNDREJ
34UNSXRPR
35UNSRPR
36WOXRPR
37WORPR
38WTXRPR
39WTRPR
40BMXRPR
41BVXRPR
42CSXRPR
43CTXRPR
44DIMXRPR
45GSXRPR
46GTXRPR
47MRFXRPR
48PITXRPR
49PSXRPR
50PUTXRPR
51SCXRPR
52SDXRPR
53UNSXRPR
54WOXRPR
55WTXRPR
56BMRPR
57BVRPR
58CSRPR
59CTRPR
60DIMRPR
61GSRPR
62GTRPR
63MRFRPR
64OKOK-HB
65OKOK-HB
66OK-FROK-HB
67OK-FROK-HB
68PITRPR
69PSRPR
70PUTRPR
71SCRPR
72SDRPR
73STSREJ
74UNDREJ
75UNSRPR
76WORPR
77WTRPR
Named Ranges


XLookup for OKCIrish.xlsx
KMNTVXZ
1Hard Band
2Box Initial Cond.Box HBPin HBPin Initial Cond.Bent?Final ClassComments
3BMRPR
4CSRPR
5BMXRPR
6CTRPR
7OKFOK
8BMRPR
9BMRPR
10OK-FRDOK
11BMRPR
12UNDREJ
13BMRPR
14BMRPR
15BMRPR
16BMRPR
17BMRPR
18BMRPR
19
MainSheet for OKCIrish
Cell Formulas
RangeFormula
X3:X18X3=INDEX( +Map_X_to, MATCH(K3&M3&N3&T3&V3,K_Box_Initial_Condition&M_Box_Hard_Band&N_Pin_HB&T_Pin_Initial_Cond&V_Bent,0),1)
Named Ranges
NameRefers ToCells
K_Box_Initial_Condition='Named Ranges'!$A$2:$A$77X3:X18
M_Box_Hard_Band='Named Ranges'!$B$2:$B$77X3:X18
Map_X_to='Named Ranges'!$F$2:$F$77X3:X18
N_Pin_HB='Named Ranges'!$C$2:$C$77X3:X18
T_Pin_Initial_Cond='Named Ranges'!$D$2:$D$77X3:X18
V_Bent='Named Ranges'!$E$2:$E$77X3:X18
Cells with Data Validation
CellAllowCriteria
K3:K18List=KBOXINTLIST
T3:T18List=TPINLIST
V3:V18List=VBENTLIST
M3:M18List=MBOXHARDLIST
N3:N18List=NPINLIST
Thank you so much for this. I'll should be able to figure it out from here. I just needed a starting point to work off of.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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