+ Reply to Thread
Results 1 to 7 of 7

To compare one cell to another cell

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    4

    To compare one cell to another cell

    To compare one cell to another cell

    --------------------------------------------------------------------------------

    I would like to compare, for example, cell A1 to cell B1 on the same worksheet. I want to input a number into cell A1 and that number would be my reference to determine if B1 is greater than, less than or equal to that number. If B1 is less than I want that number to show up in red if the number is equal to, another color and so on. Is there a formula to make that possible?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: To compare one cell to another cell

    You need to use Conditional Formatting.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: To compare one cell to another cell

    asanders,

    You would use conditional formatting in cell A1 to get the desired results.

    Hope that helps,
    ~tigeravatar

    EDIT: Beat by TMS

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: To compare one cell to another cell

    Of course, it is possible by using conditional format

    +select A1
    +Click "Format" > "Conditional Formatting"
    + choose Formula in the first combo box, then type =$A$1>$B$1 (you can point the cells by mouse)
    + Press Format.. button -> choosing the color and smt else you like
    + finish by OK button

    Plz see the link for detail of conditional format: http://www.wikihow.com/Apply-Conditi...tting-in-Excel

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: To compare one cell to another cell

    @tigertiger: only by a minute ... and now you've gone the extra mile ;-)

  6. #6
    Registered User
    Join Date
    07-06-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: To compare one cell to another cell

    Perfect!! Thanks guys!!!

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: To compare one cell to another cell

    You could use this macro:

    Please Login or Register  to view this content.



+ 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