+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Conditional Formatting and Changing the Color of Cells

  1. #1
    Registered User
    Join Date
    12-27-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Conditional Formatting and Changing the Color of Cells

    Hello ,

    I have an excel sheet with Two Columns, - Column A and B.

    Each Column has more than 200 rows, What I want to do is to compare data of both columns and then Color the Specific Cells using Conditional Formatting.

    For Eg:- If A5 < B5 then A5 should Go Red. and same with all other cells of Column A , Please tell me how can i do this , As I can't do it manually for more than 200 rows.

    Best Regards

    Gagan

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formating and Changing the Color of Cells

    Select Column A range and go to the Home Tab.

    Click Conditional Formatting and choose New Rule

    Select "Format only cells that contain"

    And then Select Is Less than and enter =B1 (where B1 corresponds to first cell in column A that you selected)

    Click Format and choose Red from the Fill tab.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-27-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting and Changing the Color of Cells

    Hello NBVC,

    Thanks for Reply , But whether This would only consider value of B1 for comparing all Cells in Column A??

    I want to do like this, Compare A1 with B1 , A2 with B2 , A3 with B3.

    i was trying to put a rule for first row of both columns , then using Paste special to paste rules to other rows but it did not worked

    Please give advice

    Regards
    Gagan

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

    Re: Conditional Formatting and Changing the Color of Cells

    gagandeep, before you doubt that it works, have you actually tried NBVC's suggestion? The way it is set up, each cell in column A will be compared with column B on the same row, because the cell reference used in the setup is relative, i.e.

    =B1

    It is important that you enter the cell reference without $ signs, so better type it in instead of clicking on cell B1.

    hth

  5. #5
    Registered User
    Join Date
    12-27-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting and Changing the Color of Cells

    Yes, It worked , but its not formatting correctly , like some rows which should be filled with color are not being filled . file is in .csv if that helps

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

    Re: Conditional Formatting and Changing the Color of Cells

    Post a small sample and point out the cells that don't format correctly.

  7. #7
    Registered User
    Join Date
    12-27-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional Formatting and Changing the Color of Cells

    Hello Teylyn ,

    the method worked, its formatting properly now , Thanks for the help ,

    Best Regards

    Gagan

+ 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