+ Reply to Thread
Results 1 to 5 of 5

Formula to get a cell value based on row and column

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Formula to get a cell value based on row and column

    Hi,
    I am trying to come up with a formula based on row and column numbers; say I have a value in cell A1, I am trying to get something like = Cell(1,1).
    What would be the right formula for this
    Thank you

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to get a cell value based on row and column

    =indirect(address(1,1))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to get a cell value based on row and column

    Try

    =INDEX($A:$XFD,1,1)

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula to get a cell value based on row and column

    and just in case you're confused

    =INDEX($A:$XFD,1,1) will change to

    =INDEX($1:$1048576,1,1) when entered ie all the cells in the work sheet
    Last edited by martindwilson; 01-05-2015 at 07:11 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to get a cell value based on row and column

    Quote Originally Posted by martindwilson View Post
    =INDEX($A:$XFD,1,1) will change to

    =INDEX($1:$1048576,1,1) when entered ie all the cells in the work sheet
    I wonder why it does that? A:XFD is also a reference to all the cells in the sheet...

    Similarly, but opposite really...
    A1:A1048576 will change to A:A

+ 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] Need a formula to change cell in column 2 based off of text in column 1
    By bevwalker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-30-2014, 03:26 PM
  2. Moving Cell contents with a formula, based on the column value?
    By bvandervyver44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2013, 02:51 AM
  3. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 AM
  4. a formula to get a cell column letter based on a number
    By luv2glyd in forum Excel General
    Replies: 2
    Last Post: 06-03-2011, 02:52 PM
  5. INDEX formula to define column based on cell value
    By boohah in forum Excel General
    Replies: 2
    Last Post: 02-02-2011, 05:26 AM

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