+ Reply to Thread
Results 1 to 6 of 6

Problem with IFS (or multiple IF)

  1. #1
    Registered User
    Join Date
    07-06-2022
    Location
    Indonesia
    MS-Off Ver
    16.59
    Posts
    3

    Problem with IFS (or multiple IF)

    Hi all,
    Sometimes I'm having troubles with IF (and sometimes don't), so I would love to seek for an enlightenment here (file attached).
    There are 4 criteria. Criteria no. 1 and 2 work well, but not with criteria no. 3-4. It seems that the formula only works for up to 2 conditions.
    Anybody ever had the same/similar case?
    Thank you.
    Attached Files Attached Files
    Last edited by falaaah; 07-07-2022 at 10:55 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,802

    Re: Problem with IFS (or multiple IF)

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-06-2022
    Location
    Indonesia
    MS-Off Ver
    16.59
    Posts
    3

    Re: Problem with IFS (or multiple IF)

    Hi, Ali. Thank you for the information. I've attached the sample file. Thank you.
    Last edited by AliGW; 07-08-2022 at 01:07 AM. Reason: PLEASE don't quote unnecessarily

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,802

    Re: Problem with IFS (or multiple IF)

    Try this:

    =IFERROR(IFS(I8="","",
    AND(I8="IO",IFERROR(MATCH(K8,XX_Account,0),0)>0),"Clear",
    AND(I8="BT",IFERROR(MATCH(K8,YY_Account,0),0)>0),"Clear",
    AND(I8="JP",IFERROR(MATCH(K8,XX_Account,0),0)>0,IFERROR(MATCH(K9,ZZ_Account,0),0)>0),"Clear"),
    "Error")

    Please look at the attachment and copy the formula from there for your locale.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-06-2022
    Location
    Indonesia
    MS-Off Ver
    16.59
    Posts
    3

    Re: Problem with IFS (or multiple IF)

    It works! Thank you for your help!
    Last edited by AliGW; 07-08-2022 at 02:51 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,802

    Re: Problem with IFS (or multiple IF)

    Glad to have helped.

+ 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. Multiple IF/AND problem
    By pjkcpa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2014, 02:53 PM
  2. [SOLVED] Multiple If's problem
    By arkadd61 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2014, 03:50 PM
  3. Replies: 6
    Last Post: 02-28-2014, 09:34 AM
  4. Problem with multiple IF
    By bryan444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2013, 02:23 PM
  5. [SOLVED] Formula Problem with Multiple IF / AND Statements and Multiple outcome?
    By JONBOY666 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2013, 01:32 PM
  6. [SOLVED] Problem with multiple if
    By Sharon Hague in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2012, 12:03 PM
  7. Replies: 1
    Last Post: 02-08-2005, 03:06 PM

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.6.0 RC 1