+ Reply to Thread
Results 1 to 4 of 4

Compare number and color cell if biger or smaller

  1. #1
    Registered User
    Join Date
    02-23-2013
    Location
    albania
    MS-Off Ver
    Excel 2010
    Posts
    16

    Compare number and color cell if biger or smaller

    Hello

    I have my hourly work file and i want to color cells with red if the number is biger than colum E and green if is smaller. i do il manually but i wanted to know that if can be auto fill every time i write the numbers. Oh but also can allow me to ad employers at Max 200 names.

    Thank you here is the example.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Compare number and color cell if biger or smaller

    Why, in your original file is cell K5 green? Shouldn't it be red? Why are cells S3 and S4 bright red?

    Using conditional formatting, this should solve the problem as stated.
    Highlight your range (F2:AF245)
    Hit Conditional Formatting
    Say you want to use a formula
    Type in this formula:
    =AND(NOT(ISBLANK(F2)),$E2>F2)
    and then format it as a red background
    Add another rule with this formula
    =AND(NOT(ISBLANK(F2)),$E2<F2)
    and format as green background

    I did not include an attachment, since when I tried to save the file it said it had active x control code or web extensions. Not sure what is up with your file, but it was too suspicious for me to upload.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    02-23-2013
    Location
    albania
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Compare number and color cell if biger or smaller

    I dont know what was the prob with the download but the answer was very helpfull

    Thnx a lot

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Compare number and color cell if biger or smaller

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 07-25-2013, 08:24 AM
  2. [SOLVED] Cell color will be changed based on its value compare with previous cell value
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2013, 02:09 PM
  3. Replies: 1
    Last Post: 06-14-2010, 08:38 AM
  4. changing color of values bigger or smaller than target
    By Fedde in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 03-27-2006, 08:28 AM
  5. How to print gridlines biger
    By Beto in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-31-2006, 07:45 PM

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