xlookup multiple criteria

markomarra

New Member
Joined
Apr 26, 2023
Messages
6
Office Version
  1. 365
Platform
  1. Windows
To Whom,

In a nutshell.

I have a column of stationing values that I would like to have the searched.

Find the interval between every PC and PT values in the search range and determine if another value is within that interval. If found return another value from a different column.

criteria:
1. PNT Type = "BL"
2. GEO. Type = ONLY the interval between PC and PT
3. BL = BL must Match Baseline
4. GEO. TIE = POT or POC

return value:
1. Radius Length.

Would prefer to use a excel formula. Maybe "xlookup" will work. but, only a suggestion/best guess. But if not possible a macro would suffice also.

Thanks in advance.

Mark

MrExcel xlookup multi criteria.jpg
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi @markomarra , welcome to the forum.
While images can help the forum see your problem and data, they really do not help forum help you effectively. The forum would need to manually recreate your scenario which takes time and is subject to typos.
The Mr. Excel Forum has a great tool called xl2bb add in (link below) that allows you to post mini worksheets. Please use that and post your sample data using that.
Be sure to sanitize your data for personal privacy concerns. If you cannot post a miniworksheet, the post your data as a table, but please be sure include the starting row and column number (and if you have any hidden, then please put a row/column number/letter on each column and row.

Thanks in advance.
 
Upvote 0
Hi awoohaw,

for security reasons i am unable to install software such as XL2BB. if there's and online conversion utility to convert xlsx to "mini-sheet" i can do that right away. Please send a link. Otherwise, it will have to wait until tomorrow before i repost using a mini-sheet.

Mark
 
Upvote 0
you can copy and paste your data, just be sure there are row numbers and column headers. Please also give the formulas that are in any cells that may be important.
Please give expected values for the cell(s) in question.
 
Upvote 0
MrExcel xloopup.xlsx
ABCDEFGHI
1criteria 1criteria 2return valuesearch Rangecriteria 3criteria 4value to be searchedcriteria 3
2PNT TYPEGEO. TYPERADIUSSTABLGEO. TIESTABaseLine
3BLAP9642.94MAINPT1244.77AUX-C
4BLPOT10200.01MAINAUX-C
5BLPC10591.82MAINPT1244.77AUX-C
6BLCC900'MAINPT1244.77AUX-C
7BLPT10779.22MAINPOT1333.89AUX-C
8BLPOE11390.66MAINPOT1333.89AUX-C
9BLPC37.89AUX-CPOC1351.9AUX-C
10BLCC300'AUX-CPOC1351.9AUX-C
11BLPCC169.58AUX-CPT1424.81AUX-C
12BLCC120'AUX-CPT1424.81AUX-C
13BLPT305.40AUX-CPT1424.81AUX-C
14BLPOT320.80AUX-CPT1424.81AUX-C
15BLPC795.56AUX-CPT1424.81AUX-C
16BLCC875'AUX-CAUX-C
17BLPT846.10AUX-CPT1424.81AUX-C
18BLPC1034.47AUX-CPOT1462AUX-C
19BLCC200'AUX-CAUX-C
20BLPT1244.77AUX-CPOT1462AUX-C
21BLPC1337.95AUX-CPOT1462AUX-C
22BLCC400'AUX-CPOT1462AUX-C
23BLPT1424.81AUX-CPOT1462AUX-C
24BLPC1772.08AUX-CPOT1600AUX-C
25BLCC240'AUX-CPOT1600AUX-C
26BLPT1849.83AUX-CPOT1650AUX-C
27BLPOE3642.87AUX-BPOT1650AUX-C
28BLEQ3600.00AUX-BPOT1650AUX-C
29BLPT3531.39AUX-BPOT1650AUX-C
30BLCC250'AUX-BPOT1650AUX-C
31BLPC3387.05AUX-BPOT1727AUX-C
32BLPT3220.55AUX-BPOT1727AUX-C
33BLCC168'AUX-BPOT1727AUX-C
34BLPC3081.12AUX-BPT1849.83AUX-C
35BLPOB3000.00AUX-BPOT1960AUX-C
36BLPOB1000.00AUX-APOT1960AUX-C
37BLAP1300.00AUX-APOT1960AUX-C
38BLPC1537.56AUX-APOT1960AUX-C
39BLCC250'AUX-AAUX-C
40BLPT1885.88AUX-APT1849.83AUX-C
41BLPOE2371.04AUX-APOT1680AUX-C
42BLPC1727.22AUX-DPOT1680AUX-C
43BLCC270.00'AUX-DPOT1680AUX-C
44BLPCC1881.59AUX-DPOT1617.26AUX-D
45BLCC120.00'AUX-DPOT10975MAIN
46BLPT1949.83AUX-DPOT10976MAIN
47BLPC2026.56AUX-DPOT10968.86MAIN
48BLCC150.00'AUX-DMAIN
49BLPT2119.30AUX-DPOT10868.88MAIN
50BLPOE2180.77AUX-DMAIN
51BLPOE1998.58AUX-CPOT320.8AUX-C
52SLAP1000.00AUX-CPOT750AUX-C
53SLAP10975.00MAINAUX-C
54SLAP10975.00MAINPOT750AUX-C
55SLPC10968.86MAINPOT900AUX-C
56SLCC357'AUX-C
57SLPT10898.48MAINPOT900AUX-C
58SLPC10591.83MAINPOT1000AUX-C
59SLCC237'AUX-C
Sheet1
 
Upvote 0
hi, i was able to use the Xl2bb addin. I hope i did it correctly.

example 1:
as for expected results cell h9 with a value of 1351.9 would be between the interval of:

PC [beginning of a curve] (station 1337.95) at cell D21 and
PT [begin tangent line] (station 1424.81) at cell D23
both are on the same Baseline "Aux-C"

therefore,
resulting in Radius 400' found in cell C22

example 2:
as for expected results cell h45 with a value of 10975.0 would be between the interval of:

PT (station 10779.22) at cell D7 and
POE (station 11390.66) at cell D8
both are on the same Baseline "MAIN"

because H45 is a POT (point on tangent aka straight line) not POC (point on curve)
resulting in Radius not found

mark
 
Upvote 0
thanks. You'll probably get some responses now.
 
Upvote 0
Okay, where is the calculation supposed to be performed? How are you choosing the lookup values? H45 is no where near the top?
 
Upvote 0
calculation formula will go in column F3 to F59 for each corresponding values in cells H3 to H59.

lookup each value in column H3 to H59.

mark
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

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