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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Can you use the xl2bb add in to paste a mini worksheet sample of your worksheet?
Or at minimum, paste an image that we can copy actual cells so we don't have to create the workbook from scratch?
 
Upvote 0
Can you use the xl2bb add in to paste a mini worksheet sample of your worksheet?
Or at minimum, paste an image that we can copy actual cells so we don't have to create the workbook from scratch?
DRILCO DP Report V4.4 - Copy.xlsb
ABCDEFGHIJKLMNOPQRSTUVWXZ
50Box ConnectionHard BandPin Connection
51Joint No.Serial Number (1)Serial Number (2)Min WallRBW%Flaking ID CtgBox TJ ODBox Bevel Dia.Box LengthBox Tong SpaceBox Initial Cond.__Box HBPin HBPin TJ ODPin TJ IDPin Bevel Dia.Pin LengthPin Tong SpacePin Initial Cond.___Bent?Joint ClassificationFinal ClassComments
521   
532   
543   
554   
565   
576   
Drill Pipe
Cell Formulas
RangeFormula
W52:W57W52=IF(E52="","",IF(E52<=80%,"2","P"))
X52:X57X52=IF(OR(K52="",T52=""),"",IF(AND(OR(K52="OK",K52="OK-FR"),OR(T52="OK",T52="OK-FR")),"OK","RPR"))
E52:E57E52= IF([@[Min Wall]]="","",[@[Min Wall]]/$R$36)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K52:K1551,T52:T1551Cell Valuecontains "CT"textNO
P52:P1551Cell Value>General!$O$16textNO
X52:X1551Cell Valuebeginning with "REJ"textNO
X52:X1551Cell Valueending with "HB"textNO
X52:X1551Cell Valuebeginning with "RPR"textNO
B52:B1551Cell ValueduplicatestextNO
E52:E1551Cell Valuebetween 0.7 and 0.7999textNO
E52:E1551Cell Valuebetween 0.6 and 0.6999textNO
E52:E1551Cell Valuebetween 0.001 and 0.5999textNO
V52:V1551Expression=IF($V52="X",TRUE,FALSE)textNO
K52:K1551Expression=IF($K52="MRF",TRUE,FALSE)textNO
T52:T1551Expression=IF($T52="MRF",TRUE,FALSE)textNO
N52:N1551Expression=IF($N52="D",TRUE,FALSE)textNO
M52:M1551Expression=IF($M52="D",TRUE,FALSE)textNO
N52:N1551Expression=IF(OR($N52="F",$N52="W"),TRUE, FALSE)textNO
M52:M1551Expression=IF(OR($M52="F",$M52="W"),TRUE,FALSE)textNO
R52:R1551Cell Valuebetween 0.0001 and $W$42 - 0.0001textNO
R52:R1551Cell Value>$W$43textNO
I52:I1551Cell Valuebetween 0.0001 and $W$40 - 0.00001textNO
I52:I1551Cell Value>$W$41textNO
S52:S1551Cell Valuebetween $R$44 and $R$44+0.75textNO
S52:S1551Cell Valuebetween 0.001 and ($R$44-0.001)textNO
J52:J1551Cell Valuebetween $R$43 and $R$43+0.75textNO
J52:J1551Cell Valuebetween 0.001 and $R$43-0.001textNO
G52:G1551,O52:O1551Cell Valuebetween $R$41 and $R$41+0.0625textNO
G52:G1551,O52:O1551Cell Valuebetween 0.001 and $R$41-0.001textNO
E52:E1551,T52:T1551,M52:N1551,K52:K1551Expression=IF(OR(E52=$E$24:$E$25),TRUE,FALSE)textNO
E52:E1551,T52:T1551,M52:N1551,K52:K1551Expression=IF(OR(E52=$E$8:$E$23),TRUE,FALSE)textNO
Cells with Data Validation
CellAllowCriteria
F52:F57List=Lists!$K$24:$K$28
T52:T57List=Lists!$J$3:$J$23
K52:K57List=Lists!$J$3:$J$23
V52:V1551List=Lists!$K$21
W52:W1551List=Lists!$K$14:$K$18
X52:X1551List=Lists!$K$2:$K$5
M52:N57List=Lists!$K$8:$K$10
 
Upvote 0
Can you use the xl2bb add in to paste a mini worksheet sample of your worksheet?
Or at minimum, paste an image that we can copy actual cells so we don't have to create the workbook from scratch?
Sorry about that, last time I couldn't get it to load. There is a small IF formula in column X already that I got help with and just expanded on.
 
Upvote 0
Sorry about that, last time I couldn't get it to load. There is a small IF formula in column X already that I got help with and just expanded on.
I copied the worksheet, but there is no data.
 
Upvote 0
I copied the worksheet, but there is no data.
Does it matter if the drop down data is on another tab? Or do I need to prefill like how I have in my attachment and then re-paste the XL2BB?
 
Upvote 0
I don't think the drop downs are that critical. But, the data is important for me to recreate your issues. YOu have a lot of dependencies. The cell formatting (including conditional formatting) did not copy either... but I think that is the nature of the xl2bb beast. The worksheet has table references. Can you go to your Excel Options and change table references to show the range values before you copy? I don't see a table or know where to look for one. In the one formula that did copy over you refer to a vaue in row36 I think that is not in the mini workbook. Maybe you can copy Row 1 to row 50? And be sure that includes all/most the possible scenarios of data permutation as well as the input columns used in calculations.?

But, I guess .. what I really want to know based on the title of the post... is what is it about XLOOKUP you want to figure out?
 
Upvote 0
I don't think the drop downs are that critical. But, the data is important for me to recreate your issues. YOu have a lot of dependencies. The cell formatting (including conditional formatting) did not copy either... but I think that is the nature of the xl2bb beast. The worksheet has table references. Can you go to your Excel Options and change table references to show the range values before you copy? I don't see a table or know where to look for one. In the one formula that did copy over you refer to a vaue in row36 I think that is not in the mini workbook. Maybe you can copy Row 1 to row 50? And be sure that includes all/most the possible scenarios of data permutation as well as the input columns used in calculations.?

But, I guess .. what I really want to know based on the title of the post... is what is it about XLOOKUP you want to figure out?
The first row on the worksheet is just a tabulation for all the data that is being inputted into the worksheet. I wasn't able to figure out on how to add the range values in before I copied over the mini sheet in this go around as well.

I guess I wanted to see if XLOOKUP would be able to help me solve this issue. I have brought this up to someone before and they mentioned putting the combinations in one table and just have XLOOKUP reference that table to fill in what I need on the main table.
 
Upvote 0
DRILCO DP Report V4.4 - Copy.xlsb
ABCDEFGHIJKLMNOPQRSTUVWXZ
50Box ConnectionHard BandPin Connection
51Joint No.Serial Number (1)Serial Number (2)Min WallRBW%Flaking ID CtgBox TJ ODBox Bevel Dia.Box LengthBox Tong SpaceBox Initial Cond.__Box HBPin HBPin TJ ODPin TJ IDPin Bevel Dia.Pin LengthPin Tong SpacePin Initial Cond.___Bent?Joint ClassificationFinal ClassComments
521 STSOKOKOKRej
532 UNDOKOKOKRej
543 OKOKOKSTSRej
554 OKOKOKUNDRej
565 OKOKOKOKXRPR
576 MRFOKOKOKRPR
587 PITOKOKOKRPR
598 WTOKOKOKRPR
609 CTOKOKOKRPR
6110 GTOKOKOKRPR
6211 WOOKOKOKRPR
6312 BTOKOKOKRPR
6413 BVOKOKOKRPR
6514 BMOKOKOKRPR
6615 DIMOKOKOKRPR
6716 PUTOKOKOKRPR
6817 CSOKOKOKRPR
6918 GSOKOKOKRPR
7019 SDOKOKOKRPR
7120 PSOKOKOKRPR
7221 UNSOKOKOKRPR
7322 SCOKOKOKRPR
7423 OKOKOKMRFRPR
7524 OKOKOKPITRPR
7625 OKOKOKWTRPR
7726 OKOKOKCTRPR
7827 OKOKOKGTRPR
7928 OKOKOKWORPR
8029 OKOKOKBTRPR
8130 OKOKOKBVRPR
8231 OKOKOKBMRPR
8332 OKOKOKDIMRPR
8433 OKOKOKPUTRPR
8534 OKOKOKCSRPR
8635 OKOKOKGSRPR
8736 OKOKOKSDRPR
8837 OKOKOKPSRPR
8938 OKOKOKUNSRPR
9039 OKOKOKSC RPR
9140 OKFOKOK OK-HB
9241 OKOKFOK OK-HB
9342 OKDOKOK OK-HB
9443 OKOKDOK OK-HB
9544 OKDFOK OK-HB
9645 OKFDOK OK-HB
9746 OKOKOKOK OK
9847 OK-FROKOKOK OK
9948 OKOKOKOK-FR OK
Drill Pipe
Cell Formulas
RangeFormula
X57:X90,X97:X99X57=IF(OR(K57="",T57=""),"",IF(AND(OR(K57="OK",K57="OK-FR"),OR(T57="OK",T57="OK-FR")),"OK","RPR"))
W90:W99W90=IF(E90="","",IF(E90<=80%,"2","P"))
E52:E99E52= IF([@[Min Wall]]="","",[@[Min Wall]]/$R$36)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K52:K1551,T52:T1551Cell Valuecontains "CT"textNO
P52:P1551Cell Value>General!$O$16textNO
X52:X1551Cell Valuebeginning with "REJ"textNO
X52:X1551Cell Valueending with "HB"textNO
X52:X1551Cell Valuebeginning with "RPR"textNO
B52:B1551Cell ValueduplicatestextNO
E52:E1551Cell Valuebetween 0.7 and 0.7999textNO
E52:E1551Cell Valuebetween 0.6 and 0.6999textNO
E52:E1551Cell Valuebetween 0.001 and 0.5999textNO
V52:V1551Expression=IF($V52="X",TRUE,FALSE)textNO
K52:K1551Expression=IF($K52="MRF",TRUE,FALSE)textNO
T52:T1551Expression=IF($T52="MRF",TRUE,FALSE)textNO
N52:N1551Expression=IF($N52="D",TRUE,FALSE)textNO
M52:M1551Expression=IF($M52="D",TRUE,FALSE)textNO
N52:N1551Expression=IF(OR($N52="F",$N52="W"),TRUE, FALSE)textNO
M52:M1551Expression=IF(OR($M52="F",$M52="W"),TRUE,FALSE)textNO
R52:R1551Cell Valuebetween 0.0001 and $W$42 - 0.0001textNO
R52:R1551Cell Value>$W$43textNO
I52:I1551Cell Valuebetween 0.0001 and $W$40 - 0.00001textNO
I52:I1551Cell Value>$W$41textNO
S52:S1551Cell Valuebetween $R$44 and $R$44+0.75textNO
S52:S1551Cell Valuebetween 0.001 and ($R$44-0.001)textNO
J52:J1551Cell Valuebetween $R$43 and $R$43+0.75textNO
J52:J1551Cell Valuebetween 0.001 and $R$43-0.001textNO
G52:G1551,O52:O1551Cell Valuebetween $R$41 and $R$41+0.0625textNO
G52:G1551,O52:O1551Cell Valuebetween 0.001 and $R$41-0.001textNO
E52:E1551,M52:N1551,K52:K1551,T52:T1551Expression=IF(OR(E52=$E$24:$E$25),TRUE,FALSE)textNO
E52:E1551,M52:N1551,K52:K1551,T52:T1551Expression=IF(OR(E52=$E$8:$E$23),TRUE,FALSE)textNO
Cells with Data Validation
CellAllowCriteria
V52:V99List=Lists!$K$21
W68:W99List=Lists!$K$14:$K$18
F52:F99List=Lists!$K$24:$K$28
K68:K99List=Lists!$J$3:$J$23
T74:T99List=Lists!$J$3:$J$23
X52:X99List=Lists!$K$2:$K$5
M91:N99List=Lists!$K$8:$K$10
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
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