+ Reply to Thread
Results 1 to 4 of 4

How to rank for each year in a single drag

  1. #1
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    How to rank for each year in a single drag

    Dear all

    Please help to provide me a formula to rank the values in each year. I have two columns one year and another values. I would like to rank the value for each year. If there is missing values, it should not consider as zero. It should not count it.

    Thank you in advance for your time.

    Thanks
    Shams
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: How to rank for each year in a single drag

    Look at the attached. Here is what I did. I filtered your Column B to exclude the non-numerical values and the blanks. I then copied the filtered results to columns H and I. I then put this formula in I2 and copied it down. =SUMPRODUCT(--($H$2:$H$10009=H3)*(I3<$I$2:$I$10009))+1

    See if the attached meets your needs.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: How to rank for each year in a single drag

    Dear alansidman

    Thank you very much for email and the solution. Isnt it possible to rank them without doing this? Since I have a large data set and I need to merge them with others. It would be good if we can solve this without sorting them.

    Any advice. Can we write a code that if the blank is empty "" then it should ignore the cell and rank the next value. Something like this.

    Not sure??

    Thanks
    Shams

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: How to rank for each year in a single drag

    If I were to provide VBA code, would you find it acceptable to delete all rows that did not have valid data? ie. Remove blanks and the lines that indicate that data could not be provided. I did note several of those? If that works for you, then I will try to replicate the results.

+ 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. Disable drag to copy function on single workbook only
    By greyscale in forum Excel General
    Replies: 2
    Last Post: 01-20-2013, 06:59 PM
  2. [SOLVED] Calculate Fiscal Year FY of a single date
    By Steve N. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2012, 12:40 PM
  3. Replies: 6
    Last Post: 03-26-2012, 05:12 PM
  4. Replies: 0
    Last Post: 03-21-2012, 10:18 AM
  5. Drag and drop a formula down a single column
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2010, 02:31 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