+ Reply to Thread
Results 1 to 4 of 4

Index Match Dragging Problem

Hybrid View

  1. #1
    Registered User
    Join Date
    01-25-2012
    Location
    ...
    MS-Off Ver
    Excel 2007
    Posts
    21

    Index Match Dragging Problem

    I am trying to drag the following code across all the worksheet. The mapping is correct and retrieves the values I want. But I need to drag the formula (vertically and horizontally) across the worksheet with minimal manual editing. Basically, Column B contains the employee numbers while Row 6 contains the Project numbers. When I drag the formula, I have to edit the new cell addresses to retrieve the accurate values. Is there an easier way to achieve this objective?


    =IF(ISNA(INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH(B8&J6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0))),"",INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH(B8&J6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0)))
    Thank you
    Last edited by ashraf999; 01-28-2012 at 03:28 AM.

  2. #2
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Index Match Dragging Problem

    Hi,
    You need to use $ signs to fix the B and 6

    =IF(ISNA(INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH($B8&J$6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0))),"",INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH($B8&J$6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0)))
    Good luck.

  3. #3
    Registered User
    Join Date
    01-25-2012
    Location
    ...
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Index Match Dragging Problem

    Quote Originally Posted by OnErrorGoto0 View Post
    Hi,
    You need to use $ signs to fix the B and 6

    =IF(ISNA(INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH($B8&J$6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0))),"",INDEX('Complex Query 4.xlsx'!$AA$2:$AA$1008,MATCH($B8&J$6,'Complex Query 4.xlsx'!$E$2:$E$1008&'Complex Query 4.xlsx'!$A$2:$A$1008,0)))
    Thanks a lot. It worked perfectly !

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Index Match Dragging Problem

    My pleasure.

    Please do not forget to mark this thread Solved.

+ 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