+ Reply to Thread
Results 1 to 3 of 3

ranking of numbers

  1. #1
    Forum Contributor
    Join Date
    08-03-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    120

    ranking of numbers

    Hi guys,
    I need a macro that finds me the first value and the last value in a number of series.

    For instance i have got two numbers: 0.4 and 0.7

    Then there is a series of numbers 0.6, 1, 2, 5, 0.5, 0.4, 0, 4, 0.7, 69, 33, 2, 3

    I want the macro to tell me that 0.4 comes before 0.7.

    any ideas?

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: ranking of numbers

    Are these in a single row or column? Where did the 0.4 and 0.7 come from?

    Can you post your workbook as an example so we can see how its laid out?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,052

    Re: ranking of numbers

    If your data is in A1:M1, try this...
    =RANK(0.4,A1:M1)<RANK(0.7,A1:M1)
    FALSE indicated 0.4 is before .07.

    You could also put the 0.4 and 0.7 in their own cells and reference them
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Ranking up to 15 numbers in column D Ranking skips 7 with a tie at 6 and 2
    By Securitysports in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2013, 07:11 AM
  2. Ranking numbers
    By Garbzuk in forum Excel General
    Replies: 1
    Last Post: 10-17-2011, 03:39 AM
  3. Ranking numbers
    By vioravis in forum Excel General
    Replies: 1
    Last Post: 08-11-2008, 12:10 AM
  4. Numbers used for Ranking
    By Lowkey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2005, 07:05 PM
  5. Ranking numbers by 2nd, 3rd, 4th etc
    By supermario77 in forum Excel General
    Replies: 6
    Last Post: 04-22-2005, 02:14 PM

Tags for this Thread

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