+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : formula needed to copy data from tab2 to tab1 if values match

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Exclamation formula needed to copy data from tab2 to tab1 if values match

    I have a spreadsheet with two tabs. I need to create a formula that will automatically enters details in tab 1 if location number in tab one matches location number from tab 2. The full details are in tab 2.

    HELP!

    btw excel version 2007, not 2003
    Last edited by linzi; 10-04-2011 at 08:19 AM. Reason: workbook added

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: formulas HELP!!

    Hi Linzi. Welcome to the forum.

    Please take a few moments to read the forum rules and then amend your thread title.

    As a clue, you're probably looking for a LOOKUP, VLOOKUP or INDEX/MATCH

    It will help to clarify your requirements if, when you update the title, you post a small sample workbook.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: formulas HELP!!

    changed title

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: formula needed to copy data from tab2 to tab1 if values match

    Please attach a sample workbook...

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: formula needed to copy data from tab2 to tab1 if values match

    If you change the column headers to match on both sheets, you can use the following formula:

    Cell D2: =VLOOKUP($A2&"",'UK Sites'!$A:$L,MATCH(D$1,'UK Sites'!$A$1:$L$1,0),FALSE)

    Copy across and down.

    If the column headers don't match, or can't be made to match, you'll need to put the relevant column number in the VLOOKUP instead of using the MATCH(...)

    Regards

  6. #6
    Registered User
    Join Date
    10-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: formula needed to copy data from tab2 to tab1 if values match

    Thank you!!!! i would never have worked that out alone

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: formula needed to copy data from tab2 to tab1 if values match

    You're welcome. Thanks for the rep.

    Regards, TMS
    Last edited by TMS; 10-04-2011 at 08:51 AM.

+ 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.6.0 RC 1