+ Reply to Thread
Results 1 to 3 of 3

Conditional Format for a Range of Cells

  1. #1
    Registered User
    Join Date
    08-10-2007
    Posts
    11

    Conditional Format for a Range of Cells

    Hello, I am trying to apply conditional formatting to range of cells (in Excel 2007) as follows:

    Column A contains several numerical entries; this is the data.

    Column B also contains several numerical entries; this is the lowest that I would want the data in the same row in Column A to be.

    If an entry in Column A is less than the same row entry in Column B, I want the background of that entry in Column A to turn red.

    I've tried the basic way of conditional formatting, by highlight the cells I want to be formatted, clicking on Conditional Formatting, selecting Less Than, and selecting the range of cells I want to see if the data cells are less than. But Excel complains that it can't receive a range of cells for the conditional formatting.

    Even while I'm writing this out, I'm thinking of a way that I can probably do this (by subtracting the two in another cell then comparing that to 0). But it seems to me that there should be a more elegant way in Excel to do that.

    Thanks for any help you may be able to provide.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You should apply conditional format to the first item comparying it to its corresponding item in B only and then copy|Paste Special >> Formats to the rest of the the items in A...

    or

    select all items in Column A, and choose Formula Is from 1st drop down in CF dialogue. then enter formula B1>=A1 and apply format (where A1 and B1 are top most items in your selection).
    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
    08-10-2007
    Posts
    11
    Thanks, that should work!

+ 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