Closed Thread
Results 1 to 3 of 3

Update sheet2 with sheet1

  1. #1
    Registered User
    Join Date
    04-26-2007
    Posts
    77

    Update sheet2 with sheet1

    Dear Experts

    Sheet1 has following two columns
    code--Company
    --1----Philips
    --2----Nokia
    --3----Toshiba
    --4----Motorola
    --5----Sam Sung

    Sheet2 has following two columns
    code--Company
    --1
    --2
    --3
    --4
    --5
    --1
    --5
    --4
    --2
    --1
    --3

    In sheet2 how to fill company names against code that is exists in sheet1.

    Please help
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,440
    Hi,

    Sheet2, Cell B2

    =INDEX(Sheet1!$B$2:$B$6,MATCH(Sheet2!A2,Sheet1!$A$2:$A$6,0))

    and copy down
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    04-26-2007
    Posts
    77
    Dear Sir,

    How to use this formula with commandbutton

    =INDEX(Sheet1!$B$2:$B$6,MATCH(Sheet2!A2,Sheet1!$A$ 2:$A$6,0))

    Then command button must check all sheet2 and update

Closed 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