Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

Have a list of items, 285, 285-A, 36-B, 23-D, 36 and need to sort

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Challenged - 16 Aug 2006 19:06 GMT
Have a database and need to subtotal by a column that has no set number of
characters, some with "-" and a letter after, some just whole numbers.  I
want to sort by the whole number and ignore the "-".  Ideas?
Marcelo - 16 Aug 2006 19:08 GMT
Hi Challenged,

on an auxiliar column use this formula (assuming that the list are in column
D)

=if(iserror(find("-",d7)),d7,left(d7,find("-",d7,1)-1)&right(d7,len(d7)-find("-",d7)))
sort by this column

hth
Signature

regards from Brazil
Thanks in advance for your feedback.
Marcelo

> Have a database and need to subtotal by a column that has no set number of
> characters, some with "-" and a letter after, some just whole numbers.  I
> want to sort by the whole number and ignore the "-".  Ideas?
Marcelo - 16 Aug 2006 19:16 GMT
or

=substitute(d7,"-","")
hth
Signature

regards from Brazil
Thanks in advance for your feedback.
Marcelo

> Have a database and need to subtotal by a column that has no set number of
> characters, some with "-" and a letter after, some just whole numbers.  I
> want to sort by the whole number and ignore the "-".  Ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.