+ Reply to Thread
Results 1 to 8 of 8

RANK formula - trouble with code configuration

  1. #1
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    RANK formula - trouble with code configuration

    Hello All,

    I have attached a sample workbook and am trying to have the RANK formula applied to the sheet - I have tried several versions of samples that I could find online and none are working - any thoughts?


    Book1.xlsx


    Best Regards,

    John

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: RANK formula - trouble with code configuration

    In D3, try

    =RANK(C3,$C$3:$C$28,1)

    and copy down. (Assuming lower is better.)
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: RANK formula - trouble with code configuration

    That worked great... Thanks so much... Is there a way to highlight the entire row of the best ranking - this code you gave provides the rank # - can the best rank be shown with # and also highlight the entire row?

    Thanks,

    John

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: RANK formula - trouble with code configuration

    Sure - select the columns of cells from one row that you want to highlight - let's say B3:D3 (with the ranking formula in D3), and choose the formula option of CF, with the formula

    =$D3=1

    and then copy the formatting from B3:D3 down to the rest of your table.

  5. #5
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: RANK formula - trouble with code configuration

    can you advise what CF is?

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: RANK formula - trouble with code configuration

    Sorry - Conditional Formatting - on the home tab of the ribbon.
    CF.JPG
    Last edited by Bernie Deitrick; 11-20-2014 at 02:25 PM.

  7. #7
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: RANK formula - trouble with code configuration

    please disregard the previous question - I figured it was conditional formating

  8. #8
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: RANK formula - trouble with code configuration

    your suggestion worked perfect - thanks so much

+ 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] Random setup configuration code for vba
    By Brammer88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2012, 04:46 PM
  2. Trouble with Ranking - Repeated Rank Results?
    By uas6060 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-13-2012, 01:22 AM
  3. Replies: 1
    Last Post: 08-23-2010, 01:27 AM
  4. Configuration Formula
    By pgazda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2008, 11:47 PM
  5. [SOLVED] Having Trouble with the RANK Function...Try LARGE or SMALL Functio
    By Jadie56 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-16-2006, 02:00 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