+ Reply to Thread
Results 1 to 4 of 4

Incorrect column number returned in INDEX, MATCH for nth instance

  1. #1
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Incorrect column number returned in INDEX, MATCH for nth instance

    Hit an absolute brick wall with what sounds like it should be so simple...

    The source data contains the name, project and hours a person commits to that project.

    Where there is no resource available, the name is 'unassigned' until a resource can be found. There could be multiple instances of this.

    What I need to do is pull this information into another table. I have the (array) formula (
    Please Login or Register  to view this content.
    ) to identify and retrieve the nth instance of each name and duplicate and now need to look up each nth name instance, match it against a date and return the hours value.

    I have the row number of each instance so would have expected to just use the MATCH function to determine the column from which to return the intersecting cell value Formula below), however I cannot get it to return the correct column
    Please Login or Register  to view this content.
    Attached is a simple cut of the data.

    Where am I falling down?

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,684

    Re: Incorrect column number returned in INDEX, MATCH for nth instance

    B16 Cell Formula - Array Formula - Requires CTRL+SHIFT+ENTER

    =INDEX(tdata,SMALL(IF(tproject=$A16,ROW(tproject)-MIN(ROW(tproject))+1),ROWS($1:1)),1)

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Incorrect column number returned in INDEX, MATCH for nth instance

    They are entered as array formulas (as per attachment) and do return a value - albeit the incorrect response, otherwise they would return a #VALUE!
    error.

  4. #4
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Incorrect column number returned in INDEX, MATCH for nth instance

    I have solved it now - just needed to look at it on someone else's screen for that Eureka! moment.......

    The issue was that the date named range. It started on column C which although the 3rd column on the sheet, it was the 1st column of the range.

    I've expanded the range to A1 and it works fine.

    Marvellous!

+ 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: 4
    Last Post: 01-10-2014, 05:09 PM
  2. [SOLVED] Lookup & Index Match - Errors Returned
    By shudder in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-23-2013, 05:56 AM
  3. Replies: 10
    Last Post: 08-19-2013, 11:33 AM
  4. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  5. [SOLVED] Incorrect Serial Number Returned for YEAR Function
    By greenmat in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-27-2012, 06:22 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