+ Reply to Thread
Results 1 to 4 of 4

Extract rows from one file that matches rows in a reference file and finally export result

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Extract rows from one file that matches rows in a reference file and finally export result

    Basically:
    I have 25000 articles with a inventory value in one file
    I have 1700 articlenumbers in a second reference file.
    I want to match and find these reference articles and retrieve its inventory value from the first file.


    Data-file
    Article Number Value
    54 3
    985 5
    49000 9
    4387 13
    3678 1
    ... ...
    Article 25000 87

    Reference-file
    Article Number
    985
    54
    4387

    Result-file:
    Article Number Value
    985 5
    54 3
    4387 13

    I dont know a hole lot about excel but after a bunch of searching I found something called VLOOKUP.. is this what Im looking for?
    VLOOKUP(Data-file, Column A ; Reference-file, Column A)

    I hope this is not one of those standard-basic-basic questions that is asked and answered all the time but I have really been looking around for a solution.
    Coolest option would be an online tool where I could just choose both files and get a third
    Tnx in advance!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Extract rows from one file that matches rows in a reference file and finally export re

    Hi atgardmedia,

    Use vlookup in Result file in A1 cell :- = vlookup(a1,'data-file'!a:b,2,0), you might need to check & correct the references

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    2

    Unhappy Re: Extract rows from one file that matches rows in a reference file and finally export re

    Thank you!

    Sorry for a late reply, Ive been on the road.

    Ive been testing around but cant get it to work

    Attached are the two files:
    - datafile with 25000 rows
    - result.xls with about 2000 rows

    If someone would care to have a look the Vloopkup code should be placed in B1 (and then copied down) in file result.xls

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Extract rows from one file that matches rows in a reference file and finally export re

    Okay.. open both the files and use below formula in cell B1 in sheet 1 of results.xls file

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copy it down

    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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