+ Reply to Thread
Results 1 to 4 of 4

How to write an INDIRECT formula in R1C1 style to return a value from another sheet?

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    How to write an INDIRECT formula in R1C1 style to return a value from another sheet?

    Hi!

    I'm trying to get this formula right:

    =INDIRECT("R"&MATCH(Sheet1!B1;Sheet2!C:C;0)&"C"&COLUMN(Sheet2!D:D);FALSE)

    I've entered the formula in cell A1 of Sheet1 and it uses the R1C1 reference style of the INDIRECT function.

    The MATCH function checks column C of Sheet2 for a match with B1 of Sheet1 and returns the row number of the first such match. The COLUMN function returns the column number of column D of Sheet2, which is 4.

    Let's say B1 of Sheet1 matches with cell C1 of Sheet 2. The row number returned is then 1. The INDIRECT formula then becomes =INDIRECT("R"1&"C"4;FALSE), which returns the content of D1 - of Sheet1!

    The big question is: How can this formula be written so that it returns D1 of Sheet2 instead of D1 of Sheet1?

    I hope someone can help!

    Best regards,
    Marbleking

    Please Login or Register  to view this content.
    Last edited by Marbleking; 08-23-2011 at 12:37 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to write an INDIRECT formula in R1C1 style to return a value from another she

    Why would you want to use a volitile formula when this would do the job?
    In A1
    Please Login or Register  to view this content.
    or in R1C1 style
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: How to write an INDIRECT formula in R1C1 style to return a value from another she

    Quote Originally Posted by Marbleking View Post
    Hi!

    I'm trying to get this formula right:

    =INDIRECT("R"&MATCH(Sheet1!B1;Sheet2!C:C;0)&"C"&COLUMN(Sheet2!D:D);FALSE)
    The big question is: How can this formula be written so that it returns D1 of Sheet2 instead of D1 of Sheet1?
    I hope someone can help!
    Best regards,
    Marbleking
    Try this:
    Please Login or Register  to view this content.
    Last edited by bebo021999; 08-22-2011 at 10:08 PM.

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: How to write an INDIRECT formula in R1C1 style to return a value from another she

    Marcol: Thanks for your reply! I'll add your suggestions to my arsenal of tricks. However, it's important for me to keep the formula volatile, because I want to be able to insert or delete rows and columns in-between.

    bebo021999: Your reply solved my problem! Thank you very much. Now I can keep my workbook flexible as a rubber Tarzan!

+ 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