+ Reply to Thread
Results 1 to 3 of 3

Running numbers and comparing them

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    Finland
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Question Running numbers and comparing them

    Hello! I'm trying to figure out a formula how to add running numbers for values and then compare them in my spreadsheet.

    Here's a sample what I'm after:

    Please Login or Register  to view this content.
    I'm looking for the formula for the last column. Numbers in brackets are just for a hint. I know you can sort columns by highest/lowest value and then use ROW function but that would add 2 extra columns I don't want. Also same values should have the same running number (1st, 1st, 3rd, 4th...), but that's not mandatory.
    Last edited by TimoteiM; 01-11-2017 at 04:01 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,598

    Re: Running numbers and comparing them

    Assuming your data is in A1:C5, put this formula in D1:

    =RANK(B1,$B$1:$B$5,0)-RANK(C1,$C$1:$C$5,1)

    then copy down. In your real file, adjust the ranges to suit the amount of data that you have.

    Hope this helps.

    Pete

    EDIT: Just noticed that you are from Finland - you may need to use semicolons ( ; ) instead of the commas ( , ).

  3. #3
    Registered User
    Join Date
    01-11-2017
    Location
    Finland
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Running numbers and comparing them

    Thanks a lot man! That was just the right formula I was looking for.

+ 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. Comparing Numbers
    By pomper in forum Excel General
    Replies: 1
    Last Post: 03-14-2015, 10:39 PM
  2. Comparing numbers
    By tpollock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2014, 08:53 AM
  3. [SOLVED] Comparing range and return top running numbers
    By arconite in forum Excel General
    Replies: 6
    Last Post: 12-25-2012, 10:27 PM
  4. [SOLVED] Excel 2007 : Comparing a row of numbers to a range of numbers
    By egavasrg in forum Excel General
    Replies: 1
    Last Post: 08-19-2011, 09:55 PM
  5. Comparing two cells and running a macro as the result
    By jbar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2011, 10:31 AM
  6. Comparing row numbers
    By Axcelerate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2010, 10:39 AM
  7. Comparing numbers in lists/columns of numbers
    By Onesimus in forum Excel General
    Replies: 3
    Last Post: 12-15-2007, 02:19 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