+ Reply to Thread
Results 1 to 8 of 8

Conditional Format based on information on another worksheet

  1. #1
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Conditional Format based on information on another worksheet

    I have an Excel file with tasks, task IDs, frequency (Monthly, Quarterly, etc.) and a date column (column E) that our team will use to input target completion dates (among other columns).

    I have a Blackout Dates table on another worksheet of the file with frequencies in the column headings and the dates as the row headings and “Blackout” for each blackout date under each frequency. I have flexibility to change the Blackout Date table to another structure if it would help.

    I need a conditional format that shades cells in column E date based on the Frequency in column C and a lookup to the Blackout Dates table.

    I really am not sure where to start on this. I thought about multiple IF/AND and Lookups, but I don’t think that’s going to do it.

    I’ve included a spreadsheet sample. Any help is much appreciated.
    Attached Files Attached Files
    Last edited by tscott; 06-30-2010 at 11:54 AM.

  2. #2
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Re: Need help with possible IF/AND and Lookup

    Dave,
    I don't mean to be a nit-wit, but I have no idea how to title this becuase I know what I need, but I don't know how to get there.

    Before I posted, I looked at the rules after looking at some other posts and seeing that some other requests had responses about titles but I guess I still failed.

    I'm having a hard time trying to describe this and I am not trying to be difficult, but I will try again.

    Sorry for the trouble. I'm really not a rule-breaker type.

    Tammy

  3. #3
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Re: Conditional Format based on information on another worksheet

    Bump - Does anyone have any ideas if or how I can accomplish this?

    Thanks,

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional Format based on information on another worksheet

    sorry don't quite follow . What where would you like the CF to be ?give an example of a cell or cells that need to change based on what rule
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    08-20-2004
    Posts
    6

    Re: Conditional Format based on information on another worksheet

    Actually I don't understand what you want with your conditional formatting. I checked in Excel 2003 with 3 alternatives. The middle one [green] I have changed into green for any BLACKOUT DAY.
    Important: always use range names if referring to another sheet in the same Workbook when using references in conditional formatting.
    Make sure that your headings in the blackout list are identical to what you have in column C on the other sheet.
    Would this help you a bit?
    By the way, the IF statement in the conditional formatting should not be used as you are already testing if a condition is TRUE or FALSE.
    Attached Files Attached Files
    Kees in Eindhoven
    Why easyif it can be made complicated?

  6. #6
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Re: Conditional Format based on information on another worksheet

    Quote Originally Posted by martindwilson View Post
    sorry don't quite follow . What where would you like the CF to be ?give an example of a cell or cells that need to change based on what rule
    Martin,
    I'm really having a hard time explaining this, so thank you for you help.

    I've adjusted my sample and requirements after talking with my team, they've added to the request which may make this easier.

    In column F, I want "BLACKOUT" if the date in column D is a blackout date based on the frequency in column C.

    Example Row 5. The task in row 5 has a target date of 3/15/10, which is "QTR" (quarterly frequency) in column C, Frequency. If I VLOOKUP that date on the Blackout Dates worksheet, in column D, It returns "BLACKOUT".

    I tried nesting IFs and VLOOKUPS, but it's not working. I can get one IF/VOOKUP to work, but not multiples based on the four frequencies ("MO", "SEMIANNU", "QTR", "YR").

    If I can get this to work, I think I can add another conditional format rule to column D, based on column F to add CF Shading.

    I hope this helps explain better.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Re: Conditional Format based on information on another worksheet

    Quote Originally Posted by KeesValkenswaar View Post
    Actually I don't understand what you want with your conditional formatting. I checked in Excel 2003 with 3 alternatives. The middle one [green] I have changed into green for any BLACKOUT DAY.
    Important: always use range names if referring to another sheet in the same Workbook when using references in conditional formatting.
    Make sure that your headings in the blackout list are identical to what you have in column C on the other sheet.
    Would this help you a bit?
    By the way, the IF statement in the conditional formatting should not be used as you are already testing if a condition is TRUE or FALSE.
    Kees,
    This may be closer. I can't change the column headings, but I have an idea for a workaround to make this work and keep the team happy. I have to run to a meeting and will look closer this afternoon.

  8. #8
    Registered User
    Join Date
    09-21-2006
    Posts
    28

    Re: Conditional Format based on information on another worksheet

    Keys, I was able to use your sample to make it work. Thank you so much! And it's a big hit with the team. I haven't been good about naming ranges so I need to start doing that again. Thanks again.

+ 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