Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Order numbers from smallest to largest

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Order numbers from smallest to largest

Actually, this might look better

A...... B
16.....3
8...... 1
52..... 5
12..... 2
19..... 4

"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Order numbers from smallest to largest

Take a look at =rank() in excel's help.

Eric E wrote:

Actually, this might look better

A...... B
16.....3
8...... 1
52..... 5
12..... 2
19..... 4

"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Order numbers from smallest to largest

In B1 enter:

=RANK(A1,A$1:A$5,1) and copy down
--
Gary''s Student - gsnu201001


"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Order numbers from smallest to largest

How does this look ?
In cell B1:
=COUNT(A$1:A$5)-(RANK(A1,A$1:A$5)+COUNTIF(A$1:A1,A1))+2
and copy down till B5
Micky


"Eric E" wrote:

Actually, this might look better

A...... B
16.....3
8...... 1
52..... 5
12..... 2
19..... 4

"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Order numbers from smallest to largest

Absolutely perfect. Thanks Gary's Student and Mickey. I kept looking for
something under sort, Rank never even came to mind.

"Gary''s Student" wrote:

In B1 enter:

=RANK(A1,A$1:A$5,1) and copy down
--
Gary''s Student - gsnu201001


"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Order numbers from smallest to largest

Please remember that in case of one, or more, duplicates(!) values in your
range of data - the "simple" RANK function will not be good enough.
For example - this is what the simple formula will return:
## Rank
16 2
8 1
52 5
16 2
19 4
So..., There is NO "3rd. place"

My suggestion takes care of such cases and will return:
3
1
5
2
4
----
Micky


"Eric E" wrote:

Absolutely perfect. Thanks Gary's Student and Mickey. I kept looking for
something under sort, Rank never even came to mind.

"Gary''s Student" wrote:

In B1 enter:

=RANK(A1,A$1:A$5,1) and copy down
--
Gary''s Student - gsnu201001


"Eric E" wrote:

I have a list of random numbers in column A, in column B I would like the
number 1 to show up next to the lowest number in column A. I can't use sort
because each random number is in a group of 3 rows that I need to keep
together. I am looking for something like this, A containing the random
number, B containing the order of the numbers in column A.

A B
1 16 3
2 8 1
3 52 5
4 12 2
5 19 4

Does anyone even know if this is even possible?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
smallest to largest Mike Excel Discussion (Misc queries) 9 January 2nd 10 11:01 PM
Smallest to Largest JJ Excel Worksheet Functions 2 January 2nd 10 02:16 AM
Find Smallest and Largest. dlbeiler Excel Worksheet Functions 5 October 10th 07 02:16 PM
functions largest to smallest Sevengails Excel Worksheet Functions 2 January 3rd 07 09:37 AM
Getting the 2nd largest or smallest valuesin a range Michael Rekas Excel Discussion (Misc queries) 5 January 31st 05 07:48 AM


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"