+ Reply to Thread
Results 1 to 4 of 4

Help, Index Match with If Then

  1. #1
    Registered User
    Join Date
    12-06-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Help, Index Match with If Then

    Hello,

    I was able to formulate an Index Match statement based on 3 criteria. The 3 Criteria I needed to match from spreadsheet1 to spreadsheet2 were LastName, FirstName, and Project Code. Based on those three Criteria, I wanted to retrieve the Project code percentage from one sheet to another. (Spreadsheet2 is named QPercents and I named the ranges last, first and ProjectCode)

    This following formula works fine for me:

    =INDEX(QPercents!$B$2:$F$227,MATCH(R15&Q15&BR15,QPercents!last&QPercents!first&QPercents!Projectcode,0),5)


    It retrieves the percentages fine.

    However, if the 3 Criteria were not found, It displays #N/A

    Instead of the N/A, I would like to display 100%

    Any ideas? I tried using

    IF(ISNA(INDEX(QPercents!$B$2:$F$227,MATCH(R15&Q15&BR15,QPercents!last&QPercents!first&QPercents!Projectcode,0),5),100%,
    INDEX(QPercents!$B$2:$F$227,MATCH(R15&Q15&BR15,QPercents!last&QPercents!first&QPercents!Projectcode,0),5)

    This is not working.

    Thanks for any help you can give.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Help, Index Match with If Then

    Perhaps
    Please Login or Register  to view this content.
    Of course this would catch ALL errors which might not be what you want

  3. #3
    Registered User
    Join Date
    12-06-2013
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Help, Index Match with If Then

    It works great... Thanks! I see what you mean by errors as it will return 100% if I have a spelling error but I think that is manageable because the the QPercent file is pretty small. Thanks!!!!

  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: Help, Index Match with If Then

    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: 11-08-2013, 10:29 PM
  2. Index match offset to get subsequent index values in a column
    By Andrew_Step in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2013, 02:55 PM
  3. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  4. [SOLVED] VBA for creating Index-Match every 2 rows where INDEX refer to a different column per row
    By bisaya789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 03:46 AM
  5. Replies: 5
    Last Post: 02-29-2012, 08:51 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