+ Reply to Thread
Results 1 to 6 of 6

Variable Cell Reference

  1. #1
    Registered User
    Join Date
    11-16-2007
    Posts
    4

    Variable Cell Reference

    If this issue has already been addressed, I apologize, but I couldn't find a solution that would make this work, no matter how I played with it. I am newb at excel, but after I RTFM I still have no working solution for this.

    Where...

    Variable G1; //is a cell containing the name of the worksheet
    Variable H5; //is a cell containing the column number of the data cell
    Variabel I5; //is a cell containing the row number of the data cell

    How do I make it

    ='G$1'!($H5,$I5)

    such that ($H5, $I5) are the coordinates of the cell on the worksheet G1?

    without using Macros

    Thanks in advannce for your help (and patience).

  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

    Variable Cell Reference

    Try this:

    Please Login or Register  to view this content.
    Is that what you're looking for?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    11-16-2007
    Posts
    4
    PERFECT! Thank you!

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    Central Indiana
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Variable Cell Reference

    Thanks Ron! I was not aware of the Indirect function. Worked for me as well.

  5. #5
    Registered User
    Join Date
    02-24-2014
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Variable Cell Reference

    I have a similar question. I am trying to build a formula that will allow me to copy it to various locations and pick a reference for a cell name.

    In the cell for Location 1, I can place the formula =site_name_1 and the correct location name will display. I would like to be able to enter something along the lines of =site_name_&H1, where the cell H1 contains the number 1 and the result in the destination cell will be =site_name_1, resolving to the name of Location 1.

    Is this possible?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Variable Cell Reference

    oldgnome,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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