Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am a novice in Macro programming.
Can you please tell me how to sort numeric data in a row and return the column numbers in the descending order of numbers Ex- A B C 15 10 14 i need to get the numbers 1,3,2 as the result. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way
Source numbers assumed in A1:C1 (assuming no ties in the numbers) Put in A2: =MATCH(LARGE(1:1,COLUMN()),1:1,0) Copy across to C2 -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- " wrote: I am a novice in Macro programming. Can you please tell me how to sort numeric data in a row and return the column numbers in the descending order of numbers Ex- A B C 15 10 14 i need to get the numbers 1,3,2 as the result. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On reflection, perhaps just use RANK might suffice ..
With source numbers in A1:C1 Put in A2, copied to C2: =RANK(A1,$A$1:$C$1) Ties in the source numbers, if any, will be given duplicate rankings, with skipped subsequent rankings -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In case of ties...
A5, copied across: =MATCH(LARGE($A$1:$C$1-COLUMN($A$1:$C$1)/10^5,COLUMNS($A$5:B5)),$A$1:$C$1 -COLUMN($A$1:$C$1)/10^5,0) ....confirmed with CONTROL+SHIFT+ENTER. Hope this helps! In article .com, wrote: I am a novice in Macro programming. Can you please tell me how to sort numeric data in a row and return the column numbers in the descending order of numbers Ex- A B C 15 10 14 i need to get the numbers 1,3,2 as the result. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Domenic" wrote:
=MATCH(LARGE($A$1:$C$1-COLUMN($A$1:$C$1)/10^5,COLUMNS($A$5:B5)),$A$1:$C$1 -COLUMN($A$1:$C$1)/10^5,0) Perhaps the part: COLUMNS($A$5:B5) in the array above should be replaced by: COLUMNS($A$1:A1) <g ? -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for catching my mistake, Max! I'm glad someone is paying
attention... <VBG If entering the formula in A5, and copying it across, the formula should be as follows... =MATCH(LARGE($A$1:$C$1-COLUMN($A$1:$C$1)/10^5,COLUMNS($A$5:A5)),$A$1:$C$1 -COLUMN($A$1:$C$1)/10^5,0) In article , Max wrote: "Domenic" wrote: =MATCH(LARGE($A$1:$C$1-COLUMN($A$1:$C$1)/10^5,COLUMNS($A$5:B5)),$A$1:$C$1 -COLUMN($A$1:$C$1)/10^5,0) Perhaps the part: COLUMNS($A$5:B5) in the array above should be replaced by: COLUMNS($A$1:A1) <g ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert rows based on specific value | Excel Worksheet Functions | |||
Index? Match? Function to sort and return value fr diff column in | Excel Worksheet Functions | |||
duplicate numbers in column a and diferent values in b | Excel Worksheet Functions | |||
Return SEARCHED Column Number of Numeric Label and Value | Excel Worksheet Functions | |||
Excel ? Do Not Call Table | Excel Worksheet Functions |