+ Reply to Thread
Results 1 to 4 of 4

IFS Fuctions not working after second argument

  1. #1
    Registered User
    Join Date
    06-14-2021
    Location
    Puerto Rico
    MS-Off Ver
    365
    Posts
    2

    IFS Fuctions not working after second argument

    So Im trying to create a conditional formula to depurate data into different columns. I've done it before and it has always worked but this time is just not working.

    the formula is as follows:

    =IFS(FIND("RBM",C2,1)>0,$F$3,FIND("HUM",C2,1)>0,$F$2,FIND("JKE",C2,1)>0,$F$4)

    It works for RBM and HUM but when it gets to a JKE one, although if you evaluate FIND by pressing F9 and it comes out as true it still gives me #VALUE error.

    Any ideas? I really need this to work. Ive included an extract of the spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: IFS Fuctions not working after second argument

    I suspect there is a better way, but this works:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-14-2021
    Location
    Puerto Rico
    MS-Off Ver
    365
    Posts
    2

    Re: IFS Fuctions not working after second argument

    Thanks so much! this worked.

    Im also interested in the better way, if you point me in the right direction I'll do my research

    But then again thanks a lot.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: IFS Fuctions not working after second argument

    Quote Originally Posted by mjsabin View Post
    It works for RBM and HUM but when it gets to a JKE one, although if you evaluate FIND by pressing F9 and it comes out as true it still gives me #VALUE error.
    It doesn't actually work for HUM. Per the documentation:

    "If a logical_test argument is evaluated and resolves to a value other than TRUE or FALSE, this function returns a #VALUE! error."

    That means that if RDB is not found, the first logical condition evaluated raises an error value, so your return value is the #VALUE! error.

    If you can rearrange your results cells so that they are in the same order top to bottom as the priority of the search you want to operate, you could probably use a LOOKUP and FIND combination.
    Rory

+ 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. [SOLVED] Sumproduct with Array Constants as argument not working
    By lynnsong986 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-05-2020, 10:56 AM
  2. Nested Fuctions
    By ben.robeck in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-19-2016, 04:13 PM
  3. Replies: 1
    Last Post: 08-08-2014, 07:53 AM
  4. Passing Argument is not working
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2013, 09:13 AM
  5. VLookup Fuctions
    By nicolachen in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-22-2007, 12:06 PM
  6. Equalls fuctions
    By WAZA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2006, 11:30 AM
  7. [SOLVED] Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 AM

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