+ Reply to Thread
Results 1 to 7 of 7

Is it possible to fill cell color with Custom format (instead of conditional formatting)

  1. #1
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Tel Aviv, Israel
    MS-Off Ver
    Excel 2021
    Posts
    112

    Is it possible to fill cell color with Custom format (instead of conditional formatting)

    hello excelers

    the reason I preffer the custom format fill coloring is because it's better with speed .

    thanks for any help

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    What is the formula you are using for conditional formatting? Maybe there is a way to make it more efficient. I think your best best would be a macro that runs upon opening that formats those cells and then is done.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    05-12-2013
    Location
    Tel Aviv, Israel
    MS-Off Ver
    Excel 2021
    Posts
    112

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    Thank you so much .
    I think your best best would be a macro that runs upon opening that formats those cells and then is done.
    Yes , this sounds awesome .
    but I'm thinking like - perfect but how is that even possible ? because that's means that the macro will create the conditional formatting in the opening of the file and than cancel the conditional formatting but keep the fill painting of the cells, is it possible to do something like that , also is that possible to decide what ranking of priority this conditional formatting will be next to the others conditional formatting involved ?

    thank you so much for having a look - this is my lines of conditional formatting:

    for =$AC$5:$ETX$405
    Those are the 3 different codes for CF I've got:
    Please Login or Register  to view this content.
    The first two are making the Gantt chart which uses "start date" column, "real progress date" and "finish date" and it shows on the rows in a lovely fashion how the different work goes on the chart , like gantt chart. the third code is to mark todays date on the column in yellow, it's long because I managed to change the dates from DAILY to WEEKLY to MONTHLY by having buttons that skip the date by 1/7/30 and this code mark the right date regardless if it's daily/weekly/monthly.
    If I can have this third long code run in the start of the opening and then cancel the CF but keep the filling coloring that will be so efficient and might help greatly .

    thanks for any tip.
    you guys are so strengthen me, knowing with my endless projects that I have amazing people that might help from time to time, so lucky to get your help.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    I asked for a VBA person to come and help. I believe you are correct, the first two criteria won't slow your system down much. The third criteria contains TODAY() which is a volatile function and is the probably culprit.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    You can use Custom Formats to generate colours, but it is more limited than Conditional Formatting. It can only be applied to numbers, and basically you can have three conditions linked to the number being negative, equal to zero, or positive, although this can be relative to some other value. The choice of colours is also limited.

    John McGimpsey had a good explanation of how to set it up, but the link I have for the site no longer seems to be valid.

    Hope this helps.

    Pete

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    Please read the yellow banner at the top of this page on how to attach a sample workbook.

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Is it possible to fill cell color with Custom format (instead of conditional formattin

    Hi there,

    Regarding what ChemistB wrote:


    The third criteria contains TODAY() which is a volatile function and is the probably culprit.


    the following code provides a simple way of referring to today's date without using a volatile function:

    Please Login or Register  to view this content.

    You can then re-write your code as follows:

    Please Login or Register  to view this content.

    Hope this helps.

    Regards,

    Greg M

+ 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] Fill Cell color without Conditional Formatting
    By cartica in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-19-2020, 04:37 PM
  2. Replies: 0
    Last Post: 04-04-2019, 08:59 AM
  3. [SOLVED] conditional formatting: fill cell color based upon =< or > =NOW()
    By InvGrp2 in forum Excel General
    Replies: 3
    Last Post: 01-16-2019, 06:53 PM
  4. Replies: 0
    Last Post: 09-26-2012, 01:08 PM
  5. Custom fill color scheme & conditional format
    By tian0020 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2007, 02:31 AM
  6. Cell Formatting Conditional On Other Cells Fill Color?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2006, 12:25 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