Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sort and column numbers

i am a novice in programming and am facing the following problem.

A B C
21 20 30

A B C are my columns and 21, 20, 30 the data i have. i need to sort the
data in descending; and i want to also find out the column numbers in
that order (in this case, 3, 1, 2).

thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default sort and column numbers

Your question is a little confusing to be honest. If you sort the data
descending then the first column will contain the highest number and
not the third column. To sort from right to left highlight the row or
range to sort and choose Data - Sort from the menu under options
select the "Sort left to right" option under orientation then choose
Descending in the sort dialog.

What are you actually trying to accomplish?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sort and column numbers

actually i am trying to write a macro for the same. I want column
numbers because data is variable and i have to use column numbers for
linking to other tables

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default sort and column numbers

I still don't really know what you want to actually do. Are you
looking to create an array containing the column numbers and the
values? If you fully explain what you actually want it will be easier
to get an answer. How will the column numbers be used? Will they be
used in code or in some kind of lookup?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default sort and column numbers


Look at the Rank Excel worksheet function.

Edmund

wrote in message
oups.com...
i am a novice in programming and am facing the following problem.

A B C
21 20 30

A B C are my columns and 21, 20, 30 the data i have. i need to sort the
data in descending; and i want to also find out the column numbers in
that order (in this case, 3, 1, 2).

thanks.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 253
Default sort and column numbers

Hi,

Maybe the RANK function is what your are looking for
Regards
Jean-Yves

wrote in message
oups.com...
i am a novice in programming and am facing the following problem.

A B C
21 20 30

A B C are my columns and 21, 20, 30 the data i have. i need to sort the
data in descending; and i want to also find out the column numbers in
that order (in this case, 3, 1, 2).

thanks.



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
Sort Not Working on Column of Numbers therube Excel Worksheet Functions 4 February 9th 09 01:45 PM
how can i sort on a perticular column for odd and even numbers [email protected] Excel Worksheet Functions 4 November 23rd 08 08:09 PM
how to sort a column of Randomly selected numbers? Khoshravan Excel Worksheet Functions 8 July 14th 07 08:16 PM
how do I sort a column mixed with odd and even numbers .. ? Istvan Excel Discussion (Misc queries) 1 March 10th 07 04:02 AM
sort and return column numbers [email protected] Excel Worksheet Functions 5 May 16th 06 11:39 AM


All times are GMT +1. The time now is 01:16 PM.

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"