Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Itsy
 
Posts: n/a
Default Sorting numbers with brackets


Hi - Hope someone can help.

I have a set of numbers, eg

00012
00013(2)
00014
00010(2)

I need to be able to sort these, ignoring the numbers in brackets. At
the moment, the numbers with brackets appear at the end of the list,
and this is causing me problems as I need the numbers themselves to be
in order, but I still need the brackets to stay there.

I have tried changing the format of the column, but cant get there.


Any advice/help welcome

Thanks


--
Itsy
------------------------------------------------------------------------
Itsy's Profile: http://www.excelforum.com/member.php...o&userid=26005
View this thread: http://www.excelforum.com/showthread...hreadid=393660

  #2   Report Post  
Max
 
Posts: n/a
Default

One play to try ..

Assuming the data is in col A, from row1 down

Put in B1:
=IF(ISERROR(LEFT(A1,SEARCH("(",A1)-1)),A1,LEFT(A1,SEARCH("(",A1)-1))
Copy down

Then sort both cols A & B, by col B (ascending or descending)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
Sample files at: http://savefile.com/projects/236895
xdemechanik
---
"Itsy" wrote in message
...

Hi - Hope someone can help.

I have a set of numbers, eg

00012
00013(2)
00014
00010(2)

I need to be able to sort these, ignoring the numbers in brackets. At
the moment, the numbers with brackets appear at the end of the list,
and this is causing me problems as I need the numbers themselves to be
in order, but I still need the brackets to stay there.

I have tried changing the format of the column, but cant get there.


Any advice/help welcome

Thanks


--
Itsy
------------------------------------------------------------------------
Itsy's Profile:

http://www.excelforum.com/member.php...o&userid=26005
View this thread: http://www.excelforum.com/showthread...hreadid=393660



  #3   Report Post  
Itsy
 
Posts: n/a
Default


This works perfectly.

Thanks Max - I would never have got there!!!

Cheers :)


--
Itsy
------------------------------------------------------------------------
Itsy's Profile: http://www.excelforum.com/member.php...o&userid=26005
View this thread: http://www.excelforum.com/showthread...hreadid=393660

  #4   Report Post  
bigwheel
 
Posts: n/a
Default

Formatting as text worked for me, I ended up with:

00010(2)
00012
00013(2)
00014



"Itsy" wrote:


Hi - Hope someone can help.

I have a set of numbers, eg

00012
00013(2)
00014
00010(2)

I need to be able to sort these, ignoring the numbers in brackets. At
the moment, the numbers with brackets appear at the end of the list,
and this is causing me problems as I need the numbers themselves to be
in order, but I still need the brackets to stay there.

I have tried changing the format of the column, but cant get there.


Any advice/help welcome

Thanks


--
Itsy
------------------------------------------------------------------------
Itsy's Profile: http://www.excelforum.com/member.php...o&userid=26005
View this thread: http://www.excelforum.com/showthread...hreadid=393660


  #5   Report Post  
Max
 
Posts: n/a
Default

Glad to hear it worked for you !
You're welcome
--
Rgds
Max
xl 97
---
Singapore, GMT+8
Sample files at: http://savefile.com/projects/236895
xdemechanik
---


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 alphanumeric numbers maurice.centner Excel Discussion (Misc queries) 2 May 6th 05 03:00 AM
Sorting Numbers bcboy4ca Excel Discussion (Misc queries) 1 April 21st 05 07:58 PM
Negative Numbers in Brackets - HELP! Hélène Excel Discussion (Misc queries) 21 February 18th 05 11:08 PM
Sorting when some numbers have a text suffix confused on the tundra Excel Discussion (Misc queries) 5 December 18th 04 11:19 PM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 08:33 PM


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