Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBW JBW is offline
external usenet poster
 
Posts: 42
Default Extract single occurence of order number from list

I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.

I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide

246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105

ideas?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extract single occurence of order number from list

You can copy your order numbers (with heading) to another sheet. Then
highlight the data and heading and click on Data | Filter | Advanced
filter and in the pop-up click on Unique records only and also Filter
to another location - specify C1. Click OK and you will have your
unique list in column C - you can delete columns A and B if you want
to.

Hope this helps.

Pete

On Sep 17, 2:14 pm, JBW wrote:
I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.

I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide

246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105

ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBW JBW is offline
external usenet poster
 
Posts: 42
Default Extract single occurence of order number from list

Ok, If I copy that one column that works beautifully, however. If I highlight
the column within the 5000row 21 column sheet and try filter in place it
changes nothing, I'm guessing this is because its looking across at the other
columns (which will all be different) and as they're all therefore unique
it's not removing any of them.

I need it to get rid of all duplicate entries of the order number in column
A regardless of the data in the other columns, and yes I need the data in the
other columns on the row that's left to remain intact.



"Pete_UK" wrote:

You can copy your order numbers (with heading) to another sheet. Then
highlight the data and heading and click on Data | Filter | Advanced
filter and in the pop-up click on Unique records only and also Filter
to another location - specify C1. Click OK and you will have your
unique list in column C - you can delete columns A and B if you want
to.

Hope this helps.

Pete

On Sep 17, 2:14 pm, JBW wrote:
I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.

I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide

246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105

ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extract single occurence of order number from list

But if the data in your other columns is all different, thus making
each row unique, which records do you want to get rid of in order to
have the unique values of order number? If it doesn't matter what is
in the 20-odd other columns, then you could use VLOOKUP in the second
sheet (i.e. the one with the unique order numbers in), and this will
bring the first matching record from the first sheet. Something like
this in B2:

=VLOOKUP(A2,Sheet1!$A$1:$U$5000,COLUMN(B1),0)

Copy across to U2, then copy B2:U2 down to the bottom of your unique
list of order numbers. This assumes that your order numbers are in
column A of the first sheet - if not then you will have to use an
INDEX/MATCH combination.

You can then fix the values in the second sheet (Edit|Paste Special)
and then delete the first sheet.

Hope this helps.

Pete

On Sep 17, 4:36 pm, JBW wrote:
Ok, If I copy that one column that works beautifully, however. If I highlight
the column within the 5000row 21 column sheet and try filter in place it
changes nothing, I'm guessing this is because its looking across at the other
columns (which will all be different) and as they're all therefore unique
it's not removing any of them.

I need it to get rid of all duplicate entries of the order number in column
A regardless of the data in the other columns, and yes I need the data in the
other columns on the row that's left to remain intact.



"Pete_UK" wrote:
You can copy your order numbers (with heading) to another sheet. Then
highlight the data and heading and click on Data | Filter | Advanced
filter and in the pop-up click on Unique records only and also Filter
to another location - specify C1. Click OK and you will have your
unique list in column C - you can delete columns A and B if you want
to.


Hope this helps.


Pete


On Sep 17, 2:14 pm, JBW wrote:
I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.


I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide


246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105


ideas?- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JBW JBW is offline
external usenet poster
 
Posts: 42
Default Extract single occurence of order number from list

wonderful, that's cracked it.

thankyou very much

"Pete_UK" wrote:

But if the data in your other columns is all different, thus making
each row unique, which records do you want to get rid of in order to
have the unique values of order number? If it doesn't matter what is
in the 20-odd other columns, then you could use VLOOKUP in the second
sheet (i.e. the one with the unique order numbers in), and this will
bring the first matching record from the first sheet. Something like
this in B2:

=VLOOKUP(A2,Sheet1!$A$1:$U$5000,COLUMN(B1),0)

Copy across to U2, then copy B2:U2 down to the bottom of your unique
list of order numbers. This assumes that your order numbers are in
column A of the first sheet - if not then you will have to use an
INDEX/MATCH combination.

You can then fix the values in the second sheet (Edit|Paste Special)
and then delete the first sheet.

Hope this helps.

Pete

On Sep 17, 4:36 pm, JBW wrote:
Ok, If I copy that one column that works beautifully, however. If I highlight
the column within the 5000row 21 column sheet and try filter in place it
changes nothing, I'm guessing this is because its looking across at the other
columns (which will all be different) and as they're all therefore unique
it's not removing any of them.

I need it to get rid of all duplicate entries of the order number in column
A regardless of the data in the other columns, and yes I need the data in the
other columns on the row that's left to remain intact.



"Pete_UK" wrote:
You can copy your order numbers (with heading) to another sheet. Then
highlight the data and heading and click on Data | Filter | Advanced
filter and in the pop-up click on Unique records only and also Filter
to another location - specify C1. Click OK and you will have your
unique list in column C - you can delete columns A and B if you want
to.


Hope this helps.


Pete


On Sep 17, 2:14 pm, JBW wrote:
I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.


I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide


246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105


ideas?- Hide quoted text -


- Show quoted text -






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extract single occurence of order number from list

You're welcome - thanks for feeding back.

Pete

On Sep 17, 5:10 pm, JBW wrote:
wonderful, that's cracked it.

thankyou very much



"Pete_UK" wrote:
But if the data in your other columns is all different, thus making
each row unique, which records do you want to get rid of in order to
have the unique values of order number? If it doesn't matter what is
in the 20-odd other columns, then you could use VLOOKUP in the second
sheet (i.e. the one with the unique order numbers in), and this will
bring the first matching record from the first sheet. Something like
this in B2:


=VLOOKUP(A2,Sheet1!$A$1:$U$5000,COLUMN(B1),0)


Copy across to U2, then copy B2:U2 down to the bottom of your unique
list of order numbers. This assumes that your order numbers are in
column A of the first sheet - if not then you will have to use an
INDEX/MATCH combination.


You can then fix the values in the second sheet (Edit|Paste Special)
and then delete the first sheet.


Hope this helps.


Pete


On Sep 17, 4:36 pm, JBW wrote:
Ok, If I copy that one column that works beautifully, however. If I highlight
the column within the 5000row 21 column sheet and try filter in place it
changes nothing, I'm guessing this is because its looking across at the other
columns (which will all be different) and as they're all therefore unique
it's not removing any of them.


I need it to get rid of all duplicate entries of the order number in column
A regardless of the data in the other columns, and yes I need the data in the
other columns on the row that's left to remain intact.


"Pete_UK" wrote:
You can copy your order numbers (with heading) to another sheet. Then
highlight the data and heading and click on Data | Filter | Advanced
filter and in the pop-up click on Unique records only and also Filter
to another location - specify C1. Click OK and you will have your
unique list in column C - you can delete columns A and B if you want
to.


Hope this helps.


Pete


On Sep 17, 2:14 pm, JBW wrote:
I have a 5000+ number list within a spreadsheet made up of 6 digit order
numbers, if an order numbers 'order' contained multiple items then the number
appears x times in the list, once per item.


I want to pivot the data, but need to extract a list of order numbers with
their relevant data from the other columns, at the moment the only way (to
me) seems to be to sort by order number and manually delete the duplicate
occurences. example of data below, actual is 20+ columns wide


246335 14/06/2007 F170656
246341 14/06/2007 F170925
246526 15/06/2007 F170770
246551 15/06/2007 F170785
246620 18/06/2007 F170993
246627 18/06/2007 F171022
246628 18/06/2007 F171023
246637 18/06/2007 F170699
246689 18/06/2007 F170785
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105
246690 18/06/2007 F171105


ideas?- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



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
how do I create and extract a random order from list in Excel? Michael Excel Discussion (Misc queries) 5 August 30th 07 08:02 AM
Assign a number each letter on list compounding occurence @ each e Nat Maxwell Excel Worksheet Functions 4 February 27th 07 09:05 PM
List all contracts that relate to a single part number Ashley Morris Excel Discussion (Misc queries) 2 May 16th 06 04:21 AM
Build a single order sheet from a multiple page material list. Ralph-novice Excel Discussion (Misc queries) 1 January 27th 06 03:06 PM
how to count occurence of numbers separated by , in a single cell kish20 Excel Worksheet Functions 3 June 10th 05 07:49 AM


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