+ Reply to Thread
Results 1 to 3 of 3

Thread: Using the value of a cell to determine the cell number to change

  1. #1
    Registered User
    Join Date
    01-29-2012
    Location
    NYC, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Using the value of a cell to determine the cell number to change

    Below is some data:
    Test Day1 Day2 Score
    A 1 2 100
    B 1 3 62
    C 3 4 90
    D 2 4 20
    E 4 5 80
    I am trying to take the values from column 'day' and 'day2' and use them to select the row number for the column score. For example for Test A I would like to find the sum of 100 and 62 because that is the values of the first and second rows of score. Test B I would like to find the sum of 100, 62 and 90.
    Does anyone have any ideas on how to go about doing this? Thank you!
    Last edited by helpplease9898; 02-05-2012 at 12:14 PM.

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

    Re: Using the value of a cell to determine the cell number to change

    =SUM(INDIRECT("D"&B2+1):INDIRECT("D"&C2+1))


    Regards, TMS

  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: Using the value of a cell to determine the cell number to change

    Thanks for the rep.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

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