+ Reply to Thread
Results 1 to 8 of 8

Nested if statement

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Atlantic Beach, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Nested if statement

    I need to assign tiers based on a range of scores. Not sure how to set this up in a nested if statement. Sample spreadsheet is attached.

    Score Tier
    >=100 T1
    80-99 T2
    60-79 T3
    40-59 T4
    0-39 T5
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Nested if statement

    hi pamc, welcome to the forum. change the values in A2:A6 to show just the Max score needed to obtain the tier. so:
    A2: ?
    A3: 99
    A4: 79
    A5: 59
    A6: 39

    then in E2:
    =INDEX($B$2:$B$6,MATCH(D2,$A$2:$A$6,-1))
    if there's no maximum value for A2, then use this for A2:
    =MAX(D2:D6)

    and if you do not want to replace your values in A2:A6, then have this table separately

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nested if statement

    Hi

    Try the VLOOKUP see the attached file.
    Attached Files Attached Files
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    Atlantic Beach, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Nested if statement

    Thank you both! Works either way.

    Kevin, what does the 1 do in the range lookup? I've only used true or false before.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nested if statement

    Hi pamc

    1 = TRUE
    0 = FALSE

  6. #6
    Registered User
    Join Date
    03-07-2013
    Location
    Atlantic Beach, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Nested if statement

    Hi. That's kinda what I thought, just wanted to make sure.

    Thanks again for your help!

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Nested if statement

    pamc

    No problem, thanks for the feed back.

  8. #8
    Registered User
    Join Date
    02-26-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Nested if statement

    I have a question in this case. what we need to do if i want to place the result in an order with their values

    I got all T1,T2----T6 alongwith the d column that contains values. i want to do them in order
    all t1 values positioned at top then t2 values and so on. so that i can group them . please obliged me in this scenario

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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