+ Reply to Thread
Results 1 to 5 of 5

INDEX array formula returning same value

  1. #1
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    INDEX array formula returning same value

    Hi All,

    I know I can do this as I have already succeeded once but since moving a few things on my spread sheet the formula has gone wrong and I can't correct it.

    I have one sheet with many different lines on and another I would like to select certain rows with the same reference number in column A. Below is the formula I am using

    =IF(ISERROR(INDEX(Lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=Lines!$A$2:$A$200,ROW(Lines!$A$2:$A$200)-MIN(ROW(Lines!$A$2:$A$200))+1,""),ROW(Lines!$A$2:$A$200)),COLUMN(C1))),"",INDEX(Lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=Lines!$A$2:$A$200,ROW(Lines!$A$2:$A$200)-MIN(ROW(Lines!$A$2:$A$200))+1,""),ROW(Lines!$A$2:$A$200)),COLUMN(C1)))

    Can anyone spot what my error is as it is returning the same value for me each time.

    Thanks, Katie

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: INDEX array formula returning same value

    You probably need to upload a workbook with an example of what your data looks like but as a guess, change:
    column(C1)
    to
    row(C1)

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: INDEX array formula returning same value

    Try this:
    =IF(ISERROR(INDEX(lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=lines!$A$2:$A$200,ROW(lines!$A$2:$A$200)-ROW(lines!$A$2)+1),ROWS(lines!$A$2:A2)),COLUMN(C1))),"",INDEX(lines!$A$2:$J$200,SMALL(IF(Quote!$AL$4=lines!$A$2:$A$200,ROW(lines!$A$2:$A$200)-ROW(lines!$A$2)+1),ROWS(lines!$A$2:A2)),COLUMN(C1)))
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Re: INDEX array formula returning same value

    Please see the attached list. I need the lines sheet transferring to the quote sheet. Hope it makes sense.Example.xlsm

  5. #5
    Forum Contributor
    Join Date
    02-24-2013
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2013
    Posts
    113

    Re: INDEX array formula returning same value

    That's perfect, it works again. Would it be possible for you to briefly explain what I had done wrong?

+ 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. Multiselect Listbox Returning Array of Selected Index Values
    By Draco1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-27-2013, 06:46 PM
  2. Replies: 8
    Last Post: 06-29-2012, 10:20 PM
  3. Index in array returning #NUM! error
    By DJDuggan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2010, 08:28 AM
  4. [SOLVED] Returning the index of an array value?
    By chemdude77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2006, 01:10 PM
  5. [SOLVED] Min formula not returning value from Index
    By ExcelMonkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2005, 10: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