+ Reply to Thread
Results 1 to 4 of 4

Trying to do an IF Statement for 3 different things

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    KNoxville, TN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Trying to do an IF Statement for 3 different things

    Hello there, I am trying to create 3 different IF statements.

    Here is what I am trying to accomplish:

    If cell J5 is Less than 2.33330 mark it as "L"
    If cell J5 is between 2.33331 and 3.66659 than mark it as "M"
    If Cell J5 is greater than 3.6666 than mark it as "H"

    Here are the individual functions I've gotten to work, it's just when I combine them it doesn't:

    =IF(J5<=2.3333,"L")
    =IF(AND(J5>2.3334,J5<3.66659),"M")
    =IF(J5>=3.6666,"H")

    And here is the 1 I put it altogether with:

    =IF(J5<=2.3333,"L"),IF(AND(J5>2.3334,J5<3.66659),"M"),IF(J5>=3.6666,"H")

    If someone has some suggestions or an easier way to accomplish this, that would be great!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Trying to do an IF Statement for 3 different things

    You can do it like this:

    =IF(J5<=2.3333,"L",IF(J5<=3.66659,"M","H"))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    KNoxville, TN
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to do an IF Statement for 3 different things

    You are amazing! Thank you so much.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Trying to do an IF Statement for 3 different things

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. I see things have not improved much here....
    By JapanDave in forum The Water Cooler
    Replies: 19
    Last Post: 02-02-2016, 06:30 AM
  2. Correct syntax in If Then statement to make 2 things happen if condition met
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 12:55 PM
  3. SQL type things in VBA
    By grvs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2010, 05:17 AM
  4. Why are things moving around?
    By C Holmes in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-04-2010, 09:20 AM
  5. Looking up things in another workbook
    By EmmaG1959 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-29-2007, 11:58 AM
  6. Need help with many things :D
    By Swoosh983 in forum Excel General
    Replies: 14
    Last Post: 02-13-2007, 05:30 PM
  7. two things at once?
    By evanzo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2005, 09:15 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