+ Reply to Thread
Results 1 to 4 of 4

how to rank with an updating list

Hybrid View

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    78

    how to rank with an updating list

    list.xlsxlist.xlsx


    If I keep adding items to column A and B what's the best way for me to make the ranks move with it? should I use a if function? and just set it up for the entire column?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to rank with an updating list

    =IF(B2="","",RANK(B2,$B$2:$B$50,0)) range as long as you are likely to need
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: how to rank with an updating list

    Once I copy a lot of these if functions my excel file balloons into a monster over 15mb and becomes unusable. The problem is I have long if functions and also will need to copy down many of them to allow the user to enter lots of data. Is there some kind of option in VBA to update the spreadsheet for this?

  4. #4
    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: how to rank with an updating list

    Add 2 buttons(1 for eatch macro) and use the function when you really need it.

    Sub macro1()
    Range("E2").Select
        ActiveCell.FormulaR1C1 = "=IF(RC[-3]="""","""",RANK(RC[-3],R2C2:R10000C2,0))"
        Range("E2").Select
        Selection.AutoFill Destination:=Range("E2:E10000"), Type:=xlFillDefault
        Range("E2:E10000").Select
    End Sub
    Sub clear()
    
        Range("E2:E10000").Select
        Selection.ClearContents
    End Sub
    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.

+ 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: 01-22-2013, 06:11 PM
  2. List box values updating but text is not updating
    By Shane of the Newbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2011, 11:53 AM
  3. Auto list updating not updating
    By khank in forum Excel General
    Replies: 8
    Last Post: 05-28-2011, 11:03 PM
  4. Rank in order that List appears
    By 00Able in forum Excel General
    Replies: 1
    Last Post: 01-19-2011, 09:57 PM
  5. List teams in rank order from list
    By HuskerBronco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2009, 10:03 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