+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting Problem from Excel 2002 to Excel 2007

  1. #1
    Registered User
    Join Date
    04-23-2010
    Location
    Worthing, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Conditional Formatting Problem from Excel 2002 to Excel 2007

    Hi, Could someone help me fix this please.

    I have created a workbook in Excel 2002 and I have used conditional formatting to hide text in cells which <= 0. I have chosen to turn the text white to make it invisible.

    I have sent this workbook to someone who is using Excel 2007, but there is a problem with this conditional formatting.

    In 2002, when you click into a cell and type a value it appears in black as you type, and the conditional formatting is applied 'after' you enter the value. However in 2007, it appears the conditional formatting is applied to the text as you type it in - So when you click into a blank cell, you can't see the text as you type, because it is white. Once the value is entered and provided it is not <=0, it shows it correctly.

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

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    the text should be visible in the formula bar though correct ?

  3. #3
    Registered User
    Join Date
    04-23-2010
    Location
    Worthing, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    Yes, you can still see the text in the formula bar, just not in the cell as you type it in.

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

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    AFAIK there's no means of altering this default behaviour (and given you can see the text you're typing in the formula bar I guess that's the only workaround)

    (because the formatting is set via Conditional Formatting there's little you can do it seems - I had wondered about using the doubleclick event but that won't work either)

  5. #5
    Registered User
    Join Date
    04-23-2010
    Location
    Worthing, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    Ok, thanks for that. Would there be another way of approaching this in Excel 2007, of hiding cells with a numeric value of <=0, other than conditional formatting?

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

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    You could use a Custom Format if that's what you mean, ie a custom format applied to the cell of: #;;;@

    would mask anything <=0 as blank and the text would be visible on edit (change format for +ve numbers as per preference - ie #,###0.0 rather than just # etc...)

  7. #7
    Registered User
    Join Date
    04-23-2010
    Location
    Worthing, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    Ok, I'll have a play with that later. Many thanks for your fast replies.

  8. #8
    Registered User
    Join Date
    04-23-2010
    Location
    Worthing, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    Solved - I managed to fix the problem in Excel 2007, by firstly using Excel Options > Advanced > UNCHECK Show a zero in cells that have a zero value.

    Secondly I amended the conditional formatting to only look for values <0, rather than <=0 to deal with negative numbers.

    Now working as intended.

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

    Re: Conditional Formatting Problem from Excel 2002 to Excel 2007

    I confess I'm slightly confused by the above "resolution" in so far as the Conditional Formatting rule will still act per your initial post - ie negatives would be invisible within the cell whilst in edit mode and this (I thought) was your problem, no ?
    (or are you saying you don't have -ve's ?)

    IMO (FWIW) where viable (as is the case here) a Custom Format solution is always preferable to Conditional Formatting given the latter's super volatility.

    Note also that "show a zero" is a Workbook/Worksheet level setting so will apply to all cells within the Workbook/Worksheet so you can't differentiate by specific ranges should you ever want to.

    On that basis I'd still suggesting applying a Custom Format to the range of interest of: #;;;@

    Custom Formats in traditional format work along the lines of:

    Format For > 0; Format for < 0; Format for 0; Format for Text

    For more info. see any/all of:

    http://pubs.logicalexpressions.com/p...cle.asp?ID=414
    http://www.ozgrid.com/Excel/CustomFormats.htm
    http://simoncpage.co.uk/blog/2008/09...er-formatting/

    Disregard the above of course as is your prerogative - it is just my two pennies worth
    Last edited by DonkeyOte; 04-24-2010 at 03:27 AM. Reason: typo

+ 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