+ Reply to Thread
Results 1 to 3 of 3

Schedule Analysis - Conditional format

  1. #1
    Registered User
    Join Date
    02-14-2011
    Location
    minnesota
    MS-Off Ver
    Excel 2007 mac
    Posts
    1

    Schedule Analysis - Conditional format

    I am trying to analyze a monthly schedule for training. A cell will contain the room number and a time period (for example: 325B) where 325 is the room number and B is the time period. There are only five different time periods that can be attached to the end of the room number and they are A, B, C, D, E. If on one day the time period is D, the next day can not be A or B. If the time period is E, the next day can not be A, B, or C.

    What I want to do is figure out if I can use conditional formatting to identify an error in the schedule.

    For example: 325B 323D 323A 323C

    I Would like the third cell to turn red since A cannot follow D.

    Is this possible?

    Thanks,

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Schedule Analysis - Conditional format

    Hi
    Assuming your first entry is in B5 use these formulae in conditional formatting

    Select from B6 down as many cells as you want.
    Please Login or Register  to view this content.
    It should work.

    Regards

  3. #3
    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
    48,357

    Re: Schedule Analysis - Conditional format

    If those values are in cells A1 to D1, use the following formula in cell B2:

    =IF(LEFT(A1,3)<>LEFT(B1,3),"New Room",IF(B1>A1,"OK","Error"))

    And drag down.

    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


+ 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