+ Reply to Thread
Results 1 to 5 of 5

Formatting Cells with Date or Text Values in a Conditional Formatting Formula

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Formatting Cells with Date or Text Values in a Conditional Formatting Formula

    In a range of cells starting with cell E46:
    The formula, =TODAY()-E46>365, works to format dates greater than 365 days.
    The formula, =ISTEXT(E46), works to format text.
    The problem: how to combine these formulae to format cells in the range with dates > 365 days, AND cells with text. If a cell has a date > 365 days and a different cell has text, they both would be formatted.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formatting Cells with Date or Text Values in a Conditional Formatting Formula

    er...

    =OR(TODAY()-E46>365,ISTEXT(E46)

    ?
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Formatting Cells with Date or Text Values in a Conditional Formatting Formula

    Entered the formula =OR(TODAY()-E46>365,ISTEXT(E46)). Dates format, but not the cells with text. Cells are formatted date, could that be an issue?

  4. #4
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Formatting Cells with Date or Text Values in a Conditional Formatting Formula

    The only way I could make this work was to split into two rules. Apparently conditional formatting does not allow an "or" formula.....

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formatting Cells with Date or Text Values in a Conditional Formatting Formula

    The OR() formula should work in conditional formatting, the issue is somewhere else....not sure where though

    Can you post a desensitized sample of the workbook?

+ 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. [SOLVED] Conditional formatting formula based on text in two cells
    By lionrookie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2014, 12:50 PM
  2. Replies: 2
    Last Post: 09-19-2013, 10:34 AM
  3. [SOLVED] Conditional Formatting Formulas for Date, Text and Values/Numbers
    By pblobe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2013, 12:26 AM
  4. Changing Text Format with Formula or Conditional Formatting with multiple values
    By gerodr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2011, 08:54 AM
  5. Replies: 1
    Last Post: 02-26-2011, 10:02 PM

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