+ Reply to Thread
Results 1 to 4 of 4

Combining two worksheets

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Combining two worksheets

    Hello all,

    I am looking to combine two worksheets with different data that have fields in common. Basically, I have a master worksheet with every single UPC and the costs attached to them for all the products that we carry, and another worksheet with select UPCs for a customer and the prices at which we sell those items at.

    I want to make a spreadsheet where I can have all the costs attached to the customer's worksheet, basically pulling the costs from the master list and attaching them to the respective UPC.

    Let me know if I need to be more clear. Any help would be great. Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combining two worksheets (details inside)

    You can use a VLOOKUP() formula to lookup a UPC in the current workbook, go to a second workbook to lookup an associated value in a database. Like so:

    =VLOOKUP(A1, '[PriceSheet.xls]Sheet1'!$A$1:$B$10000, 2, 0)


    This formula will look at a list of UPCs in column A of the PriceSheet.xls on Sheet1, then bring back the value that matches from column B.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: Combining two worksheets (details inside)

    Quote Originally Posted by JBeaucaire View Post
    You can use a VLOOKUP() formula to lookup a UPC in the current workbook, go to a second workbook to lookup an associated value in a database. Like so:

    =VLOOKUP(A1, '[PriceSheet.xls]Sheet1'!$A$1:$B$10000, 2, 0)


    This formula will look at a list of UPCs in column A of the PriceSheet.xls on Sheet1, then bring back the value that matches from column B.
    Thank you so much for your great help!!!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Combining two worksheets

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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