+ Reply to Thread
Results 1 to 3 of 3

Thread: Linking worksheets

  1. #1
    Registered User
    Join Date
    12-22-2011
    Location
    Loxton, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Linking worksheets

    I am a very raw user of excel and hope someone can help me with what is probably a simple problem. I would like to construct a 'Student Data' page where by typing in the year and the student ID you will get academic results from that year and the previous year. While I can set it up to run once I cannot get it to change when I change the year.

    I have attached a trial sheet. It is the formulas on the "Student Record' Page I am have difficulties with. I want it so that if I change the year to 2012 the 'current' and 'previous year data will change.
    Attached Files Attached Files
    Last edited by papah73; 01-12-2012 at 06:20 AM.

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

    Re: Linking worksheets

    Change the formula in C, D & E of your Student Record sheet to this -
    =VLOOKUP($B$3,INDIRECT("'"&$B$2&"'!$A$6:$E$11"),3)
    Cheers,
    Arlette

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,225

    Re: Linking worksheets

    C6: =IFERROR(VLOOKUP($B$3,INDIRECT("'"&$B$2&"'!$A$6:$E$11"),COLUMN(C6),FALSE),0)
    C7: =IFERROR(VLOOKUP($B$3,INDIRECT("'"&$B$2-1&"'!$A$6:$E$11"),COLUMN(C6),FALSE),0)

    Copy across


    Regards, TMS

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