+ Reply to Thread
Results 1 to 2 of 2

Clear duplicate content while retaining the sheet’s formatting

  1. #1
    Registered User
    Join Date
    04-10-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    1

    Clear duplicate content while retaining the sheet’s formatting

    Hi Everyone

    I looking for a way to delete duplicate data but I don’t want to lose my worksheet’s formatting. Is there a way to do that?

    Here is an example of what I’m doing and what I need.
    I have a worksheet with three columns; company name, account total and account balance
    Co 1 - 10,000 – 5,000
    Co 2 – 8,000 – 4,000
    Co 3 – 7,000 – 3,000
    Co 4 – 6,000 – 2,000
    Co 5 – 5,000 – 1,000
    This data is brought in to this sheet (say summary sheet) via a macro that pulls the latest data from the company’s designated sheet within the same workbook. I also have another macro that omits (doesn’t display in the summary sheet) the company data when the balance is zero. So say company 3 paid their balance of $3,000; my current summary sheet would look like this:
    Co 1 - 10,000 – 5,000
    Co 2 – 8,000 – 4,000
    Co 4 – 6,000 – 2,000
    Co 5 – 5,000 – 1,000
    Co 5 – 5,000 – 1,000
    What I’d like it to look like is this:
    Co 1 - 10,000 – 5,000
    Co 2 – 8,000 – 4,000
    Co 4 – 6,000 – 2,000
    Co 5 – 5,000 – 1,000
    EC/B – EC/B – EC/B

    FYI – EC/B = empty cell or blank with formatting

    This sheet contains formatting; primarily borders and shading that I don’t want to lose. Also, companies will be added and deleted as they acquire or pay their debt, so the solution needs to be dynamic. I was thinking of maybe a conditional statement that checks for duplicates within a specified range and if it finds any duplicates, will clear the contents of the cells of column A, B and C of that row. Is that even possible? if so, would that keep the formatting?
    I tried using the remove duplicates method but it also deleted the formatting.

    Any ideas are greatly appreciated
    Thanks

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Clear duplicate content while retaining the sheet’s formatting

    The easiest will be to prepare a short XLSX sample of your data to illustrate the issue and your need
    - Battle without fear gives no glory - Just try

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Clear content referencing another cell's same content
    By papusale in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2015, 05:21 AM
  2. Get specific data from other sheet and clear other content
    By zottiri in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-28-2015, 01:32 AM
  3. [SOLVED] Clear Content in one sheet and copy & paste value from another sheet
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2013, 11:23 AM
  4. Clear Cell Content on onother sheet
    By Zeos6 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2013, 11:52 AM
  5. To clear content if conditional formatting cell return gray color
    By W.Patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2013, 01:00 PM
  6. Replies: 3
    Last Post: 04-18-2011, 01:51 PM
  7. Remove all filters from each sheet, then clear content?
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-07-2010, 06:29 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1