+ Reply to Thread
Results 1 to 3 of 3

Thread: combining two sheets using similar values

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    4

    combining two sheets using similar values

    Hello,

    I have 2 separate sheets of Data. One of the sheets has every store number 1 - 2000. The other sheet only has 1500 stores and the numbers are {3,4,7,11,12,16,17 etc}

    In the sheet with all of the stores, it has the address of each location. The second list only has the store number. The second list is the list of stores that need to be serviced and I want to get the addresses moved from the big list to the smaller list.

    PLEASE HELP!
    Last edited by XLriddler; 11-29-2011 at 02:50 PM. Reason: solved, Thank you very much! both of you!

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: combining two sheets using similar values

    Try Vlookup.

    e.g.

    =IFERROR(VLOOKUP(A2,'Sheet1'!A:B,2,FALSE),"")

    This looks at store number in A2 of the active sheet, and tries to find it in Sheet1, column A. If found it returns the corresponding item in column B.

    The IFERROR() is an error trap to return a blank if match is not found.

    copy formula down.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    11-29-2011
    Location
    Two Rivers, WI
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: combining two sheets using similar values

    In the sheet with only the store numbers, use the formula:
    =vlookup(A1, Sheet1!$A$1:$B$1500, 2, false)

    I am assuming A1 is the second sheet that only has the store number, Sheet1 is the name of first sheet with store numbers and addresses, and A1:B1500 contains the store numbers and cooresponding addresses. This formula will use the store number of your second page and look for it on your first page, then bring back the address. You use the $ signs so that the reference cell value is absolute.

    Hope this helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0