+ Reply to Thread
Results 1 to 17 of 17

Need to pull address ranges with accompanying data for large data base

  1. #1
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Question Need to pull address ranges with accompanying data for large data base

    I have a very large data base that has 10 columns and 160,000 rows of data. I want to be able to pull from this list all data that pertains to certain address ranges. As example the data base query would be something like this. Pull all data from street address and street names of 123 -450 Main Street; 455-623 XYZ Street; 777-1600 Anywhere Ave. Below are the type of columns in the data base.

    Example

    Column 1
    Unique serial number
    Column2
    Code
    Column 3
    Description
    Column 4
    Date
    Column 5
    Time
    Column 6
    Street Address
    Column 7
    Street Name
    Column 8
    Apt #

    The data pulled would look like this in a separate worksheet:

    Serial # Code Description Date Time Address Street Name Apt #
    125678 002 Rain Delay 12/14/14 10:00 611 Anywhere 102
    888231 014 Sunshine 1/1/14 22:21 123 Main 172
    8251236 016 Cancel 3/3/14 15:12 322 Main 235


    etc, etc, etc,

    Can this be done in Excel?

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Need to pull address ranges with accompanying data for large data base

    Can you post a sample worksheet that contains your desensitized data?
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    Yes.

    Depending on how much data you think you'll be returning there are a few options.
    • If you only intend to pull 10-20 rows per criteria, I'd go the route of INDEX(..SMALL(IF array.
    • If you think your criteria might pull a few hundred or thousand rows, you'd probably be better served by a VBA procedure.


    If you want to create a mockup with some made up data and attach it here, I can write the formulas and script so you can see them both.

    I use the first option for small returns, and a VBA script for a database of 294,000 rows that compares latitude and longitude of each entry to user defined point and populates all rows within X miles.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    The VBA sounds like the one I would need. Thank you. I will send to you a data base and a listing of street address ranges. Do I send to you directly or?

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data. (Make stuff up if you have to; don't use real people's names or include Personally Identifying Information)

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    I have uploaded the file.

    There are three tabs. The first tab is a sample database (small but represents a data base with over 10 columns and 150,000 rows of data)
    The second Tab is the address range needed seen in light orange highlighted on the right spreadsheet.
    The third Tab is the results, showing all columns and rows that I am looking to find by using the address range query.

    Thank you,

    Pick ><>
    Attached Files Attached Files

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    Here's an even simpler solution than the ones I mentioned, and it's easily understood and modified:
    Instead, we run an Advanced Filter that pulls the data as if it were in a real database file.

    First, we adjust your criteria to fit: numbers ranges should be >= X and <= Y.

    From what I have setup so far, go to the Filtered Results tab. An advanced filter of this nature can only be started from the destination tab.
    1. Select A1:K5 to make Excel think this is the source data. It won't let you start otherwise.
    2. At the top of the screen choose Data, and then click Advanced under 'Sort & Filter.'
    3. Under Action choose Copy to Another Location
    4. For List Range click the spreadsheet icon and go select the database tab and select all of the data including the headers
    5. For Criteria Range select A1:K5 of the results sheet
    6. For Copy To select A9:K9 of the results sheet


    Hit Okay

    This will compare the List Range to the Filter and pull relevant matches. A single record must match all criteria of the first line, or all criteria of the second, etc.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    I got an error message ..."Extract range has a missing or illegal field name".

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    I see. It sets the named ranges when I did it the first time and I was off two columns
    Attached Files Attached Files

  10. #10
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    Not to be outdone by simplicity, I wrote the VB Code also.
    It's good practice.

    The code below is already included in the attached workbook.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    Perhaps it is me not understanding how to do " First, we adjust your criteria to fit: numbers ranges should be >= X and <= Y."

    Also the address and rows and columns that I need are from the street ranges that show as:
    M3 to N 7 Column
    Address Range Street Name
    4600-4800 AIRLINE DR
    4700-4900 NORTH FWY
    4100-5500 WESTHEIMER RD
    5000-6200 MARKWOOD LN

    Street Ranges to be found

  12. #12
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    Here is a screen shot of what I did. See attachment
    Attached Images Attached Images
    Attached Files Attached Files

  13. #13
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    Using the image you provided, you'd first need to make your criteria field names match your actual database.

    This means M3 must = H1. N3 = I1. Must be exact match.

    The you'd select Results Tab. Click Advanced.

    List Range would be 'Street Range'!A1:K54
    Criteria Range would be 'Street Range'!M3:N7
    CopyTo would be A1

  14. #14
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    THANK YOU. THANK YOU. THANK YOU.

    It works beautifully. Wow.

    Pick44><>

  15. #15
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need to pull address ranges with accompanying data for large data base

    No problem. Glad I could help out.

  16. #16
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    If I need further programing for Access 97, I will send you a message. I might need to have some access stuff written for me in the future. Would you be interested in contract work, if I need it? Email is [email protected]

    Thanks again

    Pick44 ><>

  17. #17
    Forum Contributor
    Join Date
    03-06-2015
    Location
    houston, tx
    MS-Off Ver
    MS 365
    Posts
    494

    Re: Need to pull address ranges with accompanying data for large data base

    The Advanced Search worked on the small database, but when I applied it to the much larger database, it only returned the Header Colums?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 12-04-2017, 04:53 PM
  2. [SOLVED] Want to separate unique and duplicate data from large data base
    By sambha in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 08-02-2014, 12:30 AM
  3. need to pull all the data from the data base that match the given keyword
    By kiranpat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2014, 01:44 AM
  4. How to pull out a month's data from big data base having different dates
    By MSVAD123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2012, 05:16 PM
  5. [SOLVED] address data base in which I can choose which to use for mailing
    By Grammurph7 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-16-2005, 04:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1