+ Reply to Thread
Results 1 to 6 of 6

Variable Cell Reference, A(B10):A100

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    8

    Variable Cell Reference, A(B10):A100

    I'm trying to use the following inside a function:

    A(B1):A100 (where B1=10 or whatever the cell is equal to)

    So the above would really be A10:A100

    Is there a way to do this?

    Thanks!
    Last edited by afguy2011; 03-12-2012 at 01:43 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    286

    Re: Variable Cell Reference, A(B10):A100

    Take a look at the help on the OFFSET() function. Sorry, got to go.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    12,127

    Re: Variable Cell Reference, A(B10):A100

    Perhaps =indirect("A"&B1&":a100") ?

    Maybe post a sample sheet so we can eventually come up with an alternative if necessary

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2007 Enterprise
    Posts
    727

    Re: Variable Cell Reference, A(B10):A100

    Hi

    Use indirect function as

    e.g In sum function

    Please Login or Register  to view this content.
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,218

    Re: Variable Cell Reference, A(B10):A100

    Better to avoid the volatile function INDIRECT() where possible.

    Try the non-volatile alternative
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    03-02-2012
    Location
    TX
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Variable Cell Reference, A(B10):A100

    Thanks everyone!, the indirect function worked great!
    Last edited by afguy2011; 03-12-2012 at 08:14 PM.

+ 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