+ Reply to Thread
Results 1 to 6 of 6

Referencing different cells in order to condionally format another

Hybrid View

  1. #1
    Registered User
    Join Date
    02-15-2007
    Posts
    14

    Exclamation Referencing different cells in order to condionally format another

    Hi,

    I'm hainvg trouble creating a formula to highlight a particular column based on a day reference in another cell.

    ie. if cell L1=Monday, highlight column E
    ie. if cell L1=Tuesday, highlight column F

    and so forth

    I'm trying to add a condional format formula to all the cells in a column. Columns E through I would all reference cell L1.

    Any help would be appreciated.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Referencing different cells in order to condionally format another

    Hi Valiantlyon,

    Does cell L1 contain an actual date, or just the word "Monday", "Tuesday",...?

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    02-15-2007
    Posts
    14

    Re: Referencing different cells in order to condionally format another

    Here's where I sit right now:

    CellL1 =TODAY()

    CellM1=TEXT(L1, "dddd")

    L1 creates the date, and cell M1 converts it to Monday, Tuesday, ect.

    I tried referencing both cells...maybe the fact that I'm referencing a formula is my problem?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Referencing different cells in order to condionally format another

    Just leave cell L1 as is.

    For column E, use this formula in the conditional format:

    
    =WEEKDAY($L$1,2)=1
    For column F, use this formula in the conditional format:

    
    =WEEKDAY($L$1,2)=2
    For column G, use this formula in the conditional format:

    
    =WEEKDAY($L$1,2)=3
    For column H, use this formula in the conditional format:

    
    =WEEKDAY($L$1,2)=4
    For column I, use this formula in the conditional format:

    
    =WEEKDAY($L$1,2)=5
    Cheers,

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Referencing different cells in order to condionally format another

    If you wanted to have one rule for all columns simultaneously you could adapt such that the rule becomes:

    =WEEKDAY($L$1,2)=COLUMNS($E1:E1)

    Highlight E1:I1 (selecting E1 first) and apply the above setting format as appropriate.

  6. #6
    Registered User
    Join Date
    02-15-2007
    Posts
    14

    Re: Referencing different cells in order to condionally format another

    Works like a charm! Thanks all.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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