+ Reply to Thread
Results 1 to 3 of 3

Using a cell value for row in R1C1

  1. #1
    Rob T
    Guest

    Question Using a cell value for row in R1C1

    Hi everyone,

    Maybe a slightly bizarre question and I don't know if it's possible or not.

    What I'd like to do is use a value in a cell to be used in as the row value in an R1C1 function.

    e.g.

    Column A goes from rows 1 - 47 so I put 47 in a cell and name the cell "BotRow".

    I then have a formula which would be something like:

    =sum(R1C1:R"BotRow"C1)

    Is there any way of doing this

    The actual use of this is so that where I have a whole grid of formulas and want to change the range they're looking at, I don't have to change all the formulas, just a value in one cell.

    Any help appreciated,

    Rob

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Here are some options:

    If using R1C1 style:
    =SUM(OFFSET(R1C1,0,0,BotRow,1))

    If using A1 style:
    =SUM(OFFSET(A1,0,0,BotRow,1))

    If using either style:
    =SUM(INDIRECT("R1C1:R"&BotRow&"C1",0))

    Do any of those help?

    Regards,
    Ron

  3. #3
    Rob T
    Guest
    Excellent, that first one was just the ticket!

    Thanks for the help.

    Rob

+ 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