Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
baroen
 
Posts: n/a
Default How to ignore parens in a sort?


I'm trying to figure out how to ignore a parentheses, i.e. (, in an
alphabetical list so the the data is sorted using the first letter
inside the paren. For example; ant, (ape), bear, (bat), etc. is the
correct order but the Excel default sorts the names with parens as
numbers and returns (ape), (bat), ant, bear.
Thanks


--
baroen
------------------------------------------------------------------------
baroen's Profile: http://www.excelforum.com/member.php...o&userid=28824
View this thread: http://www.excelforum.com/showthread...hreadid=485750

  #2   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default How to ignore parens in a sort?

You could create a 'helper' column that has the text sans parens, sort the
two columns together based just on the order of the helper column, then
delete the helper. If the list begins in A2, then in B2 you'd enter the
formula =SUBSTITUTE(SUBSTITUTE(A2,"(",""),")",""). Autofill that through
column B, then sort based on column B.

"baroen" wrote:


I'm trying to figure out how to ignore a parentheses, i.e. (, in an
alphabetical list so the the data is sorted using the first letter
inside the paren. For example; ant, (ape), bear, (bat), etc. is the
correct order but the Excel default sorts the names with parens as
numbers and returns (ape), (bat), ant, bear.
Thanks


--
baroen
------------------------------------------------------------------------
baroen's Profile: http://www.excelforum.com/member.php...o&userid=28824
View this thread: http://www.excelforum.com/showthread...hreadid=485750


  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default How to ignore parens in a sort?

b,

My Excel add-in Special Sort will sort on the data occurring
after a specific character. (suffix sort)

It has over 20 different sort methods not readily available in Excel.
They include sorting by... numbers only,
color, prefix, middle, suffix, random, reverse,
no articles, dates, dewey decimal, length and others.

Works and looks somewhat like the Excel sort utility.
Comes with a Word.doc install/use file.

It is - free - just email me and ask for it.
Remove XXX from my email address.

Jim Cone
San Francisco, USA
XX


"baroen" wrote...
I'm trying to figure out how to ignore a parentheses, i.e. (, in an
alphabetical list so the the data is sorted using the first letter
inside the paren. For example; ant, (ape), bear, (bat), etc. is the
correct order but the Excel default sorts the names with parens as
numbers and returns (ape), (bat), ant, bear.
Thanks
--
baroen
  #4   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default How to ignore parens in a sort?

Make a helper column
C1: =TRIM(SUBSTITUTE(SUBSTITUTE(A1,"(",""),")",""))

the Trim isn't really necessary,
Make a helper column in this case C based on Column A
and sort on Column C instead of 1 as your major sort field,
you probably want to use Ctrl+A to select all cells (ctrl+shift+spacebar on Excel 2003).
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"baroen" wrote in message
...

I'm trying to figure out how to ignore a parentheses, i.e. (, in an
alphabetical list so the the data is sorted using the first letter
inside the paren. For example; ant, (ape), bear, (bat), etc. is the
correct order but the Excel default sorts the names with parens as
numbers and returns (ape), (bat), ant, bear.
Thanks


--
baroen
------------------------------------------------------------------------
baroen's Profile: http://www.excelforum.com/member.php...o&userid=28824
View this thread: http://www.excelforum.com/showthread...hreadid=485750



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
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


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