Return Records if a match is found

agentkramr

Board Regular
Joined
Dec 27, 2021
Messages
98
Platform
  1. Windows
i have two columns in a spreadsheet that contain zipcodes column H has the criteria zipcodes, Roughly 214 but could expand to significantly more column G is the zipcodes i need to search through and only return the ones that match column H. column G has about 120k entries .. of course column A B C D E F have other customer info.

how would i go about only showing the rows that have a zipcode match to column H
conditional formatting didnt seem to work i tried and =IF and got some weird results
Excel 365
 

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.
It seems like you could use an advanced filter, but with your explanation I can't see how your data is, how to put the advanced filter and where to put the result.
You could give an example of how your data is and how you want the result. You can put dummy data.

Observe in the following thread how the OP put his examples in detail and also explained how he wanted the result. That will be easier to help.

Note: XL2BB
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.​

🤗
 
Upvote 0
It seems like you could use an advanced filter, but with your explanation I can't see how your data is, how to put the advanced filter and where to put the result.
You could give an example of how your data is and how you want the result. You can put dummy data.

Observe in the following thread how the OP put his examples in detail and also explained how he wanted the result. That will be easier to help.

Note: XL2BB
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.​

🤗
here is the test data H is my column of zipcodes so if there is a matching zipcode in column G i only want to show the ones that match
Test.xlsx
GH
14702224248
23826024281
33209528701
44620528702
54804028704
62463028707
74273228708
843011-963328712
97039428713
102416228715
114587228716
123035028717
132867728719
144340228721
1531312-560628723
169520728725
173478728728
183786228733
194035628734
203834328736
213421028738
221864328741
234200128742
242332028743
254909028744
264035628745
272450228747
2814850-935228748
294308228751
3043016-618028753
319714628754
322167828759
334612328763
344560128768
354673228771
361952628772
372343428774
383216228775
394380428776
402452828779
414468528781
421194228783
434471828785
443786328786
455878428787
46548228788
473714328789
484024128801
493001428802
507570428803
513550428804
52N7M 0R928805
533716028806
541510828810
553292728813
562877928814
572409128815
586123128816
593005228901
606205228902
612553528904
627735128905
634550328906
644038328909
654830130525
664606230537
673704330546
687401230562
693054930568
703466930582
712930237314
724841337329
733595237333
746188437354
753576337385
763770137616
7737641
783712937657
794724337681
803780437701
813448037705
824323137707
832553537708
843064137709
854922437710
865302737711
873977137713
883290837714
899836737715
902934937716
914263337717
921204737719
933006837721
942590137722
953772537724
963383437725
974542437727
983713537729
997410437730
1003777737731
1013707537737
1023830537738
1034603737742
1041320737743
1055000937744
1064021837745
1074100837748
1084818737752
1094306237753
1102771237754
1112879137756
1123706437757
1132933037760
1143302037763
1154401137764
1165412637765
1174272437766
1184726537769
1193930537771
1205490237772
1214523837773
1223792237774
1231179137777
1243081337778
1252065737779
1264034237801
1274043737802
12832764-970937803
1292974237804
1304754237806
1313911037807
1320000037809
1332820937810
1343825737811
1353554137813
1362964437814
1374108337815
1383054037816
1393942837818
1403055437820
1413054037821
1422964537822
1432388337824
1443050637825
1458950637826
1463428237828
1472323637830
1487203237831
1493846037840
1504314737843
1514883637845
1523596237846
1533561137848
1542860137849
1553627237851
1562842937853
1572815237857
1582863737860
1593277937861
1603277937862
1619577637863
1622421037864
1635395937865
1647813037866
1654050337867
1664006537868
1673015737869
1684622437870
1694542637871
1703777437874
1717739937876
1724033637877
1734051737878
1743067137879
1754405337881
1762010537882
1773776437885
1784704037886
1794908237887
1803053437888
1811104037890
1822176937891
1834983837901
1842957137902
1853540637909
1862822637912
1873411937914
1883840137915
18934984-364037916
1903686137917
1914501137918
1924377237919
1934756137920
1944033037921
1954253937922
1961508337923
1971694737924
1983318237927
1991169137928
2000077837929
2014837437930
2022971537931
2031173137932
2043792337933
2054703637934
2062864037938
2072463937939
2087052637940
2094739337950
2107763237995
2117060737996
2123634637997
2134150137998
2144695240965
PATALISTE-1778960-20240919
 
Upvote 0
To open the Advanced Filter dialog box, click Data > Advanced.

The Sort & Filter group on the Data tab


In List range $A$1:$H$214. Change 214 to the last row with data in column G.

In Criteria range $H$1:$H$214. Change 214 to the last row with data in column H.

1726855482206.png



Press Ok, the result will be in columns J to P and down.

Ex:
Note: Notice that the headings of G1 and H1 are the same.
Before Advanced Filter:
varios 20sep2024.xlsm
ABCDEFGHIJKLMNOP
1ABCDEFZIP CODEZIP CODE
2A2B2C2D2E2F23826024281
3A3B3C3D3E3F33209528701
4A4B4C4D4E4F44620528702
5A5B5C5D5E5F54804028704
632095
746205
8
Hoja3


After Advanced Filter:
varios 20sep2024.xlsm
ABCDEFGHIJKLMNOPQ
1ABCDEFZIP CODEZIP CODEABCDEFZIP CODE
2A2B2C2D2E2F23826024281A3B3C3D3E3F332095
3A3B3C3D3E3F33209528701A4B4C4D4E4F446205
4A4B4C4D4E4F44620528702
5A5B5C5D5E5F54804028704
632095
746205
8
Hoja3





🤗
 
Last edited:
Upvote 1
Solution
To open the Advanced Filter dialog box, click Data > Advanced.

The Sort & Filter group on the Data tab


In List range $A$1:$H$214. Change 214 to the last row with data in column G.

In Criteria range $H$1:$H$214. Change 214 to the last row with data in column H.

View attachment 117139


Press Ok, the result will be in columns J to P and down.

Ex:
Note: Notice that the headings of G1 and H1 are the same.
Before Advanced Filter:
varios 20sep2024.xlsm
ABCDEFGHIJKLMNOP
1ABCDEFZIP CODEZIP CODE
2A2B2C2D2E2F23826024281
3A3B3C3D3E3F33209528701
4A4B4C4D4E4F44620528702
5A5B5C5D5E5F54804028704
632095
746205
8
Hoja3


After Advanced Filter:
varios 20sep2024.xlsm
ABCDEFGHIJKLMNOPQ
1ABCDEFZIP CODEZIP CODEABCDEFZIP CODE
2A2B2C2D2E2F23826024281A3B3C3D3E3F332095
3A3B3C3D3E3F33209528701A4B4C4D4E4F446205
4A4B4C4D4E4F44620528702
5A5B5C5D5E5F54804028704
632095
746205
8
Hoja3





🤗
thank you so much super helpful and marked as solution!
 
Upvote 1

Forum statistics

Threads
1,223,871
Messages
6,175,095
Members
452,612
Latest member
MESTeacher

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