+ Reply to Thread
Results 1 to 5 of 5

multiple And / else in and If statement

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    North Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    multiple And / else in and If statement

    This has been driving me mad, can someone help please?
    I am looking for a formula that will display 1 of 4 possible outcomes this is what I'm after.

    If A1 >1 but <10 then "Blue" else if A1 >9 but less than 100 then "Red" else if A1 >99 and less than 200 then "Green" If A1 >199 then "black"

    Can anyone help please?
    thanks
    (oh, I'm using Excel 2010)

    Bwi.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: multiple And / else in and If statement

    Hello and welcome to the forum.

    Try something like this:

    =LOOKUP(A1,{1,10,100,200},{"Blue","Red","Green","Black"})

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

    Re: multiple And / else in and If statement

    If you are looking for a multiple IF solution (also referred to as a Nested IF), then you could do it this way:

    =IF(A1<10,"Blue",IF(A1<100,"Red",IF(A1<200,"Green","Black")))

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-24-2012
    Location
    North Wales
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: multiple And / else in and If statement

    Thanks great, thanks

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: multiple And / else in and If statement

    Glad we could help.

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

+ 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: 3
    Last Post: 06-16-2016, 08:09 PM
  2. IF Statement with Multiple Conditions and Multiple True/False Results
    By ellesutgr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2015, 04:51 PM
  3. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  4. [SOLVED] Multiple IF statement
    By robertguy in forum Excel General
    Replies: 8
    Last Post: 05-21-2015, 11:23 AM
  5. Replies: 7
    Last Post: 08-11-2014, 12:05 PM
  6. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  7. IF statement using multiple variables to give multiple outcomes
    By stujordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2009, 06:46 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