+ Reply to Thread
Results 1 to 12 of 12

automatically change the range of cells that are to be ranked

  1. #1
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    automatically change the range of cells that are to be ranked

    Is there a way of automatically changing the range of cells that are to be ranked. Every time I use this program the range is different. I manually have to change the range to suit the number of participants.

    =IF(M5="","-",(IF(OR(M5="e",M5="s",M5="r",M5="w",N5="e",N5="s",N5="r",N5="w",O5="s",O5="r",O5="w",O5="e",P5="w",P5="r",P5="e",P5="w",Q5="r",Q5="r",Q5="w",Q5="E",Z5="E",Z5="w",Z5="ret",),"-",RANK(AE5,$AE$5:$AE$23,1))))

    Any help would be appreciated.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: automatically change the range of cells that are to be ranked

    Are you saying you need the AE5:AE23 to be dynamic?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: automatically change the range of cells that are to be ranked

    Hi Jeffery
    I'm unsure of what you mean by dynamic. If it means that the next time I use my program the range could be from AE7:AE35, yep I'm saying dynamic would be the right way to go.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: automatically change the range of cells that are to be ranked

    Ok then, the rank part you can update to...

    =RANK(AE5,$AE$5:INDEX($AE:$AE,MATCH(9.99999999999999E+307,AE:AE)),1)

    Note: Sorry just noted you want both the first half and last half of the range to change.

    Is this right?
    Last edited by jeffreybrown; 10-21-2012 at 08:45 PM.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: automatically change the range of cells that are to be ranked

    Hello clovelly,

    What is the condition to check Start & End cells? you said, "next time I use my program the range could be from AE7:AE35" So how are you defining STart cell must be AE7 : End must be AE37? What is the condition? based on certain values or number of non blank cells etc...
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: automatically change the range of cells that are to be ranked

    hello again Jeffrey
    Yes I would need both start and finish ranges to alter. If you have a solution that would be great. I don't understand just how your solution works.
    Thanks for your prompt reply
    Greg

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: automatically change the range of cells that are to be ranked

    Hi Greg,

    Can you give an answer for post #5 which will help in the crafting of a solution?

  8. #8
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: automatically change the range of cells that are to be ranked

    hi Guys
    Each time we run a competition we have no idea on the number of entries in each section, therefore definite start and finish cells are not possible.
    At an event we can have anything up to 360 + competitors in anyone of 13 different sections. To make things run quicker and easier for the scorers I have created a data entry page with all of the competitors listed in numerical order. Each section follows on from the previous section, with 3 empty rows between sections.

  9. #9
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: automatically change the range of cells that are to be ranked

    Could you please attach a dummy file with desired output? Remove all confidential data, if you have. Just use some sample data with your data layout.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  10. #10
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: automatically change the range of cells that are to be ranked

    hello Haseeb
    I just tried to attach a copy for you, but for some reason it didn't work. I will try again.
    It should be attached now.
    The column in question is AJ

    I just thought - Each section has a maximum that we can cater for. If I allow for 50 competitors in each section, this would give us a definite starting and finishing point for each section.
    Can a formula be developed that will ignore enpty cells. ie if only 40 competitors enter we have 10 empty cells, what do we do to remove these from the range to be ranked?

    Thank you for the time you are giving me. I appreciate it greatly.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: automatically change the range of cells that are to be ranked

    Try this in Aj5,

    Please Login or Register  to view this content.
    Then copy down in each group. Must have heading Score in each group's AK column.

  12. #12
    Registered User
    Join Date
    01-24-2012
    Location
    australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: automatically change the range of cells that are to be ranked

    Haseeb
    Thank you very much. i don't understand the full working, but will give it a go within the next couple of days. I will let you know if it works after that.
    Greg

+ 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