Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lana
 
Posts: n/a
Default Hiding Non-Duplicated Entries


Dear All!!!

It's very urgent, please help!!!
I've got to edit duplicated entries but not remove them - how can I
hide NON-duplicated rows?

Resulting column should contain even number of duplicated entries.

Thanks in advance!!!
Lana


--
Lana


------------------------------------------------------------------------
Lana's Profile: http://www.excelforum.com/member.php...nfo&userid=880
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #2   Report Post  
Lana
 
Posts: n/a
Default


I've created two columns with formulas that display 1 if preceding or
following rows are identical, and in the next column 1 for those who
have ... etc

anyone with a more elegant option?


--
Lana


------------------------------------------------------------------------
Lana's Profile: http://www.excelforum.com/member.php...nfo&userid=880
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #3   Report Post  
dominicb
 
Posts: n/a
Default


Good afternoon Lana

This code will do the trick and hide any row containing unique data.
To use it select the column of data and run the macro.

Sub HideUnique()
On Error Resume Next
Set UsrRng = Selection
For Each UsrCel In UsrRng
Dupd = UsrCel.Address
Dupd = UsrRng.Find(What:=UsrCel, After:=UsrCel, LookIn:=xlValues, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Address
If Dupd = UsrCel.Address Then UsrCel.EntireRow.Hidden = True
Next UsrCel
End Sub

I've deliberately kept the code fairly simple, so if you are using this
for a huge range (your post doesn't state) and it seems a little slow
you could turn off the screen updating
(Application.ScreenUpdating=False) and automatic calculation
(Application.Calculation = xlCalculationManual) at the start of the
code and turn them back on at the end (Application.ScreenUpdating=True,
Application.Calculation = xlCalculationAutomatic).

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #4   Report Post  
greg7468
 
Posts: n/a
Default


Hi,
you could also use a helper column with

=IF(COUNTIF($A$1:$A$1000,A1)1,"DUPLICATE","")

Then autofilter to show cells with duplicate in them.

HTH.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #5   Report Post  
Lana
 
Posts: n/a
Default


Now that I've sorted and edited them, how can i replace old values?

Table 1: sorted data with duplicates:

__ col A __Col B
1 w DupText
2 m DupText
------------------
Table 2: I've changed the entries:

__ col A __Col B
1 w DupText123
2 m DupText456
------------------
Table 3:

__ col A __Col B
1 w DupText .........
2 m DupText .........
3 m DupText
4 m DupText
5 w DupText
6 w DupText


*Now, what I need is replace values form the third table by those
amended. Lookup won't work because there can be tens identical values.*


I'm writing a bulk macro (not really excellent a programmer yet ;o)))
), but maybe someone has an option?
Thank you both for your help, the deadlines are just unreasonable this
time and I'm messed up ;o)))

x
Lana


--
Lana


------------------------------------------------------------------------
Lana's Profile: http://www.excelforum.com/member.php...nfo&userid=880
View this thread: http://www.excelforum.com/showthread...hreadid=383155



  #6   Report Post  
dominicb
 
Posts: n/a
Default


Hi Lana

Sorry, but I don't quite understand what you are trying to say. Could
you clarify what it is you need?

Thanks

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #7   Report Post  
Lana
 
Posts: n/a
Default


I thought I was being so organized :(

I'm lost, don't know how to explain


--
Lana


------------------------------------------------------------------------
Lana's Profile: http://www.excelforum.com/member.php...nfo&userid=880
View this thread: http://www.excelforum.com/showthread...hreadid=383155

  #8   Report Post  
dominicb
 
Posts: n/a
Default


Lana

If you're really stuck and your spreadsheet isn't highly confidential
you can e-mail it to me with an explanation of what you need if that
would help...

DominicB



--
dominicb
------------------------------------------------------------------------
dominicb's Profile:
http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=383155

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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
Merge, update, and add only new entries into a list from other she Chab Excel Worksheet Functions 1 May 1st 05 11:05 PM
Find & delete duplicated entries. Ken G. Excel Discussion (Misc queries) 1 April 21st 05 07:00 AM
How do I change multi-line entries to single line entries in Exce. CPOWEREQUIP Excel Worksheet Functions 3 April 14th 05 12:38 AM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM


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