+ Reply to Thread
Results 1 to 3 of 3

Two different result between a range of values

  1. #1
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Question Two different result between a range of values

    Hello everyone

    I need a formula to give me the result of "1" between the numbers over 12 and less than 15. And number "2" over 15.

    An example: If my cell is...

    12 = 0
    12.00001 = 1
    14.99999 = 1
    15 = 2

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Two different result between a range of values

    You didnt say what you want to do with numbers <12, so try try this...

    =if(and(a1>12,a1<15),1,if(a1>=15,2,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-16-2004
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: Two different result between a range of values

    Yes I'm sorry. Any values less than twelve equals to zero.

    And thanks for the formula. All worked fine.
    Last edited by gpktm; 09-22-2013 at 08:56 PM.

+ 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. [SOLVED] Can't LOOKUP a value in a range and get a result from column 1 of the range
    By bobboy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-26-2013, 09:06 PM
  2. Replies: 0
    Last Post: 02-22-2011, 01:56 PM
  3. Replies: 11
    Last Post: 05-31-2009, 05:41 PM
  4. Replies: 13
    Last Post: 09-29-2008, 10:36 AM
  5. Macro to insert formula result into range with zero values in cell
    By JPS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2005, 01:05 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