+ Reply to Thread
Results 1 to 10 of 10

Overwriting the Format condition

  1. #1
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Question Overwriting the Format condition

    Help needed,

    Is there a way to overwrite the format condition formula should a particular condition be met?

    Knowing that format condition gives only three conditions, how can you overwrite it by other conditions in case a forth condition comes up, which is not part of the other three.

    Cheers!
    Last edited by chamdan; 10-29-2010 at 08:16 PM. Reason: Try to resolve it using different technics

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,908

    Re: Overwriting the Format condition

    If what you are asking is, how can you have more than three conditional formats in Excel 2003, your options are set a fourth condition as the "norm" or default, use VBA with worksheet change event or upgrade to Excel 2007/2010.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Re: Overwriting the Format condition

    I am giving colors to columns that corresponds to a WBS level, which is for instance:

    Level 1: Color (Black) the columns let us say F1:IV1
    Level 1.1: Color (Brown) the columns F2:IV2
    Level 1.1.1: Color (Light Blue) the Columns F3:{Corresponding Column refering to a particular finish date} i.e. S3

    Knowing that certain columns will be greyed due to weekends Saturday and Sunday.

    Here is an example:
    A B C D E F G H I J K L
    1 WBS Task Duration Start Finish
    2 1 ABC 7 d Oct 1 2010 Oct 12 2010 Black Black Black Black Black
    3 1.1 Abcd * 7 d Oct 1 2010 Oct 12 2010 Brown Brown Brown Brown Brown
    4 1.1.1 cde 3 d Oct 1 2010 Oct 5 2010 Blue Grey Grey Blue Blue
    5 1.1.2 efg 4 d Oct 6 2010 Oct 11 2010 Blue Grey Grey Blue Blue
    6 1.1.3 fgh 0d Oct 12 2010 Oct 12 2010 ▲ <----- the forth condition is this, since it is a subtask
    but because the duration is zero (Milestone)
    Place a Diamond or whatever.

  4. #4
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Question Re: Overwriting the Format condition

    Hi,

    Enclosed is a sample of what I am trying to do.

    Cheers!
    Attached Files Attached Files
    Last edited by chamdan; 10-24-2010 at 06:45 PM. Reason: Not to make too personal but to whomever would help

  5. #5
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Lightbulb Re: Overwriting the Format condition

    Hi,

    I made the appropriate sample spreadsheet that would reflect what I am trying to resolve. Should another solution be available to do what I am trying to do.

    Thanks again in advance!

    Chuck
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Re: Overwriting the Format condition

    Dear TM Shucks,

    I am not a VBA expert but try always to manage within my knowledge of Excel to do the best of my ability. But sometimes a VBA routine may solve the concern I have but help would be required to do what I am trying to achieve. I have uploaded an example (second upload) is the one I need to resolve. Can you or anybody out there help me find a solution to it?

    Your help is greatly appreciated in advance.

    Regards,

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,908

    Re: Overwriting the Format condition

    It looks as though you could add another test to the AND in the second CF Formula,

    Please Login or Register  to view this content.

    Could be amended to:

    Please Login or Register  to view this content.

    Regards

  8. #8
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Re: Overwriting the Format condition

    Sorry, but this is not working the way I am expecting. What I need is to be able to change the background color and put the
    "▲"
    where the milestone falls. This means that this triangle should show at Column "N" and Row 9 only because the the start date and the end date correspond to the position N9. Refer to the example. On the other hand, I have learned something new from your code is that you can have more than one condition within the same AND.
    =AND(N$3>=$D9+($E9-$D9+1)*$F9,N$3<=$E9,$C9<>0)

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,908

    Re: Overwriting the Format condition

    To my knowledge, you can't insert characters with CF, you can only change the formatting.

    You would need a formula in the cell itself, similar to the one you have in your example but date dependent (as is the CF), to position the triangle.

    Something like:

    =IF(AND(N$3>=$D9,N$3<=$E9,$C9=0),"▲","")


    Regards

  10. #10
    Registered User
    Join Date
    07-09-2007
    Posts
    79

    Re: Overwriting the Format condition

    Thanks TMShucks! I guess I will have to find some other way to meet my request. But I am still not convinced that there are no other tricky way to do that.

    Appreciate your time and thanks for your replies. Do I have to close this post? but what option should I use since it hasn't been resolved?

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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