+ Reply to Thread
Results 1 to 7 of 7

3 IF functions

  1. #1
    Registered User
    Join Date
    04-18-2015
    Location
    NY
    MS-Off Ver
    Mac 2011
    Posts
    13

    3 IF functions

    Hello,

    I am trying to include (3) IF functions in a cell, but I receive an error message saying I have too many arguments.

    Here are the three IF functions I am trying to include:

    IF(C17="Apple",(C19-1)*B49

    IF(C17=3,"Orange",0)

    IF(C18=3,"Pear",5)

    How can I combine these? I believe Excel allows up to 7 IF arguments?

    Thank you!

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,162

    Re: 3 IF functions

    Like this:

    =IF(C17="Apple",(C19-1)*B49,IF(C17=3,"Orange",IF(C18=3,"Pear",5)))

    However, that's not going to cover all eventualities!
    Last edited by AliGW; 12-20-2016 at 01:21 PM.
    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
    04-18-2015
    Location
    NY
    MS-Off Ver
    Mac 2011
    Posts
    13

    Re: 3 IF functions

    Thank you, but I am still getting an error message that there's too many arguments.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,783

    Re: 3 IF functions

    Try it like this:

    =IF(C17="Apple",(C19-1)*B49,IF(C17=3,"Orange",IF(C18=3,"Pear",5)))

    Hope this helps.

    Pete

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,244

    Re: 3 IF functions

    Check your formula: did you copy/paste ?

  6. #6
    Registered User
    Join Date
    04-18-2015
    Location
    NY
    MS-Off Ver
    Mac 2011
    Posts
    13

    Re: 3 IF functions

    This worked, thank you!

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,162

    Re: 3 IF functions

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 6
    Last Post: 03-17-2015, 01:35 AM
  2. VBA – User Designed Functions (UDF) - Renaming array functions
    By hbsonly in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-03-2013, 02:00 PM
  3. Replies: 1
    Last Post: 02-10-2012, 05:27 PM
  4. AddIn With custom functions - Functions not working in Excel2010
    By brum17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2011, 08:25 AM
  5. Replies: 0
    Last Post: 11-15-2007, 05:24 AM
  6. Replies: 2
    Last Post: 07-13-2006, 11:30 PM
  7. Replies: 0
    Last Post: 06-05-2006, 05:20 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