+ Reply to Thread
Results 1 to 12 of 12

Rank and Nested IF Formula - Help Please!

  1. #1
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Rank and Nested IF Formula - Help Please!

    Hello,

    I have this formula that ranks a series of test scores:

    Please Login or Register  to view this content.
    How do I adjust it with further IFs so that the formula looks for a value in Column S then Column T if Column L (or S) is N/A? Columns S and T are test scores taken on earlier dates. If all three columns have N/A then my Rank Column should show N/A. Thanks!

  2. #2
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Rank and Nested IF Formula - Help Please!

    Hi,

    Can you attached sample excel file for the same.

    Imran.

  3. #3
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Rank and Nested IF Formula - Help Please!

    OK. Here's the sheet. How do I adjust the formula in the last column (Rank 1) with further IFs so that the formula looks for a value in Column S then Column T if Column L (or S) is N/A? Columns S and T are test scores taken on earlier dates. If all three columns have N/A then my Rank 1 Column should show N/A. Thanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Rank and Nested IF Formula - Help Please!

    Here is a formula that will return "N/A" if the values in the corresponding cells of columns L, S and T all contain "N/A":
    Please Login or Register  to view this content.
    I am not sure that it accomplishes what you want however since it now returns a value of 1 when "N/A" is in column L. If that is not the desired result then if you could manually input a few of the expected values for column AB, Rank 1, perhaps someone will be able to give you a formula to do what you need.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Rank and Nested IF Formula - Help Please!

    Thanks so much for the reply, J. It's not quite what I need though. Here's the sheet again with a couple of values so that it hopefully makes more sense.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Rank and Nested IF Formula - Help Please!

    I think that I understand the logic, if there is a number in L2 find how many scores in L2:L200 are greater than that number and add one. If L2 doesn't have a number and R2 does then count how many scores in R2:R200 are greater than that number and add one. If L2 doesn't have a number and R2 doesn't have a number and S2 does then count how many scores in S2:S200 are greater than that number and add one. I have a formula that does that, however the results are not what is stated on the spreadsheet (i.e. AA3 is 46 not 41). I am going to post the formula anyway, and hopefully you can see what is causing the discrepancy:
    Please Login or Register  to view this content.
    Let me know if you find the discrepancy or if I have misinterpreted the query.

  7. #7
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Rank and Nested IF Formula - Help Please!

    That almost works—thanks very much! I do appreciate the help. Your interpretation is right apart from the fact that the scores in columns R and S need to be ranked in relation to those in L. What I'm trying to do is stream students into classes by test scores. The problem for me is where I don't have a student's latest score; then I need to look at a previous test (Col R) or even the one before that (Col S) to put the student into the right class. Thanks!
    Last edited by hokkaido19; 02-20-2016 at 10:47 PM.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Rank and Nested IF Formula - Help Please!

    This formula gets the expected result, 41, in row 3, however it gives a different result for row 13, 145 as opposed to 138.
    Please Login or Register  to view this content.
    Looking at the scores in column L the lowest score, of the 144 students that have a numeric score, is 197 and Student 13's score in column S is 180, therefore a rank of 145 seems correct to me, if I understand the logic of:
    scores in columns R and S need to be ranked in relation to those in L
    Let me know if you have any questions.

  9. #9
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Rank and Nested IF Formula - Help Please!

    Thanks very much: your formula works superbly. One more thing, however, is that I want to put the scores from Col L, Col R, and Col S into one column at the end. I have this formula that works for Col L then Col R:

    Please Login or Register  to view this content.
    But I don't know the syntax for adding Col S scores. It should work on the logic of your ranking formula. Thanks!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Rank and Nested IF Formula - Help Please!

    Try this formula:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  11. #11
    Registered User
    Join Date
    01-13-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    77

    Re: Rank and Nested IF Formula - Help Please!

    Thanks very much! I see how the formula works now that you've done it for me.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Rank and Nested IF Formula - Help Please!

    You're Welcome and thank you for the feedback. If you haven't already please take a moment and mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a nice day.

+ 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: 02-08-2016, 06:55 PM
  2. [SOLVED] forcing a rank on 1 through 5 (no dups) using the rank formula in Excel
    By denver1717 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2015, 08:28 AM
  3. [SOLVED] RANK formula cannot rank duplicates
    By unpluggedmusic in forum Excel General
    Replies: 5
    Last Post: 10-13-2012, 12:59 PM
  4. Formula to Rank and populate values base don Rank
    By Excel Dumbo in forum Excel General
    Replies: 3
    Last Post: 10-09-2012, 02:02 AM
  5. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  6. Using Nested RANK functions
    By tuph in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-11-2006, 12:20 AM
  7. Nested IF's with Rank Problem
    By exutable in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2005, 08:50 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