Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default excel row sorting problem

hI

I have got some information laid out like follows

col1 col2 col3 col4
1 name 1 ytr ytr
1 name 1 ytr ytr
1 name 1 ytr ytr
2 name 2 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
3 name 3 ytr ytr
3 name 3 ytr ytr

i need to get it like this -

col1 col2 col3 col4
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
1 name 1 ytr ytr
3 name 3 ytr ytr

another approach would be ok to make it so there are no
duplicates in line 1 but it must only be in line 1
therefor the above list would go like

col1 col2 col3 col4
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr

thanks - I hope you get what i mean

ann
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default excel row sorting problem

in column 5 put in a formula like (note the location of the $)

D1: =Countif($A$1:A1,A1)

then drag fill down column 5

Then sort the data on column 5

--
Regards,
Tom Ogilvy

"Terry Thomas" wrote in message
...
hI

I have got some information laid out like follows

col1 col2 col3 col4
1 name 1 ytr ytr
1 name 1 ytr ytr
1 name 1 ytr ytr
2 name 2 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
3 name 3 ytr ytr
3 name 3 ytr ytr

i need to get it like this -

col1 col2 col3 col4
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr
1 name 1 ytr ytr
3 name 3 ytr ytr

another approach would be ok to make it so there are no
duplicates in line 1 but it must only be in line 1
therefor the above list would go like

col1 col2 col3 col4
1 name 1 ytr ytr
2 name 2 ytr ytr
3 name 3 ytr ytr

thanks - I hope you get what i mean

ann



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 in Excel 2007 problem courtenaylambert Excel Worksheet Functions 1 March 27th 10 02:03 AM
Excel Sorting Problem Eric Weller Excel Discussion (Misc queries) 1 July 27th 06 06:03 PM
excel within row sorting problem Ian Excel Discussion (Misc queries) 1 September 14th 05 01:01 AM
sorting problem in excel 2000 inenewbl Excel Discussion (Misc queries) 1 June 13th 05 04:48 AM
Problem sorting in Excel Kat Excel Discussion (Misc queries) 2 January 19th 05 03:29 PM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"