+ Reply to Thread
Results 1 to 9 of 9

Ranking Code Amendment With System Reserved Numbers -vba

  1. #1
    Registered User
    Join Date
    09-23-2019
    Location
    Ghana
    MS-Off Ver
    2016 32 bit and 64 bit
    Posts
    92

    Ranking Code Amendment With System Reserved Numbers -vba

    Cross posted at:
    https://www.mrexcel.com/forum/excel-...mbers-vba.html

    Reason:
    No response after three days

    I want to set some numbers as system numbers to use against the ranking as done by the code below. Currently, I am using three numbers – 100, 95 and 90. In the future, I may reduce (say 2 numbers) or increase (say 5 or more numbers). And in each scenario, the aim is to make those numbers take the top-most ranks, should those numbers fail to appear in my data as I define the rules below. So these are the rules:
    1. 100 is always ranked first. Which means that if there is no 100 in my data, then the highest number in my data is second but not first and run for numbers from 99 to 95 in my data
    2. If there are no numbers from 99 to 95 in my data, then 95 is ranked second into the system, then numbers from 94 to 91 take from 4th downwards. But if there are say 98 and 96 in my data, then after systematically using the first rank for 100(system number), then we have 2nd for 98 and 3rd for 96. In this case, the next system number, 95, which by default was supposed to be 2nd, will now shift to the 4th rank. So here, the rank shift as there are more numbers in between.
    3. If the highest ranked number in the point 2 above is 2nd, then, we assign 3rd to our system number 90. But if that is different, say 3rd, 4th etc, then we make the rank shift as described in point 2 above.


    Sample of how I want my output look like

    Please Login or Register  to view this content.
    From the above, since there were no 100, 95 and 90 in my data, those ranks were absorbed by the system, 1st for 100, 4th for 95 and 7th for 90.


    Thanks so much for your time and effort to help me out.


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,887

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Reason:
    No response after three days
    Really? I can see lots of responses over there!

    Thank you for the cross-post link. I can also see that you haven't told them that you have posted the question here - they have the same rules about cross-posting as we do.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-23-2019
    Location
    Ghana
    MS-Off Ver
    2016 32 bit and 64 bit
    Posts
    92

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Hi @ALIGW,

    I have posted the link there as well.

    And the response started after I posted about the cross post link there.

    Thanks for your concern.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,887

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Ah, yes - so you did.

    So, do you still need help or has it now been resolved over there?

  5. #5
    Registered User
    Join Date
    09-23-2019
    Location
    Ghana
    MS-Off Ver
    2016 32 bit and 64 bit
    Posts
    92

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Someone is on it, it is not solves yet.

    If you can help, I will be very glad
    Thanks

  6. #6
    Registered User
    Join Date
    09-23-2019
    Location
    Ghana
    MS-Off Ver
    2016 32 bit and 64 bit
    Posts
    92

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    It has been solved at Mr.excel.com

    Thanks to you all who took interest in this thread.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,887

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Please provide the solution here for the benefit of all, then mark the thread as solved.

  8. #8
    Registered User
    Join Date
    09-23-2019
    Location
    Ghana
    MS-Off Ver
    2016 32 bit and 64 bit
    Posts
    92

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    This is the solution to my problem from Mr.excel.com


    Please Login or Register  to view this content.
    Credit:
    Akuini
    Last edited by Kelly mort; 11-02-2019 at 05:06 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,887

    Re: Ranking Code Amendment With System Reserved Numbers -vba

    Thank you.

+ 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. Developing a code that selects a correlation based on a ranking system of data inputs?
    By dylantulsa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2019, 02:51 PM
  2. [SOLVED] Overwrite write reserved file with updated copy (same name; also write reserved)
    By Henk Stander in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 08:38 AM
  3. Sports Ranking System
    By moneymanminn1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 02:03 PM
  4. [SOLVED] Slight amendment needed to a ranking table.
    By gunnerterry in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-08-2013, 12:50 PM
  5. Need an amendment in a macro which records system time.
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2013, 12:02 AM
  6. [SOLVED] Ranking System
    By maddog9486 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2011, 08:12 AM
  7. Automated ranking system
    By liero116 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-22-2010, 06:37 PM

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