+ Reply to Thread
Results 1 to 6 of 6

variable cell reference

Hybrid View

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    variable cell reference

    I have a column (J) of numbers, containing say 2,15,25 etc which I wish to use in another cell reference =M2 or M15 or M25 where the number reference is picked up from the contents of the cell in column J.
    How do I do this?
    Appreciate your help!
    BGC

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: variable cell reference

    maybe
    =INDIRECT("M"&J1)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: variable cell reference

    Thanks for the suggestion. That works fine!
    Of course you cant cut and paste this entry as cell addresses within the " " are not carried across and need to be edited by hand.
    Regards
    BGC

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: variable cell reference

    maybe this is what you want

    =ADDRESS(J1,13)

    13 is Column Header letter M

    J1 -> get the value from j1 assuming 53

    so the output would be $M$53 ->you can copy paste this...

    or maybe
    =LEFT(ADDRESS(1,13,4))&J1

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: variable cell reference

    This works as well:
    =INDIRECT(ADDRESS($O496,13))
    so content of cell determined by ADDRESS (Row element = $O496, Column 13 (M))

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: variable cell reference

    Maybe just

    =INDEX(M:M,$O496)

    (has the advantage of being non-volatile)

+ 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