#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Sorting Text Data

Hi,

I need to prepare a template where, user copies data in one sheet, out of
which in another sheet, I need a particular one column gets
automatically-sorted alphabetically (without user using "Sort Function").
Just like using LARGE formula for digital data.

I am using Excel 2007. I am avoiding use of any Macros for this.

Pleasse help.


Regards,
Pritesh
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Sorting Text Data

You can alphbetize by formula. Say in A1 thru A10 we have:

cat
dog
mouse
bat
hat
rat
fat
mat
zort
tre

In B1 enter the array formula:

=IF(ROWS(A$1:A1)<=COUNTA($A$1:$A$100),INDEX($A$1:$ A$100,MATCH(SMALL(IF($A$1:$A$100<"",COUNTIF($A$1: $A$100,"<"&$A$1:$A$100)),ROWS(A$1:A1)),IF($A$1:$A$ 100<"",COUNTIF($A$1:$A$100,"<"&$A$1:$A$100)),0)), "")

You must enter this with CNTRL-SHFT-ENTER rather than just the ENTER key.

Then copy B1 down to B10. In B1 thru B10 we now see:

bat
cat
dog
fat
hat
mat
mouse
rat
tre
zort

Adjust the $A$100 if you have more than 100 items to sort.
--
Gary''s Student - gsnu200902


"Pritesh" wrote:

Hi,

I need to prepare a template where, user copies data in one sheet, out of
which in another sheet, I need a particular one column gets
automatically-sorted alphabetically (without user using "Sort Function").
Just like using LARGE formula for digital data.

I am using Excel 2007. I am avoiding use of any Macros for this.

Pleasse help.


Regards,
Pritesh

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Sorting Text Data

Hi,

You have used so many formulas within this-one, so I can't really understand
how, BUT IT APPEARS TO BE WORKING. So Thanks for sending it & helping.

Regards,
Pritesh

"Gary''s Student" wrote:

You can alphbetize by formula. Say in A1 thru A10 we have:

cat
dog
mouse
bat
hat
rat
fat
mat
zort
tre

In B1 enter the array formula:

=IF(ROWS(A$1:A1)<=COUNTA($A$1:$A$100),INDEX($A$1:$ A$100,MATCH(SMALL(IF($A$1:$A$100<"",COUNTIF($A$1: $A$100,"<"&$A$1:$A$100)),ROWS(A$1:A1)),IF($A$1:$A$ 100<"",COUNTIF($A$1:$A$100,"<"&$A$1:$A$100)),0)), "")

You must enter this with CNTRL-SHFT-ENTER rather than just the ENTER key.

Then copy B1 down to B10. In B1 thru B10 we now see:

bat
cat
dog
fat
hat
mat
mouse
rat
tre
zort

Adjust the $A$100 if you have more than 100 items to sort.
--
Gary''s Student - gsnu200902


"Pritesh" wrote:

Hi,

I need to prepare a template where, user copies data in one sheet, out of
which in another sheet, I need a particular one column gets
automatically-sorted alphabetically (without user using "Sort Function").
Just like using LARGE formula for digital data.

I am using Excel 2007. I am avoiding use of any Macros for this.

Pleasse help.


Regards,
Pritesh

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Sorting Text Data

=IF(ROWS(A$1:A1)<=COUNTA($A$1:$A$100),INDEX($A$1:$ A$100,MATCH(SMALL(IF($A$1*:$A$100<"",COUNTIF($A$1 :$A$100,"<"&$A$1:$A$100)),ROWS(A$1:A1)),IF($A$1:$A $*100<"",COUNTIF($A$1:$A$100,"<"&$A$1:$A$100)),0) ),"")

Hello,

That formula does not work for numbers and not for "text numbers"
different from '1.

It is not necessary to use an array formula if you are willing to use
a helper column:
http://sulprobil.com/html/sorting.html

Regards,
Bernd
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
Sorting Text Data Pritesh[_2_] Excel Discussion (Misc queries) 0 September 7th 09 10:23 AM
Sorting 4 rows of data and changing the text of the highest value. AbeAbeAbe Excel Discussion (Misc queries) 2 February 17th 07 05:54 PM
help with text sorting jjcx Excel Worksheet Functions 6 August 1st 06 03:58 PM
Sorting Text sparx Excel Discussion (Misc queries) 0 June 19th 06 09:47 PM
sorting of text confusded Excel Discussion (Misc queries) 1 July 27th 05 04:58 PM


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