+ Reply to Thread
Results 1 to 2 of 2

Multiple arguments for IF ISERROR...

  1. #1
    Registered User
    Join Date
    04-19-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    1

    Multiple arguments for IF ISERROR...

    I am trying to create an IF statement that searches for particular text in a cell. The formula works fine if I use the first IF statement below but when I try to use the second statement I get a VALUE error message.

    =IF(ISERROR(SEARCH("BANK",$O5)),"No","BANKCARD") - This one works fine.

    =IF(ISERROR(SEARCH("BANK",$O5)),"No","BANKCARD"), =IF(ISERROR(SEARCH("WIRE",$O5)),"No","WIRING") - This one does not.
    Last edited by AKEEM; 04-19-2009 at 02:33 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Multiple arguments for IF ISERROR...

    You can combine those like this

    =IF(ISNUMBER(SEARCH("BANK",$O5)),"BANKCARD",IF(ISNUMBER(SEARCH("WIRE",$O5)),"WIRING","No"))

    or this version can be more easily adapted for use with a longer list of Search/Return values

    =LOOKUP("zzz",CHOOSE({1,2},"No",LOOKUP(2^15,SEARCH({"Wire","Bank"},O5),{"WIRING","BANKCARD"})))

+ 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