Dynamic search and filter formula

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
387
Office Version
  1. 2016
Platform
  1. Windows
I am looking for a dynamic formula that will search a column for specific numbers and the names attached to them. It would be like a unique value vlookup automated filter. It will have to be based on the code as names will be added to the code, and I can use a helper sheet with the codes in case of code changes. There are duplicate names, but these names are attached to different codes. I am looking to set this up due to the code and names appearing multiple times on another sheet, and manual entry needs to be reduced. Thank you for your assistance in advance



Column BColumn C
320711Name1
320712Name2
320712Name3
320713Name3
320715Name5
320715Name6
321701Name7
321711Name8
321711Name9
321711Name10
321712Name11
321712Name10
321713Name13
321713Name14
321713Name15
321713Name7
322711Name17
322712Name18
322712Name19
322712Name20
322714Name21
322714Name22
322715Name23
322715Name24
322717Name25
322718Name24
322719Name27
323711Name28
323711Name29
323712Name30
323712Name31
323712Name32
323713Name33
323713Name34
323713Name35
324701Name36
324701Name37
324701Name38
324711Name36
324712Name40
324713Name41
324713Name42
324713Name43
324716Name44
324718Name38
325701Name46
325711Name47
325711Name48
325711Name57
325711Name50
325721Name51
325721Name52
325721Name53
325721Name54
325721Name55
325731Name56
325731Name57
325731Name58
325731Name59
325741Name60
325741Name61
325741Name62
325741Name63
325751Name64
325751Name65
325751Name66
325751Name67
327712Name68
327712Name69
327713Name70
327713Name71
 
Yes. This is what I am looking to achieve ut based on a helper column. I was going to take column B place it on a separate sheet for all the codes the formula would need to search for. In your newest rendition I see you mentioned you couldn't do it without the number. If there were a helper sheet with the same codes will the code work. As the mention before the main sheet has a lot more codes and these ones pertain to my records.
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
The B:C columns have to remain the same. The number must stay associated with the name. But I did think of a way to do it without the helper column:

Book1
ABCDEFG
1320711Name1Name
2320712Name2Name1
3320712Name2Name2
4320713Name3Name3
5320715Name5Name5
6320715Name6Name6
7321701Name7Name7
8321711Name8Name8
9321711Name9Name9
10321711Name10Name10
11321712Name11Name11
12321712Name10Name10
13321713Name13Name13
14321713Name14Name14
15321713Name15Name15
16321713Name7Name7
17322711Name17Name17
18322712Name18Name18
19322712Name19Name19
20322712Name20Name20
21322714Name21Name21
22322714Name22Name22
23 
Sheet2
Cell Formulas
RangeFormula
G2:G23G2=IFERROR(INDEX(C:C,AGGREGATE(15,6,ROW(C$1:C$22)/((ROW($B$1:$B$22)-ROW($B$1)+1)=MATCH($B$1:$B$22&"|"&$C$1:$C$22,$B$1:$B$22&"|"&$C$1:$C$22,0)),ROWS(G$2:G2))),"")


Edit: FYI, this is how it could be done in Excel 365:

Excel Formula:
=INDEX(UNIQUE(B1:C22),0,2)
 
Upvote 0
Sorry for getting back to you late. I have been trying to implement your formula into the project for a few days. Which your formula is great by the way. I believe what I am trying to accomplish is more complicated than expected as I'm trying to implement this between 3 sheets.
 
Upvote 0

Forum statistics

Threads
1,221,521
Messages
6,160,302
Members
451,637
Latest member
hvp2262

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