+ Reply to Thread
Results 1 to 9 of 9

Match/index/iserror

  1. #1
    Registered User
    Join Date
    03-14-2008
    Posts
    13

    Match/index/iserror

    Hi all!

    I've been working on this for a couple of days now and seem to be getting nowhere! Here is the issue:

    I want the formula to search for a match within an array and return the corresponding number that also matches. It works fine as long as there is a match, but if no match is found it is supposed to just return a blank. Without ISERROR it returns #N/A when no match is found, with ISERROR it returns #REF when a match is found. Perplexing.

    Can anyone assist? Worksheet attached with comments and details.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Welcome to the board
    I took the liberty of changing your formula combining COUNTIF and VLOOKUP.
    Is ths what you need?
    Last edited by arthurbr; 01-08-2009 at 05:44 AM.

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    E19:
    =IF(ISERROR(MATCH('Act vs Plan By Month'!C19,'Actual 2008'!$C$1:$C$75,0)),"",INDEX('Actual 2008'!$E$1:$P$75,MATCH('Act vs Plan By Month'!$E$1,Months_Actual,0),0))
    As you have a 2 dimenstional array, you need to set both the row and column numbers. They are only optional if you have a 1 dimensional array.

    Have a look at the help file on the INDEX function.


    rylo
    Last edited by rylo; 03-14-2008 at 05:02 AM.

  4. #4
    Registered User
    Join Date
    03-14-2008
    Posts
    13

    Thumbs up Awesome!

    Quote Originally Posted by arthurbr
    Welcome to the board
    I took the liberty of changing your formula combining COUNTIF and VLOOKUP.
    Is ths what you need?
    Thanks! I played with it and changed some reference ranges but it works! Simple, elegant. Love it!

    Why make it more complicated than it has to be right?

    Glad I found you guys!

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    You're welcome

  6. #6
    Registered User
    Join Date
    03-14-2008
    Posts
    13

    Question One last question...

    I have three columns (actual, plan, variance)..the lookup works beautifully BTW. In the PLAN column I can have a value or not. How would I rewrite the following formula (which doesn't work without getting #VALUE):

    =IF(F10>0,E10-F10,IF(F10="","",0))

    The point being: if PLAN is blank then return nothing (blank), if PLAN is not blank then calculate and return result.

    Did I not put enough arguments into this? I tried it with OR but that didn't work either.

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Please Login or Register  to view this content.
    Last edited by arthurbr; 03-14-2008 at 06:48 AM.

  8. #8
    Registered User
    Join Date
    03-14-2008
    Posts
    13

    Unhappy Hmmm, that won't work. Needs IF/AND/?OR

    I didn't really state the my problem very clearly, my mistake

    Ok, the formula needs to to this:

    IF cell E is blank AND cell F is blank, then return a blank...however,

    IF cell is E blank AND cell F is not blank, then return a blank...however,

    IF cell E is not blank AND cell F is not blank, then calculate.

    I tried it with IF(AND.... a combination of If(AND..., OR(

    and I just can't get it to return anything but #VALUE.

  9. #9
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Quote Originally Posted by gmcana
    I didn't really state the my problem very clearly, my mistake

    Ok, the formula needs to to this:

    IF cell E is blank AND cell F is blank, then return a blank...however,

    IF cell is E blank AND cell F is not blank, then return a blank...however,

    IF cell E is not blank AND cell F is not blank, then calculate.

    I tried it with IF(AND.... a combination of If(AND..., OR(

    and I just can't get it to return anything but #VALUE.
    The two first conditions boil down to checking if E is blank, whatever F, return a blank

    so the formula would be
    Please Login or Register  to view this content.
    supposing when E is not blank but F isblank, the result would be blank

+ 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