How to Create Dynamic List with Name lookup using OR logic

BrettOlbrys1

Board Regular
Joined
May 1, 2018
Messages
128
Office Version
  1. 365
Platform
  1. Windows
I have data in columns A thru Z with 10,000 rows of data in the table. I created a drop-down list of people's names in a second sheet and when the person selects their name, I want only their data to display in the results. But, their name can appear in columns (J, K, L, or M).

I need a formula that will return all rows of data when the person selects their name, even though the lookup of the name will be across columns J, K, L, M?

Thanks

Brett
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about
Excel Formula:
=FILTER(Sheet7!A2:Z10000,BYROW(Sheet7!J2:M10000,LAMBDA(br,SUM(--(B2=br))>0)))
Change sheet name to suit & also change B2 to where your drop down is
 
Upvote 0
=FILTER(Sheet7!A2:Z10000,BYROW(Sheet7!J2:M10000,LAMBDA(br,SUM(--(B2=br))>0)))
Works great, thank you. One last question, if I want the resulting list to be sorted by DATE from oldest to newest, how do I accomplish that? The DATE is column B.
 
Upvote 0
Try
Excel Formula:
=SORT(FILTER(Sheet7!A2:Z10000,BYROW(Sheet7!J2:M10000,LAMBDA(br,SUM(--(B2=br))>0))),2)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
All I can say is YOU ARE AMAZING! Thank you! Works PERFECTLY.
Actually, one last question. If I want to create a filter to limit the list by allowing someone to input a DATE in a blank cell that the formula references, how do I modify the formula? For example, if someone wants to limit the results to everything greater than 1/1/23, but then someone else wants to limit it to greater than 6/1/23. I assume I will have an input cell the formula will reference where the limiting date goes, but what would that formula look like?
 
Upvote 0
How about
Excel Formula:
=SORT(FILTER(Sheet7!A2:Z10000,(BYROW(Sheet7!J2:M10000,LAMBDA(br,SUM(--(B2=br))>0)))*(Sheet7!B2:B10000>=C2)),2)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
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