+ Reply to Thread
Results 1 to 11 of 11

Conditional formatting formula returning arbitrary results

  1. #1
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Conditional formatting formula returning arbitrary results

    I am using the following formula to highlight a cell when the date within that cell is in the past and a document has not been received (a specific cell is blank):

    =AND(I2="",E2<TODAY())

    Column E contains the expected receipt date; column I contains a date if it has been received and left blank if it has not. I have tried several iterations of this formula with no luck, and this specific formula is highlighting random cells - for example, a few are highlighting when the date is in the past and column I contains a value, but some cells are highlighting when the date is in the future and column I is blank. I have rows right below each other with the same combination of values where 1 is highlighted and the other is not.

    Some troubleshooting I have already tried:
    1. Was a formula (referencing another date and adding 3 days) so I copy pasted special, values only; same result
    2. Confirmed date formats match for both columns
    3. Have revised the labels to be $I$2 (highlights every value), $I2 (same result as no $), I:I, $I:$I with no luck

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting formula returning arbitrary results

    What cell(s) are you trying to format?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Re: Conditional formatting formula returning arbitrary results

    All of column E which contains an 'expected receipt date' for all rows - it's an ongoing report with new rows added daily. If it's easier to build a formula for Column I, i'm flexible to that, but I had difficulty with that as well (that's the column that would either contain a date indicating receipt or remain blank).

  4. #4
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Re: Conditional formatting formula returning arbitrary results

    All of column E which contains an 'expected receipt date' for all rows - it's an ongoing report with new rows added daily. If it's easier to build a formula for Column I, i'm flexible to that, but I had difficulty with that as well (that's the column that would either contain a date indicating receipt or remain blank).

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting formula returning arbitrary results

    Try this...

    Clear all the rules that do not work.

    Let's assume the range to format is E2:E10.

    Select the ENTIRE range E2:E10 starting from cell E2.
    Cell E2 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Styles>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =AND(I2="",COUNT(E2),E2<TODAY())

    Click the Format button
    Select the desired style(s)
    OK out

  6. #6
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Re: Conditional formatting formula returning arbitrary results

    Unfortunately that did not work either, no cells are highlighted once that is applied. I'm starting to think I'm working in a corrupt workbook based on the outcomes of these formulas.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting formula returning arbitrary results

    Can you post the file?

    We only need to see enough info that is relevant to the task at hand.

  8. #8
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Re: Conditional formatting formula returning arbitrary results

    I can't. Even with most of the data removed, it's still over 19 MB. I'm not sure how they created this file but that would explain why it's so slow and i'm having issues with it. Attached is a screen shot though if that helps.
    Attached Files Attached Files

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting formula returning arbitrary results

    Are the dates true Excel dates?

    In Excel dates are really just numbers formatted to look like dates. So, to test if an entry is a true Excel date you can use a formula like this:

    =ISNUMBER(E2)

    TRUE means it's a true Excel date.

    FALSE would mean it's a TEXT entry that just looks like a date.

  10. #10
    Registered User
    Join Date
    08-31-2015
    Location
    Philadelphia, PA
    MS-Off Ver
    MS Office 2010
    Posts
    6

    Re: Conditional formatting formula returning arbitrary results

    Both columns E and I are returning as TRUE when i input that formula.

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional formatting formula returning arbitrary results

    Well, I can't think of any other suggestions to try without seeing the file.

    Are you able to duplicate the problem if you make up a smaller sample file with similar data?

+ 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] Vlookup formula to select and highlight (conditional formatting) multiple results
    By hbomb1927 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 03:27 PM
  2. IF Formula returning two results
    By jpolycom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2014, 04:55 PM
  3. VLOOKUP formula is returning odd results
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 10-23-2013, 06:08 AM
  4. [SOLVED] equal to formula not returning right results =IF($E3<=G$1,O3,0)
    By m_789 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2013, 09:56 AM
  5. Conditional calculations for arbitrary time windows in massive data set
    By m.a.a.psu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2013, 01:43 PM
  6. [SOLVED] SUMPRODUCT formula not returning correct results
    By CityInspector in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:04 PM
  7. applying a formula and returning the results
    By Silverchewy in forum Excel General
    Replies: 1
    Last Post: 03-10-2009, 04:13 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