+ Reply to Thread
Results 1 to 6 of 6

Formula with 6 outcomes from data in one cell

  1. #1
    Registered User
    Join Date
    09-17-2019
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    11

    Question Formula with 6 outcomes from data in one cell

    Good Afternoon,
    Here is my first post, I hope i can Make myself Understood,
    I have six possible results 1,2,3,4,5,6
    If a cell A1 is between 97 and 100, result must be 1
    If the same cell is between 85 and 96.99, result must be 2
    If the same cell is between 70 and 84.99, result must be 3
    If the same cell is between 50 and 69.99, result must be 4
    If the same cell is between 20 and 49.99, result must be 5
    If the same cell is between 0 and 19.99, result must be 6

    I have the formula =IF(A1>=97, "number 1","number 2")

    But That is good for a boolean result, how can I adapt that for 6 results? Thankyou

    and

    =IF(A1>=97, "number 1", IF(A1>=85, "Number2", IF(A1>50, "Number 3", "Number 4")))

    But I would need it to be

    =IF(A1=100 or is greater than 97), "Number1", OR IF(A1=85 but less than 96.99), "Number2", OR IF(A1=70 but less than 84.99), "Number3", OR IF(A1=50 but less than 69.99), "Number4", OR IF(A1=20 but less than 49.99), "Number5", OR IF(A1<20), "Number6"


    Thanks for your help.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Formula with 6 outcomes from data in one cell

    Try:=IFERROR(LOOKUP(A1,{0;20;50;70;85;97;100},{"number 1";"number 2";"number 3";"number 4";"number 5";"number 6";"number 7"}),"Other number")
    Click the * to say thanks.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,029

    Re: Formula with 6 outcomes from data in one cell

    How about
    ="Number "&LOOKUP(A1,{0,20,50,70,85,97},{6,5,4,3,2,1})

  4. #4
    Registered User
    Join Date
    09-17-2019
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    11

    Thumbs up Re: Formula with 6 outcomes from data in one cell

    HTML Code: 
    Works Great, I just had to change "number 1" to "number 6;"number 2" to "number 5" etc as the result were backwards, but perfect!!
    HTML Code: 
    Works Great
    Thankyou.
    I had actually got it to work like this too
    HTML Code: 
    But Not As Clean as your options

    Thankyou for you help Im sure Ill have some more questions very soon, related to this sheet

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,029

    Re: Formula with 6 outcomes from data in one cell

    Glad to help & thanks for the feedback

  6. #6
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Formula with 6 outcomes from data in one cell

    Insert module in excel vba with the following function:
    Please Login or Register  to view this content.

+ 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] Same formula 2 different outcomes
    By OGAngryHulk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2018, 10:24 AM
  2. Replies: 4
    Last Post: 01-22-2017, 11:50 PM
  3. Replies: 6
    Last Post: 03-30-2016, 03:38 PM
  4. If or formula help for 3 possible outcomes
    By pembr0ke in forum Excel General
    Replies: 7
    Last Post: 02-08-2016, 07:41 AM
  5. Replies: 3
    Last Post: 01-17-2014, 07:42 PM
  6. [SOLVED] IF Formula with 3 outcomes
    By adamheon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2013, 10:13 AM
  7. Varying outcomes dependant on Cell Data (named range)
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2011, 10:30 PM

Tags for this Thread

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