Does anyone have a duplicate code formula ?

mercmannick

Well-known Member
Joined
Jan 21, 2005
Messages
730
does anyone have a duplicates code..


i have a sheet, everyday i have to run thru a column dat sort and delete the duplicate rows,

Also have another daily sheet,

if cell c4=c3 make blank if not dont touch...

Any help would be appreciated

Merc
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi, see the menu data/advanced filter
check unique

if you are getting further with this, let's see how to use it in code
can you post some sample data and the expected result

if cell c4=c3 make blank if not dont touch...
can you provide some clarification; what should be made blank ?

kind regards,
Erik
 
Upvote 0
erik, that works great.............

But i dont want it to delete the entire row only the dupicate from the cell beneath,

i need to have the complete list but minus the duplicates in one certain col,
but on each diffrent sheet that i use, the column differs, so was wondering if a duplicate macro could be made that runs off of the active cell method ?


thanks

Merc
 
Upvote 0
Upvote 0
Merc,

Do you really want to delete this data? Or do you simply want to make the presentation a little cleaner? Take a look at the example here (scroll down just a smidge).

If you really do want to delete the data, then fine, Erik or I can show you how to do that, no problem. But if you are really only trying to clean up how it looks, you may find that you want to leave the data in place for other requirements. The gist of the message I xref'd here is to use Conditional Formatting to format duplicates as White font on White fill.

Please advise as to your true requirements. And, as Erik has already mentioned, if you could use COLO's utility to post some sample data (both what you've got now and what your desired outcome would look like) folks here will get you where you wanna go a lot more quickly...
 
Upvote 0
yes just want to make it more visually readable.........


Thnx guys

but i also would like to learn how to create a duplicate macro as well for other tasks

Merc
 
Upvote 0
S70WV.XLS
DEFGHIJKLM
5
6MaterialPeggedRqmtPgRReqmntsOp.LatestStrtLatestFin.WorkcntMRP
7A57140701000102132661120.6H15023.06.200523.06.2005S70AA30B02
8A57140701000102132661122.6H10023.06.200523.06.2005S70AH11B02
9D2754000400046129841120.192H10008.07.200515.07.2005S70AD14B02
10D2754000400046129841121.9H5007.07.200508.07.2005S70AH11B02
11D2754000400046129841120.204H25015.07.200515.07.2005S70AA21B02
12D2754000400046129841120.6H20015.07.200515.07.2005S70AA30B02
13D2754000400046129842121.9H5014.07.200515.07.2005S70AH11B02
14D2754000400046129841121.008H10008.07.200515.07.2005S70AD14B02
15D2754000400046129841120.592H15015.07.200515.07.2005S70AA44B02
16D2754000400046129842120.192H10015.07.200522.07.2005S70AD14B02
17D2754000400046129842120.204H25022.07.200522.07.2005S70AA21B02
18D2754000400046129842120.6H20022.07.200522.07.2005S70AA30B02
19D2754000400046129842120.592H15022.07.200522.07.2005S70AA44B02
20D2754000400046129842121.008H10015.07.200522.07.2005S70AD14B02
21D2754000400046129843120.425H10021.07.200528.07.2005S70AD14B02
22D2754000400046129843121.9H5020.07.200521.07.2005S70AH11B02
23D2754000400046129843120.204H25028.07.200528.07.2005S70AA21B02
S70WV
 
Upvote 0
merc,

do you want to get this ?
Map1.xls
DEFGHIJKLM
7A57140701000102132661120.6H15023.06.200523.06.2005S70A;A30B02
82.6100S70A;H11
9D27540004000461298410.19210008.07.200515.07.2005S70A;D14
101.95007.07.200508.07.2005S70A;H11
110.20425015.07.200515.07.2005S70A;A21
120.6200S70A;A30
13461298421.95014.07.2005S70A;H11B0
test


then select the entire range D7 ==> X#
menu format
conditional format
formula
=D7=D6
font: white
ENTER

this should display the way you see here

kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top