+ Reply to Thread
Results 1 to 16 of 16

Confusion and frustration with complex formula involving ROW, INDEX & SMALL

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Exclamation Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    I need help with where I’m going wrong with this formula. I feel I’m close but I just can’t wrap my head around what I’m doing wrong.

    Attached spreadsheet for reference.

    2 Sheets.

    I’m trying to tell the formula that for every “Invalid” in Column G of Sheet 2, to return the corresponding value in Column A of Sheet 2 of that row. The result should be returned in a data record in Sheet 1.

    Please help.
    Attached Files Attached Files
    Last edited by JC_LA_1979; 01-28-2014 at 12:33 PM. Reason: Change Title of Thread

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help with formula

    Post title changed.
    Last edited by ConneXionLost; 01-28-2014 at 01:41 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Have you tried using a VLOOKUP function?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Try this array formula

    **Array formulas must be confirmed with Ctrl+Shift+Enter key combination.

    =INDEX(Sheet2!$A$2:$A$70,SMALL(IF(Sheet2!$G$2:$G$70="Invalid",ROW(Sheet2!$G$2:$G$70)-1,""),ROW($1:$1)))

    you would need to change instances ROW($1:$1))) from 1 to 2 and so on.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    01-22-2014
    Location
    genoa, italy
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Test 4.xlsx

    hi,
    here attached is the solution I'm proposing.
    AL

  6. #6
    Forum Contributor
    Join Date
    01-22-2014
    Location
    genoa, italy
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Test 4.xlsx

    SORRY SORRY SORRY there was a little mistake in the file I posted earlier (05:52 PM).
    I've just corrected it.
    here attached is the correct file.
    AL

  7. #7
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Quote Originally Posted by AL1976 View Post
    Attachment 293256

    SORRY SORRY SORRY there was a little mistake in the file I posted earlier (05:52 PM).
    I've just corrected it.
    here attached is the correct file.
    AL
    Ok, so I see what you did, however, in Sheet 2, if I wanted to insert a new row between Rows 3 and 4 with a new record of "Invalid", can I get columns H:J to autopopulate...basically trying to minimize the amount of manual adjustments to a file that will continually change, whether by removing rows or adding them.

  8. #8
    Forum Contributor
    Join Date
    01-22-2014
    Location
    genoa, italy
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    I'm afraid that with that solution, formulas would need to be dragged in H:J, as in column A...

  9. #9
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Quote Originally Posted by AL1976 View Post
    I'm afraid that with that solution, formulas would need to be dragged in H:J, as in column A...
    This may work...

    I'm not familiar with roundown - what is your formula saying in English?

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    @JC_LA_1979

    Did you try my formula in post #4?

  11. #11
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Quote Originally Posted by AlKey View Post
    Try this array formula

    **Array formulas must be confirmed with Ctrl+Shift+Enter key combination.

    =INDEX(Sheet2!$A$2:$A$70,SMALL(IF(Sheet2!$G$2:$G$70="Invalid",ROW(Sheet2!$G$2:$G$70)-1,""),ROW($1:$1)))

    you would need to change instances ROW($1:$1))) from 1 to 2 and so on.
    It works correctly for the 1st instance but when I adjust the Row from 1:1 to 2:2, it gives me a Num error.

  12. #12
    Registered User
    Join Date
    01-23-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Nevermind, I got it working. This may work even better.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Can you update your sample file to show us what results you expect?
    Last edited by Tony Valko; 01-28-2014 at 04:31 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    Please find attached file with revised formula that that is entered in A4 and dragged down. There no helper columns.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    01-22-2014
    Location
    genoa, italy
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    congratulations to Alkey whose solution is definitely better than mine !

  16. #16
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Confusion and frustration with complex formula involving ROW, INDEX & SMALL

    You're welcome and please don't forget to thank those who helped by clicking on Add Reputation *

+ 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. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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