+ Reply to Thread
Results 1 to 9 of 9

Conditional formatting making spreadsheet slow

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Milwaukee
    MS-Off Ver
    Excel 2010
    Posts
    15

    Conditional formatting making spreadsheet slow

    Hi,

    I do some data reporting and the raw data reports are not very good, so it requires some additional work in excel to reach our final numbers.

    I am using Excel 2010, Win 7 64 bit.

    My spreadsheet is one tab, no formulas, and around 20k rows. I have one column with incident numbers in it.

    I would like to use conditional formatting to highlight duplicate values for the incident number. Here is where I run into problems. What I am trying to do is highlight the duplicates, then go to my date closed column, and delete all of the incidents that have blanks for the date closed.

    I cannot use the "remove duplicates" function as there will be two identical incident numbers, one has the closed date and the other doesn't, and I need to delete the one without the date only.

    In theory, I should be able to highlight duplicates on my spreadsheet, set filters to only show the red shaded cells, then use a filter to only select the blanks for date closed, then manually delete the records.

    The problem I am running into is that after applying conditional formatting, it takes Excel 5+ minutes for the filter window to show up after clicking on it. If you select "show cells with red background" the program will then freeze up for minutes longer, sometimes crashing, sometimes eventually applying the correct filter.

    If I remove the conditional formatting, applying and removing filters is nearly instantaneous. But without the conditional formatting, I can't remove the correct records.

    Any ideas what is happening? I understand that going overboard with conditional formatting could affect performance, but this is a simple spreadsheet 3mb or smaller without formulas or multiple tabs and I don't see why this would cause it to hang so much.

    Thanks for reading.

  2. #2
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: Conditional formatting making spreadsheet slow

    Can you sort on incident number?

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Milwaukee
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Conditional formatting making spreadsheet slow

    Hi,

    Sorting works perfectly with the conditional formatting in place, takes about a half second to sort all 20k rows. This further makes me wonder why filters would take 500x longer.

    Is the problem excel really can't handle filters by color? I can't think of a way to accomplish this using sorting, there might be 300 records I would have to scroll through and delete one at a time.

    Thanks

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Conditional formatting making spreadsheet slow

    If I am understanding correctly it sounds as if you could use a helper column where you would count the instances of each incident number and when the count is greater than one and the date closed is blank it would mark that as TRUE. All other rows would be marked as FALSE. You could then filter on the helper column (TRUE) and delete. If you want to see how this would work on your data please upload a small sample by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-23-2012
    Location
    Milwaukee
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Conditional formatting making spreadsheet slow

    Thank you, I will try just that. If I am not able to figure it out myself, I will redact some confidential info from the file and upload here.

    I appreciate everyone taking the time to read my problem.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting making spreadsheet slow

    I would use Jet's suggestion as well, a helper column that tests for duplicate ID's - but add in a test for no date
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting making spreadsheet slow

    Thanks for the feedback

  8. #8
    Registered User
    Join Date
    10-23-2012
    Location
    Milwaukee
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Conditional formatting making spreadsheet slow

    Hello,

    Thanks for all the help.

    Adding a new helper column next to my incident number column with a countif statement is exactly what I needed. I can just filter for anything with a count >1, then manually filter for blank date closed fields (I'm sure I could have built this into the formula as you said, but it is so quick to do it manually I just skipped that part), and remove them manually.

    I just needed a creative way to identify duplicate values without using the remove duplicates or highlight duplicates. I am not sure why the excel coding allows the countif statement to filter in a reasonable amount of time compared to conditional formatting, but I don't really care because you helped fix my issue!

    I know no one here is paid to monitor forums and help answer excel forums, so I really appreciate anyone who took time to read and/or reply to my thread!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional formatting making spreadsheet slow

    Thanks for the kind words, they are always appreciated

+ 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. Slow conditional formatting
    By leprince2007 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-23-2015, 07:10 AM
  2. Replies: 0
    Last Post: 09-20-2013, 11:15 AM
  3. Replies: 17
    Last Post: 03-22-2013, 09:22 AM
  4. Replies: 3
    Last Post: 04-17-2012, 11:15 AM
  5. Making conditional formatting less tedious
    By Steve00 in forum Excel General
    Replies: 2
    Last Post: 06-21-2010, 02:43 PM
  6. HasFormula, Cond. Formatting, and slow spreadsheet
    By cpadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2009, 03:58 AM
  7. making conditional formatting not continuous
    By zachg in forum Excel General
    Replies: 4
    Last Post: 12-05-2007, 03:50 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