+ Reply to Thread
Results 1 to 8 of 8

Help with Array IF-ISERROR-INDEX formula

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Help with Array IF-ISERROR-INDEX formula

    Hello

    I am trying to use a criteria cell to pull specific information from two columns and display them on another worksheet in the same workbook. The information is displayed in rows. I am using a combination formula that pulls only one result and it will not autofil down to display the other two remaining results. If it is possible to pull adjacent data from two columns at once that would be great, otherwise I will repeat the formula to extract the second set of data. I have included a sample workbook with the main worksheet and the desired results sheet. It also includes my formula.
    Any help would be greatly appreciated
    Thanks
    Leaoni
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Array IF-ISERROR-INDEX formula

    In H3 and copydown

    =IFERROR(INDEX(Sheet1!$B$5:$B$9,SMALL(IF(Sheet1!$A$5:$A$9='Results Sheet'!$H$1,ROW(Sheet1!$B$5:$B$9)-4),ROW(Sheet1!B1))),"")

    iN i3 and copy down

    =IFERROR(INDEX(Sheet1!$C$5:$C$9,SMALL(IF(Sheet1!$A$5:$A$9='Results Sheet'!$H$1,ROW(Sheet1!$B$5:$B$9)-4),ROW(Sheet1!B1))),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Help with Array IF-ISERROR-INDEX formula

    I did it for numbers but couldnt figure out the texts
    =INDEX(LARGE(IF((Sheet1!$A$5:$A$9='Results Sheet'!$H$1)*1=1,Sheet1!$C$5:$C$9,""),ROW($1:$3)),ROW(1:1)) CSE
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-11-2011
    Location
    Texas
    MS-Off Ver
    Office 2007
    Posts
    78

    Re: Help with Array IF-ISERROR-INDEX formula

    Another way (without the need of CSE):

    =IFERROR(SUMPRODUCT((Sheet1!$A$5:$A$9='Results Sheet'!$H$1)*(Sheet1!$B$5:$B$9='Results Sheet'!$H3)*Sheet1!$C$5:$C$9),"")

    Place in 'Results Sheet'!I3

  5. #5
    Registered User
    Join Date
    11-12-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Help with Array IF-ISERROR-INDEX formula

    Thank you. What I would like to show is a breakdown of what the total amount of the acct 720 is. The amount is $535.00 and I want to show Chevron, Esso, Shell and their corresponding totals below.
    I don't need them in largest to smallest or visa versa. Having them show just as they are in the list is fine. I was wanting to take out the SMALL function but did not know what else to remove from the formula. Also, I believe I can use this same formula to have the corresponding text show beside the individual breakdown of the total. I hope I have explained this OK.

    Thank you for your help
    Leaoni

  6. #6
    Registered User
    Join Date
    04-11-2011
    Location
    Texas
    MS-Off Ver
    Office 2007
    Posts
    78

    Re: Help with Array IF-ISERROR-INDEX formula

    You have the SUMIF() working on the first sheet which does what you need but if you want the subtotal you can use the same formula I posted but change the third criteria:

    =IFERROR(SUMPRODUCT((Sheet1!$A$5:$A$9='Results Sheet'!$H$1)*(Sheet1!$B$5:$B$9='Results Sheet'!$H3)*Sheet1!$E$5:$E$9),"")

    None of the formulas put them in order, they just happen to be that way already.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with Array IF-ISERROR-INDEX formula

    Post #2 formulas are Array formulas. Need to confirm these using Control+Shift+Enter_Not just enter.

    Also in I1.

    =SUMIF(Sheet1!A5:A9,'Results Sheet'!H1,Sheet1!E5:E9)

  8. #8
    Registered User
    Join Date
    11-12-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Help with Array IF-ISERROR-INDEX formula

    Hello Everyone

    Thank you to everyone who assisted me with this formula challenge. My file works like a charm

+ 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