+ Reply to Thread
Results 1 to 6 of 6

applying several formulas for conditional formatting then copying them through the rest of

Hybrid View

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Pullman, WA
    MS-Off Ver
    Excel 2010
    Posts
    5

    applying several formulas for conditional formatting then copying them through the rest of

    I have a work sheet that has columns that contain dates. I want to format the rows based on weather the cell has a date or not. I tried to attach a screen shot but i am unsure if it it taking or not.
    but if cell 2 c has a date i want cells 2a, 2b and 2c to be a certain color. If 2d has a date I want 2a, 2b and 2c to e one color. I have figured it out this far fairly well although in the long run it takes about 10 formulas (one for each column) to achieve this. I have not figured out how to then carry this through the work book without having to go through the same process every time. I have tried to remove the $ to keep it from being absolute but then when i close or save it defaults to that. Any ideas? I know my question might be clear a mud.

    Untitled.jpg

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,772

    Re: applying several formulas for conditional formatting then copying them through the res

    What's clear as mud is your screenshot. It would be much more helpful (and easier for you) to simply attach your Excel file.

    What do you want to do if C2 (please use standard Excel notation) and D2 both have dates?

    Also I'm assuming that cell either has a date or is blank. You don't seem to need to tell the difference between a date vs. some other type of number.

    You don't need 10 formulas, you need six formulas. You will use "use a formula to determine which cells to format" and use these formulas:

    For the first color, use this formula repeated for A2, B2, and C2: =C2<>""

    For the second color, use this formula repeated for A2, B2, and C2: =D2<>""

    Because you are using different rows and different columns, you are correct that you want to avoid absolute addressing.

    Then you can use the Format Painter to apply that same set of formatting to any group of three cells having the same pattern.

    (By the way, if you entering a formula without "$" then Excel should not add it for you on close or save. I cannot imagine what you are seeing happen there.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-22-2014
    Location
    Pullman, WA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: applying several formulas for conditional formatting then copying them through the res

    Lets' try this. Hopefully the attachment is clearer.
    Here is what I am going for.
    If there is a date under per-assessment wait list I want A, B & D to be green. If there is a date under Pre-Assessment Done I want A, B, D & E to be purple (like the header), so on and so forth for each status. Because this was not working right I tried something simpler to start, if there is a date under per-assessment waiting list then just D is set to be green, I also did this with Pr-Assessment done and Audit Process in Progress. The Audit Process in Progress did not do anything even with a date in the cell. When I did a format painter to bring down the few I had done blank cells are green. I am unsure if i am over complicating things or am just missing something simple here.
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,772

    Re: applying several formulas for conditional formatting then copying them through the res

    You need one rule for each column with a colored header. I set up the formulas but I did not match the colors exactly. You need to go in and get the colors to match if they don't.

    I wasn't sure what you wanted to happen if there are dates in columns F or G; those headings don't have a color fill. I omitted any rules for them, but if you look at the pattern in the formulas you will see how to add them.

    In Excel, there is no such thing as a "date". There is such thing as a number that can be formatted as a date. For example, the number 41,640 can also be interpreted as 1/1/2014 if you format it as a date. So there is no way for Excel to tell that a number is intended to be a date. So I assumed in your case that any number greater than 41,640 is a date.

    This is slightly above the novice level for conditional formatting so don't feel like you missed something.
    Attached Files Attached Files

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,772

    Re: applying several formulas for conditional formatting then copying them through the res

    On second look, it appears that a cell is either blank or contains a date, which would allow the formula to be simplified slightly.

  6. #6
    Registered User
    Join Date
    04-22-2014
    Location
    Pullman, WA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: applying several formulas for conditional formatting then copying them through the res

    Thank you so much! Yes, I was going for if the value is more than 0 then the formatting would apply. I am excited to take a look at what you did, I imagine it will help me a lot. I am very thankful for your help!

+ 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. Copying conditional formatting formulas
    By AndieArbeit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2013, 03:47 AM
  2. [SOLVED] Conditional Formatting not applying
    By Lovelylou79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2013, 11:01 PM
  3. [SOLVED] Conditional formatting - one cell green rest no colour
    By HHR in forum Excel General
    Replies: 15
    Last Post: 01-31-2013, 02:26 PM
  4. Replies: 1
    Last Post: 08-06-2009, 06:17 PM
  5. Replies: 1
    Last Post: 01-11-2006, 05:15 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