+ Reply to Thread
Results 1 to 4 of 4

Need help sorting data into another excel sheet

  1. #1
    Registered User
    Join Date
    06-14-2010
    Location
    Maryland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Need help sorting data into another excel sheet

    So I have started working for a medical supply company and sorting through the prices and item numbers of thousands of line items is difficult to do manually. We have a computer guy who can take two files and match certain columns up. For example, I have a file with the Item Code and Our Costs, and a different file with Item Code and a different companies prices (so I know what prices to beat while maintaining a higher margin). Every time I need to do this sorting I need to go to my computer guy and give him the two files to merge them together so he can match the thousands of items of our competitors prices to line them up with our costs for the proper item. There has to be an easier way to do this. Could anyone direct me towards a macro or a function which could do this automatically? It would save many hours of work.

    Example is attached as an excel file, although it is a hundredth of the size of many files I work with.

    merging and sorting files.xlsx

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help sorting data into another excel sheet

    With your sample data, on File2 (A11:B28) you can use...

    =IFERROR(VLOOKUP(A12,$A$1:$B$9,2,0),"")

    ...to match the "item codes" between the two table and pull over the "Our Cost" into table (A11:B28)

    Place this formula in C12 and copy down.

    Now if you want to get ride of the blanks where the competitor did not match an "item code" of yours, just filter the sheet.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Need help sorting data into another excel sheet

    it sounds like if you take your file and the competitor's file and you paste the competitor's info into sheet2 (a couple seconds) then do a vlookup from your info on sheet1 it should return the info you're looking for. Am I missing something? Do you need help with a vlookup stmt?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Need help sorting data into another excel sheet

    So I put your data in attached. Just changed your competitor's data to sheet2 and did the formula in sheet1.
    Attached Files Attached Files

+ 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