+ Reply to Thread
Results 1 to 7 of 7

Using IF () Statement to Find Values Between

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007 and 20010
    Posts
    16

    Using IF () Statement to Find Values Between

    I'm using IF statement to determine if a condition evaluates to Short (if value<4), Medium (if value between 4 and 9), or Long (if value =>10). The "Medium" statement gives me "FALSE" instead of "Medium". I'm sure I'm doing something wrong. Here is what I did and a sample results. Thanks for your help.

    =IF(A1<4,"Short",IF(A1>=4<=9,"Medium",IF(A1>=10,"Long")))
    -----------
    LOS LOS1
    4 FALSE
    8 FALSE
    10 Long
    5 FALSE
    3 Short
    2 Short
    5 FALSE
    6 FALSE
    6 FALSE
    14 Long
    11 Long
    5 FALSE
    6 FALSE
    3 Short
    3 Short
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using IF () Statement to Find Values Between

    Hi

    Use AND statement for this.

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using IF () Statement to Find Values Between

    Maybe..

    =IF(A2<4,"Short",IF(A2<=9,"Medium",IF(A2>=10,"Long","")))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using IF () Statement to Find Values Between

    Another approach

    C2 =
    Please Login or Register  to view this content.
    See the attached file (the green cells).
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Using IF () Statement to Find Values Between

    Here is another variation:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using IF () Statement to Find Values Between

    Here's another one...

    Entered in B2 and copied down:

    =LOOKUP(A2,{0;4;10},{"Short","Medium","Long"})
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    09-30-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007 and 20010
    Posts
    16

    Re: Using IF () Statement to Find Values Between

    Thanks a lot!

+ 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: 1
    Last Post: 04-19-2013, 08:30 PM
  2. Find statement help when it doesn't find anything
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 01:34 PM
  3. [SOLVED] If Statement not finding Numeric Values but will find a string
    By mattyh555 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-27-2012, 03:05 PM
  4. Have question about using .find statement and brackets around After:= statement
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-09-2011, 03:28 PM
  5. Stopping errors when a find statement doesn't find!
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2006, 10:23 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