+ Reply to Thread
Results 1 to 4 of 4

Having trouble doing what I want with IF statements.

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Having trouble doing what I want with IF statements.

    I'm trying to get cell A1 to display, HERO if cell B1 is <50, VETERAN if cell B1 =>50 but <100, EPIC if cell B1 is =>100.

    I can get it to work with 2 values (if <, if >) but I cant figure out how to make it work with all the values.

    Thanks for your time everyone!

  2. #2
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Having trouble doing what I want with IF statements.

    Try this in cell A1.

    =IF(B1<50,"HERO",IF(AND(B1>=50,B1<100),"VETERAN",IF(B1>=100,"EPIC"))
    Last edited by BeachRock; 10-21-2012 at 02:19 AM.
    -------------
    Tony

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Having trouble doing what I want with IF statements.

    Try this formula in A1 cell

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


    ---

    Sixthsense


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    10-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Having trouble doing what I want with IF statements.

    @ BeachRock: It worked with an extra ")" at the end. Thanks!

    @ Sixthsense : It worked with out changes. Thanks!

    Thanks to both of you for your replies. I see why mine were not working now. I was not nesting correctly. Thank you both again for your time! + rep to both of you.
    Last edited by poisontoast; 10-21-2012 at 03:21 AM.

  5. #5
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: Having trouble doing what I want with IF statements.

    Glad to help. Please make sure to mark this thread as solved. It's at the top of the thread in the Thread Tools menu.

+ 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