+ Reply to Thread
Results 1 to 3 of 3

Problem in Formatting

  1. #1
    Registered User
    Join Date
    11-16-2008
    Location
    Toronto
    Posts
    33

    Problem in Formatting

    The only problem with the file is the column on the right hand side that is always red even if there are no customers on the left hand side.

    Basically, the file starts on the left side once someone gives a deposit. The date is hand written into the field underneath the proper heading. But I can't get rid of the RED colour on the right side. Red should appear if something is wrong only. But it is showing red for every line item.
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    re: Problem in Formatting

    Hi, try setting the formatting rules with the option "use a formula to determine which cells to format" and apply these rules in this order:

    =$J5="" -- no formatting
    =$J5<21 -- green
    =$J5>21 -- red

    The order of formatting rules is important if Excel is told to stop evaluating when true. Also, for some reason, the test for J5>21 returns TRUE for the cell that appears blank but contains the formula

    =IF(E5="","",E5-B5)

    Don't really know why ....

    hth

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    re: Problem in Formatting

    looks like "" is always higher that any number. try in a1 ="" in b1 =a1>anynumber you like ,returns true
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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