+ Reply to Thread
Results 1 to 4 of 4

Formula using INDEX, SMALL, and ISERROR functions gives skewed results

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Cary, North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    2

    Formula using INDEX, SMALL, and ISERROR functions gives skewed results

    Help, I am using a function that I found on an "office.microsoft.com" help site that should let me look up a value in a list and return multiple corresponding values from another column in the same spreadsheet. As you will see from my attached spreadsheet, when I enter a "Group" number the results are skewed, that is, they are shifted down by one row. This happens no matter what "Group" I choose. I did test on the SMALL function portion of the formula that finds the rows where the results are found and it is accurate. However, I believe the INDEX function is where things go wrong.

    Please tell me what I'm doing wrong, or suggest a simpler Excel formula that will work correctly.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula using INDEX, SMALL, and ISERROR functions gives skewed results

    welcome to the forum, rspells. your INDEX array portion starts from B2. that is your 1st row. when you get a match here:
    IF('Index help.xls'!Groupdata=Key
    you then put in:
    ROW('Index help.xls'!Groupdata)

    so your 1st match is in B13. B13 is the 12th & not 13th row. so people usually do it like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    my preferred way & to shorten it would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-08-2013
    Location
    Cary, North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formula using INDEX, SMALL, and ISERROR functions gives skewed results

    Thanks benishiryo. I used your prefered, shortened version of the formula and it works like a charm.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula using INDEX, SMALL, and ISERROR functions gives skewed results

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/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. Replies: 6
    Last Post: 10-22-2013, 01:48 PM
  2. How to show results of index small if from left to right
    By suton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2013, 06:39 AM
  3. Replies: 0
    Last Post: 04-07-2013, 04:29 AM
  4. [SOLVED] Iserror works on one column but not two in small nested formula
    By Philb1 in forum Excel General
    Replies: 8
    Last Post: 07-07-2012, 02:08 AM
  5. Can't find the error functions INDEX () and SMALL()
    By HyperG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2012, 12:20 AM

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