+ Reply to Thread
Results 1 to 3 of 3

Linking worksheets

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

    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 07:20 AM.

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

    Re: Linking worksheets

    Change the formula in C, D & E of your Student Record sheet to this -
    Please Login or Register  to view this content.
    If I have 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 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,532

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


+ 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