Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Remove multiple references

I have a song list I need to purge down such as -

Abba Chiquita SFG058
Abba Duck & Run SC3244
Abba Dancing Queen DK041
Abba Dancing Queen SFABBA001
Abba Dancing Queen SC8765
Abba Take A Chance On Me CBEP74

where Dancing Queen is repeated with a different disk code, I want to delete
further references (row D3 thru D4). The intent is to import the results into
a publishing program (InDesign).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Remove multiple references

Assuming you have song names (like Dancing Queen) in Col A and you want to
retain the first row with that name only then do this;
IMP: Do make a copy before trying this

1. Enter this in D1 or first row of the first unused col
= 1 + SUMPRODUCT(--($A$1:$A$100=A1)) - SUMPRODUCT(--(A1:$A$100=A1))
2. Change 100 to the last row in your data set
3. Copy it down to the last row in your data set
4. Filter on ' not equal' to 1 for the col with this formula as it will
enter 1 against first occurrence of a song name
5. Delete the visible rows

"printerdan" wrote:

I have a song list I need to purge down such as -

Abba Chiquita SFG058
Abba Duck & Run SC3244
Abba Dancing Queen DK041
Abba Dancing Queen SFABBA001
Abba Dancing Queen SC8765
Abba Take A Chance On Me CBEP74

where Dancing Queen is repeated with a different disk code, I want to delete
further references (row D3 thru D4). The intent is to import the results into
a publishing program (InDesign).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Remove multiple references

Sub tester()
lrow = Range("B" & Rows.Count).End(xlUp).Row
For i = lrow To 2 Step -1
Cells(i, 2).Select
If ActiveCell.Value < ActiveCell.Offset(-1).Value Then
Else
ActiveCell.ClearContents
End If
Next i
End Sub

"printerdan" wrote:

I have a song list I need to purge down such as -

Abba Chiquita SFG058
Abba Duck & Run SC3244
Abba Dancing Queen DK041
Abba Dancing Queen SFABBA001
Abba Dancing Queen SC8765
Abba Take A Chance On Me CBEP74

where Dancing Queen is repeated with a different disk code, I want to delete
further references (row D3 thru D4). The intent is to import the results into
a publishing program (InDesign).

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
Transposing Multiple Cell References to Multiple Values (NOT total LinLin Excel Discussion (Misc queries) 7 November 11th 07 10:57 PM
Transposing Multiple Cell references as Multiple Values LinLin Excel Discussion (Misc queries) 1 November 8th 07 01:21 AM
Multiple references Christine Thackeray Excel Worksheet Functions 2 September 11th 07 11:22 PM
How do I put multiple references in the same cell? MosesX8 Excel Worksheet Functions 3 June 10th 05 09:49 PM
Multiple References pjonathan Excel Discussion (Misc queries) 1 February 16th 05 03:09 AM


All times are GMT +1. The time now is 02:47 AM.

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"