award descending points based on time closest to zero either + or -

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,602
Office Version
  1. 365
Platform
  1. Windows
is there a formula for this, or even some VBA ?

Column A has a list of times, shown mm:ss, I want to 'award' points in relation to the times being closest to zero.
The points awarded would start with the time closest to zero being either a + OR - time.
The points start at the total number of entries, so in this example there are 5


So the time closest to zero in below being either a + or - is 0.01 so that is awarded 5 points
the next time closest to zero in below being either a + or - is -0.04 so that is awarded 4 points, and so on



So I would like a formula or VBA to plot the awarded points into column B as described above.

-12:301
2:343
0:015
-0:044
3:232

Thanks in advance you clever lot :)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello,

You could use the following array formula to rank by descending order ...

Code:
=SMALL(ABS($A$2:$A$6),ROW($A$2:$A$6)-ROW($A$2)+1)

Hope this will help
 
Upvote 0
I managed t get the following formula to work (using correct ranges)

=SUMPRODUCT(--(ABS(F$2:F$14)>ABS(F2)))+1


however is it possible to adapt again so that includes 'tied numbers'


for example : numbers in first column and rank in second column and because the number 4 is shown twice in column one the rank skips from 2 to 4 and excludes 3


42
94
115
11
42
 
Upvote 0

Forum statistics

Threads
1,216,731
Messages
6,132,394
Members
449,725
Latest member
Enero1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top