+ Reply to Thread
Results 1 to 3 of 3

if statement is not workin - says too many arguments

  1. #1
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation if statement is not workin - says too many arguments

    Hello

    I could use someone's help

    Im trying to put an if statement that says

    if (cell) is less than -5, (cell) greater than 5 say met
    if (cell) is greater than -5, (cell) and less than 5 say not met

    =IF(AND(T3<-5,T3>5),"NOT MET","MET",IF(AND(T3>-5,T3<5),"NOT MET","MET"))


    I've tried to put one ) and 2 )) - I'm not sure what I'm doing wrong

    thanks
    Jenn

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: if statement is not workin - says too many arguments

    maybe this

    =IF(AND(T3<-5,T3>5),"NOT MET",IF(AND(T3>-5,T3<5),"NOT MET","MET"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: if statement is not workin - says too many arguments

    welcome to the forum, Jenn.

    1. when you say less than -5, is -6 one eg? and greater than 5 would be 6? if so, you should be using OR and not AND. because -6 is not less than -5 AND greater than 5.

    2. how about the exact value of -5 and 5? you didnt give a scenario for that

    3. if you noticed when typing your formulas, there is a screen tip which bolds the part you are supposed to key. when you key up to this point:
    =IF(AND(T3<-5,T3>5),"NOT MET","MET",
    the screen tip does not have any more fields for you to key after the comma. that's where you know your formula is already wrong.

    if i were to assume -6 OR 6 is considered MET, -5 to 5 (the number -5 & 5 itself too) is NOT MET, then:
    =IF(OR(T3<-5,T3>5),"NOT MET","MET")

    if the cell is a blank, it is considered as 0. so it is between -5 to 5. if you don't wish to show a MET and show as blank instead,
    =IF(T3="","",IF(OR(T3<-5,T3>5),"NOT MET","MET"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Minimum Statement (More Arguments have been specified...)
    By Tommy1005 in forum Excel General
    Replies: 12
    Last Post: 03-27-2014, 07:20 PM
  2. Formulas not workin
    By lensol in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 10:11 AM
  3. Going around IF statement with too many arguments
    By Amber12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2013, 01:46 PM
  4. Qty of arguments in an IF statement
    By TRICKD in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 05:15 AM
  5. IF( statement, 125 arguments
    By Von1981 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2010, 04:11 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