+ Reply to Thread
Results 1 to 3 of 3

Compare values in two cells, plus conditional formating

  1. #1
    Registered User
    Join Date
    04-04-2007
    Posts
    2

    Compare values in two cells, plus conditional formating

    I have a situation that I need to compare a price from one given cell to a value of another cell, and decide if the price is higher or lower than the value in the first cell. After that, conditional formating needs to be applied.
    Example: Proper price for the product is $2.00, but the bid is $1.95. When I enter the value of $1.95 the cell needs to become red, alerting me that I am going under price.
    If it's possible the alert needs to go over a range of colors from red, orange, yellow, blue, green....for different differences from -$0.05 to +$0.05.

    Thank you for any help

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    In conditional formatting, use a formula as the criterion.

    e.g. =$A$1-$B$1> 0
    Martin

  3. #3
    Registered User
    Join Date
    04-04-2007
    Posts
    2
    Thought of that, but need more than 3 conditions, and couldn't figure it out the "Case" part in the VBA for more than 3 conditions. How to implement a forumula in that.

+ 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