+ Reply to Thread
Results 1 to 2 of 2

Indirect Formula Explanation

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    61

    Indirect Formula Explanation

    Hello Excel Gurus,

    I am having trouble understanding an excel formula I have never come across, and was wondering if y'all would generously help walk me through the meaning.

    =IFERROR(INDIRECT($A10&"!dc$"&S$1),"")

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Indirect Formula Explanation

    The INDIRECT function will take a string, and return the range that corresponds to that string. For example, if you use

    =INDIRECT("Sheet1!DC1")

    it is equivalent to

    =Sheet1!DC1

    Suppose you know that you want to return a value in DC1, but the sheet can change. The sheet name would be in A10 and you can do this:

    =INDIRECT(A10 & "!DC1")

    If A10 has the string "Sheet2" then the result is equivalent to

    =Sheet2!A1

    Now suppose you know that you want to return a value in column DC, but the row can change. The row number is contained in S1.


    =INDIRECT(A10 & "!DC" & S1)

    If A10 has the string "Sheet2", and S1 has the number 12, then the result is equivalent to

    =Sheet2!DC12

    The added $ signs indicate that if this formula is copied to another cell, the indicator (row or column) after the $ will not change.

    When you wrap ISERROR around an expression, it will return a blank if the expression evaluates to an error.

    =IFERROR(expression, "")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Explanation about Formula
    By dhineshreddy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2017, 03:59 AM
  2. Indirect explanation
    By anmol786 in forum Excel General
    Replies: 1
    Last Post: 03-02-2015, 10:55 AM
  3. formula explanation
    By extremis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2013, 04:22 PM
  4. Need explanation of a MAX-MIN formula!
    By Pam019 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2013, 10:24 AM
  5. formula explanation ?
    By stars in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2012, 06:32 AM
  6. Sumifs formula with Indirect function explanation
    By sqledge in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2010, 01:01 AM
  7. Explanation of formula
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 04-03-2009, 03:44 AM

Tags for this Thread

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