+ Reply to Thread
Results 1 to 2 of 2

conditional format - - comparing cells

  1. #1
    Registered User
    Join Date
    02-08-2005
    Posts
    1

    Question conditional format - - comparing cells

    Hi !



    What I'm trying to do is find a macro (or any other way that works) that will automatically compare two numerical values (cells) in a row, and then change the background color of that row based upon the result of the comparison. i.e. On a financial statement, I want to compare budgeted sales (cell A1) vs actual sales (cell A5) and highlight the row (cells A1 - A15) red if A5 is less than A1. Hopefully, this can be coded so that I can individually compare all 300+ rows on my financial statement.

    This must be a really obvious thing, but I just haven't been able to figure it out yet.

    Thanks for your help!
    Rick

  2. #2
    pinmaster
    Guest
    Hi
    You can use conditional formatting. First select your range you want to format then goto Format/Condtional formatting, for the condition select (Formula Is) and type:
    =A$5<A$1
    and choose your format.


    HTH
    JG

+ 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