+ Reply to Thread
Results 1 to 4 of 4

Automatically display the information from sheet 1 to sheet 2

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    Myanmar
    Posts
    7

    Automatically display the information from sheet 1 to sheet 2

    hi, could anyone help me ?

    In my excel sheet, sheet 1 contain Student's Information. Like this,


    Column A Column B Column C
    StudentRN StudentName StudentMEDM
    1 AA MEDM-1111
    2 BB MEDM-2222
    3 CC MEDM-1232
    4 DD MEDM-1221

    In sheet 2,
    I want to type StudentRN in Column A randomly.
    I want to display automatically StudentName and StudentMEDM in Column B and Column C.

    Like this.
    If I type "4" in Column A of Sheet 2, BB (in column B) and MEDM-1221 (in column C) will be displayed automatically.
    If I type "2" in Column A of Sheet 2, DD (in column B) and MEDM-2222 (in column C) will be displayed automatically.

    Could any one help me to solve this problem?
    Thanks in advanced.
    Wiki Winn

  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
    This is a standard VLOOKUP function. On sheet2, in B2, try something like:

    =VLOOKUP(A1,Sheet1!$A$2:$C$100,2,False)

    And in C2:
    =VLOOKUP(A1,Sheet1!$A$2:$C$100,3,False)

    ....and copy those two numbers down.

    If you want to copy those formulas down further than you have answers in column A yet so it's automated, then preface those formulas with some sort of "check":

    B2 =IF(A1<>0,VLOOKUP(A1,Sheet1!$A$2:$C$100,2,False),"")
    C2 =IF(A1<>0,VLOOKUP(A1,Sheet1!$A$2:$C$100,3,False),"")
    _________________
    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
    11-08-2008
    Location
    Myanmar
    Posts
    7

    Thanks to JBeaucaire

    Thanks you very much JBeaucaire !!!

    Very helpful, great !!!

  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
    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [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