+ Reply to Thread
Results 1 to 4 of 4

R1C1 format using a variable?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-04-2005
    Posts
    11

    Question R1C1 format using a variable?

    Is it possible to use a variable to designate the column in R1C1 format?

    If so, what is the proper way to do it?


    Example:

    R5C"my variable goes here"

  2. #2
    JE McGimpsey
    Guest

    Re: R1C1 format using a variable?

    One way:

    =INDIRECT("R5C" & myVar,FALSE)

    Another way:

    =INDEX(R5,myVar)

    In article <jim37055.1wds6h_1128434711.3939@excelforum-nospam.com>,
    jim37055 <jim37055.1wds6h_1128434711.3939@excelforum-nospam.com>
    wrote:

    > Is it possible to use a variable to designate the column in R1C1 format?
    >
    >
    > If so, what is the proper way to do it?
    >
    >
    > Example:
    >
    > R5C"my variable goes here"


  3. #3
    bj
    Guest

    RE: R1C1 format using a variable?

    check out indirect() in help

    "jim37055" wrote:

    >
    > Is it possible to use a variable to designate the column in R1C1 format?
    >
    >
    > If so, what is the proper way to do it?
    >
    >
    > Example:
    >
    > R5C"my variable goes here"
    >
    >
    > --
    > jim37055
    > ------------------------------------------------------------------------
    > jim37055's Profile: http://www.excelforum.com/member.php...o&userid=27788
    > View this thread: http://www.excelforum.com/showthread...hreadid=472969
    >
    >


  4. #4
    Registered User
    Join Date
    10-04-2005
    Posts
    11

    Thanks

    Thanks guys, that worked.

+ 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