+ Reply to Thread
Results 1 to 7 of 7

Removing certain numbers from a ranked column

  1. #1
    Registered User
    Join Date
    11-03-2020
    Location
    germany
    MS-Off Ver
    365
    Posts
    46

    Removing certain numbers from a ranked column

    I want to remove " 1 " from a ranked column.

    Scores are recorded in column A and using the formula " =RANK(A3;$A$2:$A$17:1) in column B3, these scores are change to "positions" in column B where the lowest scores get highest position.

    The problem is that when no score is recorded, a zero is put in column A. This equates to the lowest score and in column B, its given a position of " 1 ".

    Is there a better formula to use or edit the formula that I have used.

    Many thanks from a complete newbie.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Removing certain numbers from a ranked column

    Change your formula to this in B3:

    =IF(A3=0,"",RANK(A3,$A$2:$A$17,1))

    (changes in red), then copy down. If you want to retain the 1 for the lowest valid number (and adjust others accordingly), you can use this:

    =IF(A3=0,"",RANK(A3,$A$2:$A$17,1)-(COUNTIF(A:A,0))*1)

    You may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-03-2020
    Location
    germany
    MS-Off Ver
    365
    Posts
    46

    Re: Removing certain numbers from a ranked column

    Hi there and thx for the quick reply however I have tried your suggestion with and without the changes to colons and semi colons, and neither seems to work.
    I place your formula into cell A3 and then drag down but it only drags the formula down.

    Perhaps it would be better to adjust the formula that produces the "0" in column A
    Last edited by j0SAND; 11-03-2020 at 11:26 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Removing certain numbers from a ranked column

    In B3, copied down.

    =IF(A3=0,"",COUNTIFS($A$3:$A$17,">0",$A$3:$A$17,"<"&A3)+1)

    See sheet for ; and , punctuation...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Removing certain numbers from a ranked column

    I did say to change your formula in B3. You only had numbers in column A of your sample file - no formulae.

    Pete

  6. #6
    Registered User
    Join Date
    11-03-2020
    Location
    germany
    MS-Off Ver
    365
    Posts
    46

    Re: Removing certain numbers from a ranked column

    Hi Glen, thx for your reply and answer.

    This has certainly got rid of all the unwanted zeros. I first copied your text formula....did not work so then I open your attachment and used that formula.

    Why are some with colons and others semi colons ?

    Kindest regards
    John

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Removing certain numbers from a ranked column

    It's because you are German. You use a decimal comma, we use a decimal point. You use a ; as an argument separator in Excel, we use a , So there are major differences across the EU. UK and IRL use . and , everyone else uses , and ;

    It is a reason why I do NOT like pasting formulae into the body of the thread, But we get criticised if we do not show formulae in our replies....

    You just can't win...

    Thanks for the feedback. Keep safe, keep well.

+ 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. reoccurring numbers ranked 1-5
    By amilcarc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-20-2020, 11:38 AM
  2. [SOLVED] Why are these two different numbers ranked the same position?
    By The_Snook in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-06-2019, 12:01 PM
  3. Removing duplicates based on multiple (ranked) criteria
    By leecartwright89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2014, 02:04 PM
  4. Ranked column of numbers (1 up to 15) which come up as 1,2,3,3,5,6,7,8,9,9
    By Securitysports in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-04-2013, 01:53 AM
  5. [SOLVED] Getting Excel 2007 to list the cell numbers of the top five ranked numbers in a column.
    By Securitysports in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2013, 11:42 AM
  6. [SOLVED] Choosing highest ranked value in a row text and numbers
    By Rjwilliams93 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-22-2013, 02:45 AM
  7. [SOLVED] Removing numbers out of a column.
    By KKaye in forum Excel General
    Replies: 4
    Last Post: 09-08-2012, 07:57 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