+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 Crashing Using Named Range in Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    14

    Excel 2007 Crashing Using Named Range in Conditional Formatting

    This has been a real frustrating one and I have not been able to find anyone that has found a solution to it.
    I have one simple (but large table). It has dates across the top (formatted in hh format). I would like the associated table to format according to the day and also to format differently when there is a public holiday. So I have built a table with the holidays and named the relevant cells as "Holiday_Valid".
    I have the following formulae in the conditional formatting;
    Please Login or Register  to view this content.
    Where D11 has the current day in question and Holiday_Valid is a list of public holidays. Since there is a cell for each hour of each day I am using "int()".
    There is a second conditional format to format Sundays differently as below;
    Please Login or Register  to view this content.
    My problem is that these both work well....but then after a few minutes the whole sheet crashes with those dreaded "Trying to recover your data" and "Excel will restart" etc.
    I have removed references to named ranges and so far - so good....but this means putting the validation table in the same sheet as the main table. In the past I have been able to use named ranges (albeit not in such convoluted formulae), but now it seems that it is not working any longer.
    When I open the recovered sheet, all the conditional formatting has been removed and the message from the repairs is that there was some invalid conditional formatting.
    Extensive web searches did show some issues with conditional formatting using names ranges....especially with frozen panes....which I need use with a sheet this big.
    Any hints or assistance would be much appreciated....

    Pierre

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Excel 2007 Crashing Using Named Range in Conditional Formatting

    Sounds like you are running into some sort of bug. Maybe these will help:
    1) Start over. Yes, you can copy paste data from sheets, but do not copy/move sheets to the new workbook.
    2) Hard code the Holiday_Valid dates within the Name Manager. This won't make it as easy to update, but you would not be referencing a sheet (assuming that is one of the problems).
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel 2007 Crashing Using Named Range in Conditional Formatting

    Hi,

    Just an idle thought and wondering if there is some conflict in evaluating the CFs. Do they have any sort or priority? Have you tried swapping them round and/or checking the Stop If True option?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Excel 2007 Crashing Using Named Range in Conditional Formatting

    Thanks PauleyB I have tried rebuilding from scratch but the same has occured....again not immediately. The formatting works and the whole sheet works for a while and then appears to crash at a random time. If I am able to recover any thing and look at the "repairs" it mentions CF conflicts and all CF has been removed from the recovered file.....

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Excel 2007 Crashing Using Named Range in Conditional Formatting

    Richard....I am sure you are correct....there is some conflict. I tried removing the reference to a named range in a different tab and put the date lookup into the same sheet as the conditional formatting and to use a static range definition. I thought that this had "cracked" it as I was able to work for a few days.....but then the crash again. Same result. The recovered file had all the CF stripped and the repair mentioned CF conflict. What I will try now is to add some rows and perform the CF formulae in these cells "=if(text(<date_reference>,"ddd")="Sun",true, false)" etc. and then just use the CF on the cell result.

    p.s. sorry for late response, I had to take a business trip and was not able to work on this project for a week.

    Thanks for your pointers.

+ 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. Conditional Formatting using Named Range
    By pcm1969 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2013, 01:13 PM
  2. Replies: 0
    Last Post: 06-12-2013, 09:44 AM
  3. Conditional formatting if value in cell is found in a named range
    By Grumpy Grandpa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2006, 11:35 AM
  4. Replies: 13
    Last Post: 04-10-2006, 06:10 PM
  5. named range, conditional formatting
    By drabbacs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2005, 02:06 PM

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