View Single Post
  #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