+ Reply to Thread
Results 1 to 13 of 13

Nested If Function

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Question Nested If Function

    Hi:

    I am trying to use the nested if statement in my spreadsheet, but keep getting an error.

    I am trying to take a value in cell H, divide it by 15, and depending on the range show a ranking between
    1 thru 5.

    What I tried:

    Please Login or Register  to view this content.
    I think I just need another (or more) pair of eyes to look at what my burned out eyes can't see. Any help would be appreciated.

    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Nested If Function

    Perhaps..

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If Function

    Try

    =MATCH(H2/15,{0,50,100,150,200})

  4. #4
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Nested If Function

    I think you miss ) on the red one
    If(AND((h2/15)>100, (h2/15)<=149.9,3)
    If(And (h2/15)>150,(h2/15)<=199.9,4)

    For this I think you not need "AND"
    If(And(h2/15>200,5)))
    Click (*) if you received helpful response.

    Regards,
    David

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Nested If Function

    Thank you all for quick response!

    @Fotis: still getting error with that. I played around with the parentheses and still nothing. Thank you though!
    @Jonmo: that appears to work. Thank you!
    @Sdch: still got an error with the parentheses manipulation. It could very well be that my eyes are seriously in need of a break. This is a massive spreadsheet that is essentially a database. Thank you though!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If Function

    You're welcome.

  7. #7
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Nested If Function

    Eh, I got too excited, Jonmo! The cell is not updating when I change the calculations in the H cells

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If Function

    Post a few examples of the values in H2, and your expected results based on those values.

    Perhaps you could post an actual workbook

  9. #9
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Nested If Function

    Example.xlsx

    Here's an example file. For every "solution percent" I need the ranking
    based on 15%.

    Thank you and let me know if there is anything else I should clarify.

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If Function

    You didn't metion anything about percentages in your post..

    50 Percent is NOT greater than 49.9

    100 Percent = 1
    50 Percent = 0.5

    Try
    =MATCH(H2/15,{0,0.5,1,1.5,2})

  11. #11
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Nested If Function

    Thank you, Jonmo! That was it. I apologize.

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Nested If Function

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Nested If Function

    You're welcome.

+ 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] Nested Function With Division - Receiving #VALUE! Function Error
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 01:16 PM
  2. nested MATCH function within the INDEX function
    By thechoosenonesdream in forum Excel General
    Replies: 4
    Last Post: 10-25-2012, 03:55 PM
  3. [SOLVED] Nested AND function within IF function is only addressing logical1 but not logical2
    By betic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2012, 09:17 AM
  4. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  5. Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 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