+ Reply to Thread
Results 1 to 4 of 4

Need to be able to use a variable for ROW/COLUMN pointer

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    4

    Need to be able to use a variable for ROW/COLUMN pointer

    So I have this in a cell

    =Sheet1!M383

    How can I sub 383 with a number from another cell? So it would look like:

    =Sheet1!M(A1)

    I have Googled but not sure hot to properly phrase the question.

    Thanks ahead.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Need to be able to use a variable for ROW/COLUMN pointer

    Something like this:

    =INDIRECT("Sheet1!M"&A1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-04-2014
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    4

    Re: Need to be able to use a variable for ROW/COLUMN pointer

    So simple! Thank you.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Need to be able to use a variable for ROW/COLUMN pointer

    It is when you know about INDIRECT!!! You're very welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sum column based on variable start and variable end months
    By Steve N. in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-06-2013, 08:01 PM
  2. Replies: 6
    Last Post: 04-14-2012, 04:07 AM
  3. Replies: 4
    Last Post: 01-14-2011, 09:30 PM
  4. declare variable to hold pointer to ActiveX control
    By dlh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-11-2010, 07:40 PM
  5. Assigning a variable and pasting variable to last unused column.
    By Ageia in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-20-2008, 05:06 PM
  6. Sum cells based on a row variable and seperate column variable
    By CheeseHeadTransplant in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-23-2005, 02:05 PM
  7. Protect a column by disabling mouse pointer
    By Francis de Brienne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2005, 06:06 PM

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.6.0 RC 1