Forum Discussion
Extracting Records
- Jul 30, 2023
There are some addresses that should be the same but differ slightly:
10101 NE 46th Ave Vancouver, WA 98686 10101 NE 46th Ave, Vancouver, WA 98686 One option is to add helper columns:
AD2 contains the formula =TRIM(SUBSTITUTE(G2, ",", ""))
This eliminates differences such as comma vs no comma and double space vs single space.
It does not eliminate spelling differences.
AE2 contains the formula =COUNTIF(AD:AD, AD2)=1
This returns TRUE if the helper address is unique.
You can then filter on TRUE and copy the selected rows to another sheet, either manually using AutoFilter or using Advanced Filter or using the FILTER function:
=FILTER(CJun23!A2:AD1323,CJun23!AE2:AE1323)
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
- restatsJul 30, 2023Copper Contributorhttps://1drv.ms/x/s!Arvr7szuU5p4hNM4HW3Gh0B_M_C1Fw?e=QRfiaX
Here is the database- HansVogelaarJul 30, 2023MVP
There are some addresses that should be the same but differ slightly:
10101 NE 46th Ave Vancouver, WA 98686 10101 NE 46th Ave, Vancouver, WA 98686 One option is to add helper columns:
AD2 contains the formula =TRIM(SUBSTITUTE(G2, ",", ""))
This eliminates differences such as comma vs no comma and double space vs single space.
It does not eliminate spelling differences.
AE2 contains the formula =COUNTIF(AD:AD, AD2)=1
This returns TRUE if the helper address is unique.
You can then filter on TRUE and copy the selected rows to another sheet, either manually using AutoFilter or using Advanced Filter or using the FILTER function:
=FILTER(CJun23!A2:AD1323,CJun23!AE2:AE1323)
- restatsJul 30, 2023Copper Contributor
Thank you