Xlookup on multiple columns Filtering

scottishbigyin

New Member
Joined
Jul 3, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Good morning, afternoon, evening (depending on your time zone)
Got a rather interesting challenge for the Excel wizards.

Hopefully someone can stop me from ripping out what hair I have left.
In stages (user enters list of circuit references) this would then query a table that has been capturing data from sharepoint.

Book4
A
1Circuit Reference Input
2Ref12345
3Ref12346
4Ref12347
5Ref12348
6Ref12349
7
Sheet1


Circuit references get transfered into sheet2 using formula =TRIM(UNIQUE(FILTER(Sheet1!A2:A9,(Sheet1!A2:A9<>""))))
Book4
A
1Filtered Cells
2Ref12345
3Ref12346
4Ref12347
5Ref12348
6Ref12349
Sheet2
Cell Formulas
RangeFormula
A2:A6A2=TRIM(UNIQUE(FILTER(Sheet1!A2:A9,(Sheet1!A2:A9<>""))))
Dynamic array formulas.


An Example of the Table where the Xlookup would use be, the Circuit 1 and Circuit 2 cannot be combined into 1
Book5
ABCDEF
2Site IDCustomerBoard Name/Partner AuthorityCircuit 1Circuit 2Column1
3Site ACircuit_000008CommsTHIRD PARTY SUPPLIERRef12345Ref12349
4Site BCircuit_000009CommsTHIRD PARTY SUPPLIERRef12346
5Site CCircuit_000010CommsTHIRD PARTY SUPPLIERRef12347
6Site DCircuit_000011CommsTHIRD PARTY SUPPLIERRef12348
7Site ECircuit_000012CommsTHIRD PARTY SUPPLIERRef12355Ref12350
8Site FCircuit_000013CommsTHIRD PARTY SUPPLIERRef12351
Sheet3


=XLOOKUP(Input!$A$4,Input!$A$2:$C$6,$A$2,0)

So my thinking was using formula on new sheet such as "=XLOOKUP(Sheet2!$A$2,Sheet3!$E$3:$E$8,$A$2,"",0)&XLOOKUP(Sheet2!$A$2,Sheet3!$F$3:$E$8,$A$2,"",0) and then duplicate down the rows in new sheet, but this will give blank if not found, so was wondering if way to ignore the rows that doesn't match either circuit 1 or circuit 2 column, without using any form of VBA just done via formula only.


If needing any clarification on this will try where I can.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Just to add the table that holds all the circuit information is over 6000 rows long, if going to impact the formula, since was thinking along possible lines of IF MATCH INDEX statement, or creating a unique number > 0 if circuit is found
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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