+ Reply to Thread
Results 1 to 4 of 4

Use the row and column number to get the cell value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Use the row and column number to get the cell value

    Hi, if we don't use offset() function, we can probably use the following approach to fetch the cell value using its row number and column number:

    INDIRECT(ADDRESS(A1,A2))

    Here, suppose A1 and A2 store the row number and column number respectively.

    But the one here only applies to the same sheet. What if i want to get value from a different sheet? For example, two sheets: Sheet 1 and Sheet 2.

    If I type the formula in Sheet 2:

    =INDIRECT(Sheet1!ADDRESS(A1,A2))

    Then this results in an error.

    Can you please correct this as a good knowledge?
    Last edited by BNCOXUK; 10-19-2012 at 05:50 AM.

  2. #2
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Use the row and column number to get the cell value

    I know how to do it now. Just:

    =INDIRECT("Sheet1!"&ADDRESS(A1,A2))

  3. #3
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Use the row and column number to get the cell value

    You need apostrophes around the sheet reference.

    =INDIRECT("'Sheet1'!"&ADDRESS(A1,A2))

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    Telford, England
    MS-Off Ver
    Excel 2010 (2003)
    Posts
    294

    Re: Use the row and column number to get the cell value

    you beat me to it! Well done.

+ 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