LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Sort data in a file

Hi,

I forgot to note that the formula below is Array Entered so press
Shift+Ctrl+Enter to enter it.

Cheers,
Shane Devenshire

"Shane Devenshire" wrote in message
...
Hi,

You really need to give us more info. For example 1. which columns
control the sort order, 2. What type of data is in those columns - number
or text or dates, 3. is the data in the sort controlling column(s) unique
or can there be repeats?

You could try something like this

=INDEX(M,MATCH(ROW(C1),COUNTIF(M,"<="&M),0))

In this case I have named a single column that you want sorted M, suppose
that was A1:A100 on another sheet. You can fancy up this formula to
handle each of the columns in the data area by assigning M for the sort
column and N for the entire range, then the formula would read

=,INDEX(N,MATCH(ROW(C1),COUNTIF(M,"<="&M),0))

and you would change the last 0 to 1, 2, 3, ... to indicate the column of
the range N that you are returning.

This formula does not handle duplicates in the sort range.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Mike" wrote in message
...
I have created a worksheet that is generated by formulas which bring in
the
data from other sheets. I am unable to sort the data and I beleive it is
because of the formulas.
I copied the data to another worksheet with out the formulas and I am
able
to sort but I can't be doing that.

what can I do?


 
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
data, sort option is grayed. how to sort on a column? Steve Richter Excel Discussion (Misc queries) 1 September 25th 07 03:25 PM
Excel should let me sort the file directory when saving a file Beanee70 Excel Discussion (Misc queries) 0 March 14th 06 07:03 AM
New data will not sort with existing data from copied file Carolyn Excel Worksheet Functions 3 January 5th 06 02:11 PM
data sort is not including all columns in sort Tracy Excel Discussion (Misc queries) 1 October 4th 05 12:16 AM
How do I sort a column of data and have each data row sort accordi Oedalis Excel Discussion (Misc queries) 1 March 17th 05 11:52 PM


All times are GMT +1. The time now is 03:17 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"