Results 1 to 4 of 4
  • Thread Tools
  1. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IF Problem (Excel 2002)

    Hi

    I can only count 7 IF's here but Excel is complaining the there are too many arguments


    =IF(AV40>4300,AV40-BM2,"",IF(AV40>3000,AV40-BM3,"",IF(AV40>2000,AV40-BM4,"",IF(AV40>1000,AV40-BM5,"",IF(AV40>800,AV40-BM6,"",IF(AV40>430,AV40-BM7,"",IF(AV40>200,AV40-BM8,"")))))))

    Many Thanks

    Braddy
    If you are a fool at forty, you will always be a fool

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IF Problem (Excel 2002)

    Hi

    I am as my signature say a fool , too many "" ""

    Sorry to have bothered anybody

    Braddy
    If you are a fool at forty, you will always be a fool

  4. WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    10,927
    Thanks
    11
    Thanked 279 Times in 273 Posts

    Re: IF Problem (Excel 2002)

    Do you mean:
    =IF(AV40>4300,AV40-BM2,IF(AV40>3000,AV40-BM3,IF(AV40>2000,AV40-BM4,IF(AV40>1000,AV40-BM5,IF(AV40>800,AV40-BM6,IF(AV40>430,AV40-BM7,IF(AV40>200,AV40-BM8,"")))))))

    This has nothing to do with the number of IFs.

    An IF is:
    =if(condition, truepart, falsepart)

    You have:
    =if(condition, truepart, "", falsepart)

    and I removed the null...

    Note: With this type of setup I would prefer to create a table and use Vlookup. It is easier to edit later, more clear, and does not have the limit to the number of IFs (see Excel User Tip: Alternatives to Nested IF Functions for an example)

    Steve

  5. Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,924
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IF Problem (Excel 2002)

    Hi Steve

    Thanks for your reply. I realised my error soon after posting.

    Thanks for the advice I have downloaded it and see if I can put it use.


    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •