+ Reply to Thread
Results 1 to 3 of 3

Thread: Adding string to match index

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Adding string to match index

    Hi all,

    I'm trying to complete this formula. It works great. BUT, if the lookup value is not in the lookup array, it results in an NA. How do I make the value 0 if the lookup value is not in the lookup array? Is there an easier way to do this? Like I said, it works great unless there isn't a match. It takes only one to not match and I get the NA.

    =INDEX($Q$5:$Q$13,(MATCH(A2,$F$5:$F$13,0)))+INDEX($AD$5:$AD$13,(MATCH(A2,$S$5:$S$13,0)))+INDEX($AT$5 :$AT$13,(MATCH(A2,$AF$5:$AF$13,0)))+INDEX($BG$5:$BG$13,(MATCH(A2,$AV$5:$AV$13,0)))

    Thanks in advance!
    Last edited by jb2235; 07-29-2011 at 08:55 AM.

  2. #2
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Adding string to match index

    Hi,

    Try:

    =IFERROR(INDEX($Q$5:$Q$13,(MATCH(A2,$F$5:$F$13,0)))+INDEX($AD$5:$AD$13,(MATCH(A2,$S$5:$S$13,0)))+INDEX($AT$5:$AT$13,(MATCH(A2,$AF$5:$AF$13,0)))+INDEX($BG$5:$BG$13,(MATCH(A2,$AV$5:$AV$13,0))),0)
    Cheers,
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

  3. #3
    Registered User
    Join Date
    07-28-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Adding string to match index

    It worked! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0