+ Reply to Thread
Results 1 to 4 of 4

Changing cell range based on another cell's value?

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Changing cell range based on another cell's value?

    how do you create a cell formula that changes its cell number depending on another cell?

    example:
    =Sum(J6:J(C5))

    C5 = 20

    I'd like it to end up being
    =Sum(J6:J20)

    but have the ability to change it in case I'd like to.

    Or are there any other ideas that I can work around to do something along these lines?
    Last edited by NBVC; 07-08-2010 at 04:38 PM.

  2. #2
    Registered User
    Join Date
    06-29-2010
    Location
    Central Texas
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Changing cell range based on another cell's value?

    Try =Sum(J6:INDIRECT("J"&C5))

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Changing cell range based on another cell's value?

    or without the volatile INDIRECT function:

    =SUM(J6:INDEX(J:J,C5))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    07-08-2010
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing cell range based on another cell's value?

    yup those worked! thanks so much!

+ 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