+ Reply to Thread
Results 1 to 5 of 5

Help with an IF formula returning multiple values

  1. #1
    Registered User
    Join Date
    05-22-2015
    Location
    Utah
    MS-Off Ver
    2013
    Posts
    2

    Unhappy Help with an IF formula returning multiple values

    Hello all thanks for any help I get.

    Here is the scenario

    I want cell b2 to display a text based on the input of b1.


    If b1= (any number between 1-6 display Low, if it displays any number between 8-10 display medium, if it displays any number between 12-25 display high )

    I've simplified it but here is the syntax i currently have:
    =IF(ISNUMBER(SEARCH("1",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("2",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("3",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("4",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("5",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("6",Table2[Risk Number])),"Low",IF(ISNUMBER(SEARCH("8",Table2[Risk Number])),"Moderate",IF(ISNUMBER(SEARCH("9",Table2[Risk Number])),"Moderate",IF(ISNUMBER(SEARCH("10",Table2[Risk Number])),"Moderate",IF(ISNUMBER(SEARCH("12",Table2[Risk Number])),"High",IF(ISNUMBER(SEARCH("15",Table2[Risk Number])),"High",IF(ISNUMBER(SEARCH("16",Table2[Risk Number])),"Extreme",IF(ISNUMBER(SEARCH("20",Table2[Risk Number])),"Extreme",IF(ISNUMBER(SEARCH("25",Table2[Risk Number])),"Extreme",""))))))))))))))

    The problem is anything past 9 displays Low. I.e 10-19 reads as 1, 20-29 reads as 2. How do I resolve this?

    Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-22-2015
    Location
    isle of Wight
    MS-Off Ver
    office
    Posts
    5

    Re: Help with an IF formula returning multiple values

    =IF(F2<7,"LOW",(IF(F2<11,"medium",(IF(F2<26,"high

    Try this idea although I forgot about extreme but you get the idea

  3. #3
    Registered User
    Join Date
    05-22-2015
    Location
    Utah
    MS-Off Ver
    2013
    Posts
    2

    Re: Help with an IF formula returning multiple values

    That will work just fine.

    Thank you!.

  4. #4
    Registered User
    Join Date
    05-22-2015
    Location
    isle of Wight
    MS-Off Ver
    office
    Posts
    5

    Re: Help with an IF formula returning multiple values

    Your welcome

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Help with an IF formula returning multiple values

    Another way to do this, which will give you more flexibility (if you decide to change the ranges, you wont need to change the formulas), would be to create a small table (see below) and then use a vlookup. Something like this...

    D
    E
    9
    20
    Extreme
    10
    0
    Low
    11
    7
    Moderate
    12
    11
    High
    13
    16
    Extreme

    E9=VLOOKUP(D9,$D$10:$E$13,2,1)
    This is what you would put in column G
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Two criteria Index Match on multiple sheets returning multiple values
    By Joak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2014, 10:03 AM
  2. [SOLVED] Formula selection - Vlookup? Match? Pivot table? Returning multiple values
    By enigmaes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2012, 12:21 PM
  3. Returning multiple values in multiple cells based upon one input
    By ccoonsk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 10:01 AM
  4. Replies: 6
    Last Post: 03-24-2011, 06:19 AM
  5. Replies: 3
    Last Post: 10-10-2005, 01:05 PM

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