Vlookup on multiple lines

DYLANATT1999

New Member
Joined
Aug 8, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi,

My knowledge of excel is very basic so any help will be appreciated

I am trying to do a lookup to display all matching values in the cells H2 / I2 / J2 cells to the columns highlighted green in my spreadsheet. Is there any way of doing this?

Filter Sheet.xlsx
ABCDEFGHIJKLMNOP
1Steel DiameterSteel ThicknessSteel Grade
2Filter Criteria76.12.5235
3
4ORDER NO.LineQuantityPromisedDeliveryDateDrawing NumberBASE DIABASE THKBASE GRADEBASE LENGTHQuantityMeter RequiredSHAFT DIAMETERSHAFT THICKNESSSHAFT GRADESHAFT LENGTH (mm)Quantity3Meter Required4
512044319B9043139.733552200204476.12.535520852041.7
625044375B0106 MDPT139.73275205050102.576.12.5275515050257.5
736644382B10700193.74275510066336.6139.732751036566684.09
845444382B10757168.33.6275490054264.6114.33275836554451.71
95144382B10700193.74275510015.1139.7327510365110.365
106144382B10757168.33.6275490014.9114.33275836518.365
117144382B10860168.33.6275460014.688.93275636516.365
12830044389B0106 MDPT139.73275205030061576.12.527551503001545
139444389B6247168.343552750411114.33.635511275445.1
14105044389B8708-500168.35275235050117.576.13.2275476550238.25
15112044389B8708-500168.352752350204776.13.227547652095.3
16121244396B8951168.353552750123388.9335566801280.16
17132044403B5796168.34.535528502057114.33355835520167.1
181411044403ENTER0000110000001100
1915544403B0104 LDPTFP139.7323510005576.12.52353200516
2016644410B5842168.353552450614.788.943556545639.27
21172044410B5514168.33.635527502055114.33355656520131.3
22188044410B8971139.7435523508018876.13275476580381.2
2319244410SC-140-76/4800139.73275180023.676.12.5275020
24201544410B7004168.34.535526501539.75114.33.6355896515134.475
25219744410B10701193.75275105097101.85139.7427510565971024.805
2622844417B9854168.352751600812.8114.332753095824.76
2723144417B2076193.74355295012.95139.7335510380110.38
2824644417B5649168.33.62752950617.7114.332758665651.99
2925144417B0542168.34.5355275012.75114.33.2355840018.4
30263044417B7001139.7335519503058.576.12.5355526530157.95
3127544417B5649168.33.62752950514.75114.332758665543.325
3228644417B10951193.76.33551950611.7139.74.53558450650.7
33295044424B0104 LDPT139.732351800509076.12.5235320050160
34305044424B5731139.7335522005011076.12.5355208550104.25
35312044424B0106 MDPT139.732752050204176.12.5275515020103
3632844424B5731139.733552200817.676.12.53552085816.68
37332444424B0106 MDPT139.7327520502449.276.12.5275515024123.6
38341844424B5013168.34.535529501853.1114.33.6355825518148.59
3935444424B5013168.34.53552950411.8114.33.63558255433.02
403619244431B10944193.742751900192364.876.132754015192770.88
41371044431B5741139.733552200102276.12.535521201021.2
4238244431B10284168.35275275025.5114.332756565213.13
4339644431B10256193.742753500621114.33.22758115648.69
4440244431B0106 HDPT139.75355205024.176.133555150210.3
4541144431B9362219.16.3355370013.7168.34355963019.63
46424044431B6871168.33.63552450409888.93355654540261.8
4743144431B5731139.73355220012.276.12.5355208512.085
4844144431B9165219.15355350013.5139.74355801518.015
49452744431B1937 W168.33.627527502774.25114.33275656527177.255
50465944431B3625219.15355300059177193.74355647059381.73
5147444431B9474168.33.6275205048.2114.332757065428.26
5248644431B10592139.732752400614.476.12.52753000618
5349344431B7003168.33.6355235037.0588.933557065321.195
545020044431B7978139.75355205020041076.1335550652001013
55515044431B8951168.35355275050137.588.93355668050334
56522544431B8952168.3535535002587.5114.34355840025210
57531244431B10957193.7535537001244.4139.732751040012124.8
5854444431B7042193.743553000412139.733558615434.46
5955144431B6247168.34355275012.75114.33.635511275111.275
6056144431B6247168.34355275012.75114.33.635511275111.275
6157444431B7547139.75275195047.876.132755165420.66
62581144431B0106 MDPT139.7327520501122.5576.12.527551501156.65
63591044431B0106 MDPT139.7327520501020.576.12.527551501051.5
64603044431B0106 MDPT139.7327520503061.576.12.5275515030154.5
65614044438B0106 MDPT139.732752050408276.12.5275515040206
66624044438B0106 MDPT139.732752050408276.12.5275515040206
6763244438B0106 MDPT139.73275205024.176.12.52755150210.3
686440044438B0106 MDPT139.73275205040082076.12.527551504002060
696514044438B0106 MDPT139.73275205014028776.12.52755150140721
70663544438B5731139.733552200357776.12.535520853572.975
71671544438B6868168.33.627527501541.2588.9335565651598.475
72681544438B5649168.33.627529501544.25114.33275866515129.975
7369544438B9994168.352752950514.75114.342758665543.325
74701044438B8816168.3435524501024.5114.33.635534051034.05
7571944438B10911193.762753050927.45139.73.627510765996.885
76721844438B10910168.33.635528501851.3139.73355876518157.77
777315044438B0224 SE168.33.63552750150412.5114.333556300150945
7874444438B9205168.34355225049114.33.23556745426.98
797520044438B6859 W168.33.6275230020046088.9327550002001000
80764844438B1437168.33.6235230048110.488.93275451548216.72
8177244438B5731139.73355220024.476.12.5355208524.17
82789744438B10701193.75275105097101.85139.7427510565971024.805
8379144438B10701193.75275105011.05139.7427510565110.565
8480944438B7547139.752751950917.5576.132755165946.485
85811744438B0106 MDPT139.7327520501734.8576.12.527551501787.55
8682844438B7978139.753552050816.476.133555065840.52
87832344438B0106 MDPT139.7327520502347.1576.12.5275515023118.45
88841344438B0106 MDPT139.7327520501326.6576.12.527551501366.95
8985744445B5649168.33.62752950720.65114.332758665760.655
9086744445B5741139.733552200715.476.12.53552120714.84
91875044445B0106 MDPT139.73275205050102.576.12.5275515050257.5
92885044445B9146139.73.235521005010576.12.5355501550250.75
9389944445B5731139.733552200919.876.12.53552085918.765
949019844445B10944193.742751900198376.276.132754015198794.97
95912044445B0105 MDPT139.732751800203676.12.527542002084
969214044445B0106 MDPT139.73275205014028776.12.52755150140721
97934844445B7367168.33.6355295048141.6114.33275866548415.92
98941144445B7980168.3535523501125.85114.3335569651176.615
9995244445ENTER000020000020
10096344445B0105 LDPT139.73235180035.476.12.52354200312.6
101971044445ENTER00001000000100
102981244445B0542168.34.535527501233114.33.2355840012100.8
1039915044445B0224 SE168.33.63552750150412.5114.333556300150945
104100244445B10976139.74355185023.788.93355265525.31
105101244445B10978168.35355225024.5114.33.63555665211.33
106102244445B6295 SE219.15355350027168.343557603215.206
107103244445B8691219.15355320026.4168.34.535510415220.83
108104444445B5731139.73355220048.876.12.5355208548.34
1091053044445B0104 LDPT139.732351800305476.12.523532003096
110106844445B0106 MDPT139.732752050816.476.12.52755150841.2
111107144445SC-140-114/5000139.73275180011.8114.33275331513.315
112108144445HDSC-140-114/5000139.75275180011.8114.35275331513.315
1131093044445B0106 MDPT139.7327520503061.576.12.5275515030154.5
1141101044445B0106 MDPT139.7327520501020.576.12.527551501051.5
11511120044445B10011139.75355235020047076.133554950200990
1161122844452B0106 HDPT139.7535520502857.476.13355515028144.2
117113244452B6247168.34355275025.5114.33.635511275222.55
1181144044452B0106 MDPT139.732752050408276.12.5275515040206
119115744452B7004168.34.53552650718.55114.33.63558965762.755
1201163044452B7197168.33.635529503088.5114.33275866530259.95
1211171044452B6868168.33.627527501027.588.9335565651065.65
1221182044452B0106 MDPT139.732752050204176.12.5275515020103
Sheet3
Cells with Data Validation
CellAllowCriteria
J2List=Sheet2!$B$2:$B$4
H2List=Sheet2!$A$2:$A$14
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,
If I have not misunderstood the question... you can use conditional formatting

Is this what you want ???

Book1
ABCDEFGHIJKLMNOP
1Steel DiameterSteel ThicknessSteel Grade
2Filter Criteria76.12.5235
3
4ORDER NO.LineQuantityPromisedDeliveryDateDrawing NumberBASE DIABASE THKBASE GRADEBASE LENGTHQuantityMeter RequiredSHAFT DIAMETERSHAFT THICKNESSSHAFT GRADESHAFT LENGTH (mm)Quantity3Meter Required4
512044319B9043139.733552200204476.12.535520852041.7
625044375B0106 MDPT139.73275205050102.576.12.5275515050257.5
736644382B10700193.74275510066336.6139.732751036566684.09
845444382B10757168.33.6275490054264.6114.33275836554451.71
95144382B10700193.74275510015.1139.7327510365110.365
106144382B10757168.33.6275490014.9114.33275836518.365
117144382B10860168.33.6275460014.688.93275636516.365
12830044389B0106 MDPT139.73275205030061576.12.527551503001545
139444389B6247168.343552750411114.33.635511275445.1
14105044389B8708-500168.35275235050117.576.13.2275476550238.25
15112044389B8708-500168.352752350204776.13.227547652095.3
16121244396B8951168.353552750123388.9335566801280.16
17132044403B5796168.34.535528502057114.33355835520167.1
181411044403ENTER0000110000001100
1915544403B0104 LDPTFP139.7323510005576.12.52353200516
2016644410B5842168.353552450614.788.943556545639.27
21172044410B5514168.33.635527502055114.33355656520131.3
22188044410B8971139.7435523508018876.13275476580381.2
2319244410SC-140-76/4800139.73275180023.676.12.5275020
24201544410B7004168.34.535526501539.75114.33.6355896515134.475
25219744410B10701193.75275105097101.85139.7427510565971024.805
2622844417B9854168.352751600812.8114.332753095824.76
2723144417B2076193.74355295012.95139.7335510380110.38
2824644417B5649168.33.62752950617.7114.332758665651.99
2925144417B0542168.34.5355275012.75114.33.2355840018.4
30263044417B7001139.7335519503058.576.12.5355526530157.95
3127544417B5649168.33.62752950514.75114.332758665543.325
3228644417B10951193.76.33551950611.7139.74.53558450650.7
33295044424B0104 LDPT139.732351800509076.12.5235320050160
34305044424B5731139.7335522005011076.12.5355208550104.25
35312044424B0106 MDPT139.732752050204176.12.5275515020103
3632844424B5731139.733552200817.676.12.53552085816.68
37332444424B0106 MDPT139.7327520502449.276.12.5275515024123.6
38341844424B5013168.34.535529501853.1114.33.6355825518148.59
3935444424B5013168.34.53552950411.8114.33.63558255433.02
403619244431B10944193.742751900192364.876.132754015192770.88
41371044431B5741139.733552200102276.12.535521201021.2
4238244431B10284168.35275275025.5114.332756565213.13
4339644431B10256193.742753500621114.33.22758115648.69
4440244431B0106 HDPT139.75355205024.176.133555150210.3
4541144431B9362219.16.3355370013.7168.34355963019.63
46424044431B6871168.33.63552450409888.93355654540261.8
4743144431B5731139.73355220012.276.12.5355208512.085
4844144431B9165219.15355350013.5139.74355801518.015
49452744431B1937 W168.33.627527502774.25114.33275656527177.255
50465944431B3625219.15355300059177193.74355647059381.73
5147444431B9474168.33.6275205048.2114.332757065428.26
5248644431B10592139.732752400614.476.12.52753000618
5349344431B7003168.33.6355235037.0588.933557065321.195
545020044431B7978139.75355205020041076.1335550652001013
55515044431B8951168.35355275050137.588.93355668050334
56522544431B8952168.3535535002587.5114.34355840025210
57531244431B10957193.7535537001244.4139.732751040012124.8
5854444431B7042193.743553000412139.733558615434.46
5955144431B6247168.34355275012.75114.33.635511275111.275
6056144431B6247168.34355275012.75114.33.635511275111.275
6157444431B7547139.75275195047.876.132755165420.66
62581144431B0106 MDPT139.7327520501122.5576.12.527551501156.65
63591044431B0106 MDPT139.7327520501020.576.12.527551501051.5
64603044431B0106 MDPT139.7327520503061.576.12.5275515030154.5
65614044438B0106 MDPT139.732752050408276.12.5275515040206
66624044438B0106 MDPT139.732752050408276.12.5275515040206
6763244438B0106 MDPT139.73275205024.176.12.52755150210.3
686440044438B0106 MDPT139.73275205040082076.12.527551504002060
696514044438B0106 MDPT139.73275205014028776.12.52755150140721
70663544438B5731139.733552200357776.12.535520853572.975
71671544438B6868168.33.627527501541.2588.9335565651598.475
72681544438B5649168.33.627529501544.25114.33275866515129.975
7369544438B9994168.352752950514.75114.342758665543.325
74701044438B8816168.3435524501024.5114.33.635534051034.05
7571944438B10911193.762753050927.45139.73.627510765996.885
76721844438B10910168.33.635528501851.3139.73355876518157.77
777315044438B0224 SE168.33.63552750150412.5114.333556300150945
7874444438B9205168.34355225049114.33.23556745426.98
797520044438B6859 W168.33.6275230020046088.9327550002001000
80764844438B1437168.33.6235230048110.488.93275451548216.72
8177244438B5731139.73355220024.476.12.5355208524.17
82789744438B10701193.75275105097101.85139.7427510565971024.805
8379144438B10701193.75275105011.05139.7427510565110.565
8480944438B7547139.752751950917.5576.132755165946.485
85811744438B0106 MDPT139.7327520501734.8576.12.527551501787.55
8682844438B7978139.753552050816.476.133555065840.52
87832344438B0106 MDPT139.7327520502347.1576.12.5275515023118.45
88841344438B0106 MDPT139.7327520501326.6576.12.527551501366.95
8985744445B5649168.33.62752950720.65114.332758665760.655
9086744445B5741139.733552200715.476.12.53552120714.84
91875044445B0106 MDPT139.73275205050102.576.12.5275515050257.5
92885044445B9146139.73.235521005010576.12.5355501550250.75
9389944445B5731139.733552200919.876.12.53552085918.765
949019844445B10944193.742751900198376.276.132754015198794.97
95912044445B0105 MDPT139.732751800203676.12.527542002084
969214044445B0106 MDPT139.73275205014028776.12.52755150140721
97934844445B7367168.33.6355295048141.6114.33275866548415.92
98941144445B7980168.3535523501125.85114.3335569651176.615
9995244445ENTER000020000020
10096344445B0105 LDPT139.73235180035.476.12.52354200312.6
101971044445ENTER00001000000100
102981244445B0542168.34.535527501233114.33.2355840012100.8
1039915044445B0224 SE168.33.63552750150412.5114.333556300150945
104100244445B10976139.74355185023.788.93355265525.31
105101244445B10978168.35355225024.5114.33.63555665211.33
106102244445B6295 SE219.15355350027168.343557603215.206
107103244445B8691219.15355320026.4168.34.535510415220.83
108104444445B5731139.73355220048.876.12.5355208548.34
1091053044445B0104 LDPT139.732351800305476.12.523532003096
110106844445B0106 MDPT139.732752050816.476.12.52755150841.2
111107144445SC-140-114/5000139.73275180011.8114.33275331513.315
112108144445HDSC-140-114/5000139.75275180011.8114.35275331513.315
1131093044445B0106 MDPT139.7327520503061.576.12.5275515030154.5
1141101044445B0106 MDPT139.7327520501020.576.12.527551501051.5
11511120044445B10011139.75355235020047076.133554950200990
1161122844452B0106 HDPT139.7535520502857.476.13355515028144.2
117113244452B6247168.34355275025.5114.33.635511275222.55
1181144044452B0106 MDPT139.732752050408276.12.5275515040206
119115744452B7004168.34.53552650718.55114.33.63558965762.755
1201163044452B7197168.33.635529503088.5114.33275866530259.95
1211171044452B6868168.33.627527501027.588.9335565651065.65
1221182044452B0106 MDPT139.732752050204176.12.5275515020103
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G5:G122,M5:M122Cell Value=$J$2textNO
F5:F122,L5:L122Cell Value=$I$2textNO
E5:E122,K5:K122Cell Value=$H$2textNO
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Vlookup on multiple lines
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Thankyou for the reply, I wish it was that easy lol.

I have done a simplified version which I hope answers the query

Filter Sheet - Copy.xlsx
ABCDEFGHIJKLMNO
1Parameters
2DiameterThicknessGRADE
3BASE SECTIONSHAFT SECTIONFilter Criteria
4ORDER NO.BASE DIAMETERBASE THICKNESSBASE GRADESHAFT DIAMETERSHAFT THICKNESSSHAFT GRADE
51139.7335576.12.5355No filter all rows apparent
62139.7327576.12.5275
73193.74275139.73275
84168.33.6275114.33275
95193.74275139.73275
106168.33.6275114.33275
117168.33.627588.93275
128139.7327576.12.5275
139168.34355114.33.6355
1410168.3527576.13.2275
1511168.3527576.13.2275
1612168.3535588.93355
1713168.34.5355114.33355
1814000000
1915139.7323576.12.5235
2016168.3535588.94355
21
22
23
24
25
26Parameters
27DiameterThicknessGRADE
28BASE SECTIONSHAFT SECTIONFilter Criteria139.73275
29ORDER NO.BASE DIAMETERBASE THICKNESSBASE GRADESHAFT DIAMETERSHAFT THICKNESSSHAFT GRADE
312139.7327576.12.5275
378139.7327576.12.5275Criteria applied to both BASE SECTION and SHAFT SECTION
46ORDER NO.BASE DIAMETERBASE THICKNESSBASE GRADESHAFT DIAMETERSHAFT THICKNESSSHAFT GRADEBased on criteria set, order no. 2 / 8 / 3 / 5 Contain the steel 139.7 & 3.0 & S275
493193.74275139.73275
515193.74275139.73275
Sheet3
Cells with Data Validation
CellAllowCriteria
J3List=Sheet2!$A$2:$A$14
J28List=Sheet2!$A$2:$A$14
L3List=Sheet2!$B$2:$B$4
L28List=Sheet2!$B$2:$B$4



As seen in the first section a reduced set of data

In the second section, you can see where I have specified what I want to find and then the set of orders that contain this data
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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