Results 1 to 5 of 5

Thread: Color Cell Fill With Conditional Format When Value Less Than Or Greater Than X

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Rep Power
    0

    Color Cell Fill With Conditional Format When Value Less Than Or Greater Than X

    My Financial Data has the following column headings:
    Col A : Shares of xxxx Co
    Col B: No. of Shares
    Col C: Date of investment (dd/mm/yyyy)
    Col D: Amount paid
    Col E: Date of Sale
    Col F: Amount Received
    Col G: Period held [using = Datedif(C,E)]
    Col H: Gain/Loss [diff of Col D and Col F]

    I want to highlight data as follows:

    If Col G is > 12 months then Col H Green
    If Col G is < 12 months then Col H Yellow

  2. #2
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Last edited by DocAElstein; 12-14-2023 at 02:47 AM.

  3. #3
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Use Conditional format with that logic.

    I just added an ISBLANK just to ensure that the cells aren't colored if there are no values in H
    Attached Files Attached Files
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  4. #4
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Rep Power
    0
    Dear Rick,

    I have not received any answer yet.

    Request your help.

    Thanks a lot in advance.
    :D

  5. #5
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Quote Originally Posted by Oh!Calcutta View Post
    Dear Rick,

    I have not received any answer yet.
    Yes you did receive a response... not from me, but from Excel Fox (one of this forum's administrators) who responded to you 39 minutes after you posted your question. Are you saying you cannot see his response?

Similar Threads

  1. Get Displayed Cell Color (whether from Conditional Formatting or not)
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 14
    Last Post: 10-21-2013, 07:11 PM
  2. Replies: 4
    Last Post: 06-01-2013, 01:08 PM
  3. Red Green Amber Three Color Conditional Format
    By paul_pearson in forum Excel Help
    Replies: 1
    Last Post: 03-07-2013, 06:50 PM
  4. Replies: 4
    Last Post: 02-22-2013, 02:24 AM
  5. Macro to clear data based on color fill
    By Howardc in forum Excel Help
    Replies: 7
    Last Post: 12-03-2012, 09:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •