+ Reply to Thread
Results 1 to 4 of 4

Format the colour of a cell based on the date content of another cell

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Format the colour of a cell based on the date content of another cell

    Example
    If A1 contains any date in the month of May, I want A2 to turn red because A1 falls within the month of May.
    If the date is not in May then A2 is to remain white.
    I have tried to use the conditional formatting but cannot get the syntax right to determine if the cell falls within a particular month.
    Thanks in advance for any help.
    John

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Format the colour of a cell based on the date content of another cell

    try: =MONTH(A1)=5

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Format the colour of a cell based on the date content of another cell

    Thanks so much Sandy. Perfect solution.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Format the colour of a cell based on the date content of another cell

    You are welcome

    If it works for you read my flashing footnote
    Last edited by sandy666; 05-26-2017 at 06:08 PM.

+ 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. Format cell text based on cell colour.
    By RGM0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2016, 02:43 PM
  2. Need to format the content based on given Font size & colour
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2015, 01:49 PM
  3. Replies: 2
    Last Post: 12-19-2012, 11:04 AM
  4. Replies: 4
    Last Post: 09-13-2010, 11:54 AM
  5. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  6. Format Colour of Row based on Value In Cell J
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2008, 11:53 AM
  7. [SOLVED] Colour Cell based on Content
    By Steve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2006, 11:55 AM

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