+ Reply to Thread
Results 1 to 16 of 16

IF Formula

  1. #1
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Exclamation IF Formula

    Hey,

    I'm trying to do an IF formula, but with quite a lot of IFs in there. Going through it step by step it makes sense to me, however I'm getting 'You've entered too many arguments for this function'. Does anyone know how I can get this to work?

    Please Login or Register  to view this content.
    Thanks,
    Jack

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: IF Formula

    Excel 2010 and later can handle 64 nested IFs. Are you saving this in a sheet with backwards compatability (earlier versions allowed 7 or 8 nested IFs).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,656

    Re: IF Formula

    You need a lookup table to make what you are trying to do easier. Sorry, but I'm not going to try to work out by unpicking your formula what that is, so you'll need to tell us.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    Quote Originally Posted by Glenn Kennedy View Post
    Excel 2010 and later can handle 64 nested IFs. Are you saving this in a sheet with backwards compatability (earlier versions allowed 7 or 8 nested IFs).
    I've got the sheet saved as Macro Enabled, because another sheet has a macro in it?

  5. #5
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    Quote Originally Posted by AliGW View Post
    You need a lookup table to make what you are trying to do easier. Sorry, but I'm not going to try to work out by unpicking your formula what that is, so you'll need to tell us.
    Sorry, I don't quite get what you mean.

    In terms of what i'm trying to achieve.. Column C will have a category name. So dependant on what category name it is, is which IF it should use. For example.

    If C is 'Dresses' I want it to have the following conditions:

    >=30 is poor.
    >=70 is good.

    However if C is 'Knitwear' I want it to have the conditions:

    >=20 is poor.
    >=40 is good.

    Anything between these criteria I'd want to be 'middle'.

    I hope this makes sense?

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

    Re: IF Formula

    So what I think you really mean is this:

    Dresses

    <=30 = poor
    31-69 = middle
    >=70 = good

    Yes?
    Last edited by AliGW; 08-02-2016 at 12:28 PM.

  7. #7
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    Sorry yeah, so it would be like:

    <=30 = poor
    31-69 = middle
    >=70 = good

    But only if column C says dresses, I need the sheet to do this rule but dependent on which of the 13 categories is in that cell.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: IF Formula

    Your parentheses were all over the place. I'm bored right now, so I unpicked them.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    This has worked! Thank you!

    Just for clarity what are the parentheses? Were my brackets in the wrong place?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,656

    Re: IF Formula

    It may work, but it is not the most sensible way of doing things, as you have found out!

    EDIT Brackets (braces in American) = parentheses.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: IF Formula

    Parentheses = brackets. They were in the correct place for Dresses (after Middle ground). thereafter, you only had only ONE "middle ground" and a million brackets right at the end. You needed a "middle ground" and a sprinkling (4) of brackets at the end of each clothing category and only 0.5 million brackets at the end.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: IF Formula

    Quote Originally Posted by AliGW View Post
    It may work, but it is not the most sensible way of doing things, as you have found out!

    EDIT Brackets (braces in American) = parentheses.
    Like I said... I'm bored.

  13. #13
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    Hey,

    Thank you again for this, I've got another IF on the sheet which isn't working. I've tried to break it down like you have but it's just not working out.

    It needs to look for Product Group, in 'Category Lookup'. But if the Product Group in Category Lookup is Tops it needs to do two different lookups. This works, except unless it's Tops, Tops (Basic) or Tops (Bodysuits) it gives 'FALSE' instead of the lookup.

    Please Login or Register  to view this content.
    Has anyone got any ideas?

  14. #14
    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
    30,804

    Re: IF Formula

    You need the "xxxx" in the formula:

    Please Login or Register  to view this content.
    Post a sample file so we have some data to work with.

  15. #15
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Re: IF Formula

    This has worked, thank you!

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,656

    Re: IF Formula

    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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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