+ Reply to Thread
Results 1 to 9 of 9

Vlookup in Access

  1. #1
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Vlookup in Access

    Hi

    I have two tables with data in Access called "118" and "Mapping":

    In "118" table I'll have my monthly data, which will show amounts (in my case 1 row equals one item/amount), by ZIP code. In "Mapping" table I have two columns which is all ZIP codes and their allocated Clusters.

    What I want is to have a field in "118" showing Clusters. Hence, when I dump in data each month/quarter the field just autopopulated. Basically like a Vlookup function in XLS.

    I'm a beginner in Access so can't do programming and all this.

    Hope you understand and can help.
    Attached Files Attached Files
    Last edited by algl05ab; 06-29-2016 at 05:30 PM.

  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,940

    Re: Vlookup in Access

    Please provide the field names for each of the tables and some examples of what the data looks like and what you would like the expected results to be. I am sure that what you want will be a query with either a parameter that is filled in from a form or ad hoc. Give us some more information to allow us to provide you with a suitable SQL statement for your query.
    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
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Vlookup in Access

    Hi,
    You can use powerpivots in excel.
    Here are some steps :-
    1. Pull into DataModel both tables in excel using powerquery or simply from powerpivot window. (You can google for this.)
    2. Establish a relation between zip column of both 118 and Mapping table.
    3. Based on the relationship in both the tables, you can then make pivot tables having slicers for zip columns or clusters.

    Its is a powerful way to do it.

    Hope it helps!!
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Re: Vlookup in Access

    I would avoid using XLS as my data consists of 4.5 million rows so I prefer having one query I can extract straight into XLS in a Pivot table format.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Vlookup in Access

    Powerpivot can handle millions of row easily. That's why I said its powerful.

    Edit :-
    Moreover, you can use sql queries directly in powerpivot, using powerquery or from the powerpivot window, to query your sql servers. This way you can avoid Access for your reporting.
    Last edited by Vikas_Gautam; 06-29-2016 at 06:21 PM.

  6. #6
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Re: Vlookup in Access

    Attached are my two tables in PowerPivot. Can you please show/explain to my how you generate one Pivot file in the spreadsheet where the amount of rows are counted from the 118 tab and the cluster field is calculated based on the mapping tab

    thanks!
    Attached Files Attached Files

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Vlookup in Access

    Hello,
    As I am using Excel 2013 and you, I guess, are using 2010. I am not sure if file would show the stuff or not.
    But I have achieved what you want.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-26-2014
    Location
    Denmark
    MS-Off Ver
    Office 16
    Posts
    44

    Re: Vlookup in Access

    hi, this is exactly what I need, but I can't access the data in PowerPivot as you pointed out. How did you manage to create column E?

  9. #9
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Vlookup in Access

    Here are the steps :-
    1. Open the Powerpivot window and click the Diagram View Button.
    2. Now you need to create a relationship between Zip column of Mapper and 118 tables.
    3. For that, you need to Left click , hold and drag the Zip Column in the Mapper Table on the Zip column of the 118 Table. You can google on how to create relations on powerpivot. FYI, that would be a One (Mapper) to many (118) relationship between the two tables.
    4. After you established the relationship, you need to pull the Clusters on the 118 table. For that, use the Related function.
    Please Login or Register  to view this content.
    Add a column with above formula.
    These were the steps. After that, you would be able to pull down a pivot having all the columns including new Cluster column.

    Hope this suffices.!!

+ 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. Vlookup vs Access
    By ashishmehra2010 in forum Access Tables & Databases
    Replies: 4
    Last Post: 10-30-2015, 01:06 AM
  2. [SOLVED] Vlookup or Access?
    By trisoldee in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-25-2015, 04:32 PM
  3. VLOOKUP from Access Tables
    By Mraggie in forum Excel General
    Replies: 4
    Last Post: 06-15-2012, 03:01 AM
  4. Vlookup inside Access
    By djblois1 in forum Excel General
    Replies: 5
    Last Post: 03-08-2012, 01:33 PM
  5. VLOOKUP from Access Tables
    By Mraggie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2006, 03:36 PM
  6. [SOLVED] vlookup and microsoft access
    By finster26 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-06-2006, 01:20 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