+ Reply to Thread
Results 1 to 8 of 8

Lookup Access Data in Excel

  1. #1
    Registered User
    Join Date
    11-17-2013
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Lookup Access Data in Excel

    Good morning

    I have a large spreadsheet containing data that is taking ages to load.

    Would it be possible to store this data in Access and then lookup into Excel? I have created a sample and can pull the data into Excel in another sheet, but cannot see how I can lookup. Basically I am essentially trying to do a VLOOKUP or XLOOKUP from one field in Excel and pull the data from Access into a new cell

    Thanks in advance

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Lookup Access Data in Excel

    Do your filtering/lookup in an Access query and export this to Excel

    or

    Link your Access Table or query to Power query and then apply a parameter to the Power Query. Post a sample Access DB with an explanation of what you wish to lookup and I will attempt to provide a workable solution.

    To upload an Access DB, you will need to zip it. You will only need to provide 10-15 records in your DB.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-17-2013
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lookup Access Data in Excel

    Good afternoon Alan

    I have uploaded the sample file.

    The situation I have is that we have circa 300,000 TSI Codes in a spreadsheet linked to our stock code. When trying to work with this especially on the company hardware, it is almost unmnageable.

    Ideally what I would like to do is beable to store this data away from Excel but if I had a list of stock codes pull in the TSI code. There will be other information too but this will be a massive start

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Lookup Access Data in Excel

    I thought that you had an Access DB. The file you zipped does not appear to be an Access DB and I don't have software that is compatible to open this particular type of file.

  5. #5
    Registered User
    Join Date
    11-17-2013
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lookup Access Data in Excel

    My apologies Alan

    This is the correct file
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Lookup Access Data in Excel

    You can use MS Query or VBA (ADO/SQL) if you don't have Power Query.

    You can see the animation in the link below, where I've made a simple query to get records with "stockcode" equal to "0000-0005"

    https://imgur.com/a/YVQqkDK
    Last edited by Haluk; 06-13-2022 at 05:33 AM.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Lookup Access Data in Excel

    In the attached zip file is the sample DB and an excel file that employs Power Query to grab the table and import to excel. In the excel file is a lookup table and command button to refresh the query when changes are made to the lookup. You can review the steps taken

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

    Watch this video on how to build a parameter query-->https://www.youtube.com/watch?v=gK2yBpiITvI
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-17-2013
    Location
    Gloucester, England
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Lookup Access Data in Excel

    Thank you

    I will look into it

+ 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: 1
    Last Post: 10-23-2013, 07:49 AM
  2. [SOLVED] Excel MATCH w/Double Lookup on a table of data derived from Access.
    By yeti_one in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-04-2013, 12:44 PM
  3. Excel 2010 userform to access and edit the data in MS ACCESS DB tables
    By anand_y59 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 07:46 AM
  4. Lookup in Excel/Access
    By monkey harry in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-22-2006, 03:30 AM
  5. Importing data from Access to Excel, but I need to vary the table from Access
    By Liz L. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2006, 09:15 PM
  6. excel lookup, like access
    By trav in forum Excel General
    Replies: 1
    Last Post: 02-21-2006, 10:35 PM
  7. [SOLVED] Lookup from Excel to Access
    By ca1358 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2006, 05:00 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