+ Reply to Thread
Results 1 to 2 of 2

Can Excel have a VARIABLE Cell Reference???

  1. #1
    Registered User
    Join Date
    02-02-2005
    Location
    Bryan, TX
    Posts
    5

    Question Can Excel have a VARIABLE Cell Reference???

    I cannot figure out how to have a variable ina cell reference.

    Say cell A4 contains a text character of "H".
    I want
    =SUM(H6:N6) to be able to be replaced by =SUM((A4)6:N6)

    I hope I have not missed anything obvious - but I cannot get this to work in any way shape form or fashion.

    I would also like to be able to replace the row number with an integer variable - cannot get that to work either.

    Thanks ahead of time for any help,
    Royce

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    =SUM(INDIRECT(A4&A5):N6)

    ...where A4 contains the text character refering to the column and A5 contains the number refering to the row.

    Hope this helps!

    Quote Originally Posted by Rolls100
    I cannot figure out how to have a variable ina cell reference.

    Say cell A4 contains a text character of "H".
    I want
    =SUM(H6:N6) to be able to be replaced by =SUM((A4)6:N6)

    I hope I have not missed anything obvious - but I cannot get this to work in any way shape form or fashion.

    I would also like to be able to replace the row number with an integer variable - cannot get that to work either.

    Thanks ahead of time for any help,
    Royce

+ 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