+ Reply to Thread
Results 1 to 2 of 2

if between function as a single argument

  1. #1
    Registered User
    Join Date
    04-07-2008
    Posts
    2

    if between function as a single argument

    Is there a non-macro "in between" function that uses only one argument?

    eg.

    If A1 is greater than 10 and less than 50, return YES.

    I know I can use:

    if(and(A1>10,A1<50),"yes","no")
    or
    if((A1>10)*(A1<50),"yes","no)

    however, in both situations it uses 2 arguments and there is a limit to 8 argumnets per function - I am trying to put together a longer formula

    Any ideas? All help is appreciated.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by options
    Is there a non-macro "in between" function that uses only one argument?

    eg.

    If A1 is greater than 10 and less than 50, return YES.

    I know I can use:

    if(and(A1>10,A1<50),"yes","no")
    or
    if((A1>10)*(A1<50),"yes","no)

    however, in both situations it uses 2 arguments and there is a limit to 8 argumnets per function - I am trying to put together a longer formula

    Any ideas? All help is appreciated.
    I'm not sure what you mean by there being a limit. There's a limit of 7 to the number of IF() statements you can use in a single formula. Is this what you're getting at?

    If you're devising a formula that contains more than 7 IF() functions then there is likely to be another approach, probably involving the (in my opinion) superior and more flexible SUMPRODUCT() functions.

    What's the structure of the longer formula?

    Rgds

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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