+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Greater than =2, Less than =1

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    Midland, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    3

    Greater than =2, Less than =1

    I need to create a formula that if the value that I enter is less than 15 the number would be "1", but if the value was greater that 15 the number would be "2". can anyone help? I'm just missing something.

    thanks

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Greater than =2, Less than =1

    Hello and welcome to the Forum

    Maybe:
    Please Login or Register  to view this content.
    abousetta
    Last edited by abousetta; 08-23-2011 at 09:44 PM. Reason: Added a welcome statement for new comer

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Greater than =2, Less than =1

    Another option will be to use Lookup:

    Something like:

    Please Login or Register  to view this content.
    If you have just a few options then I would go with the IF statement. If there are a lot options then I would go with Lookup.

    Hope this helps.

    abousetta

  4. #4
    Registered User
    Join Date
    08-23-2011
    Location
    Midland, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Greater than =2, Less than =1

    wow thanks for the quick reply.
    that answered one question, but I realize that what I need is if the value is 0 than the number is 0, if <15 the number is 1, if > than the number is 2.

  5. #5
    Registered User
    Join Date
    08-23-2011
    Location
    Midland, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Greater than =2, Less than =1

    solved it with the lookup code!!! thanks

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Greater than =2, Less than =1

    Hi again,

    If statements are easier to comprehend and they can be nested.

    For example:

    Please Login or Register  to view this content.
    and so on... up to 7 nested IF statements.

    Lookup gives you a bit more flexibility with larger combinations, but they need to be sorted alpha-numerically.

    Hope this helps.

    abousetta

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Greater than =2, Less than =1

    Glad I could be of help. If you are satisfied with the results, then please mark the thread as SOLVED. Also reputation (scales) is always appreciated.

    Good luck.

    abousetta

+ 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