Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Excel Formula for Conditional Format

  1. #1

    Excel Formula for Conditional Format



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi everyone! I was hoping that someone could help me with a formula. I am drawing a blank. In Excel, I want to do conditional formatting on a cell based on the value of another cell. For example: in cell A1, I have text. I want this cell to have a grey background if the value of cell B1 is less than or equal to 1/31/14. How would I do this? Any suggestions? Thank you for your help!

  2. #2
    Good morning,

    Select the range in column A and create a new conditional formatting rule. Use:

    =b1<=41670

    You might be able to enter an actual date, but this is the numerical equivalent.

    Best of luck,

  3. #3
    You can use

    =B1<=DATE(2014,1,31)

    or

    =B1<--"31-Jan-2014"

  4. #4
    Thank you Bgore. This worked using the numerical equivalent. Do you know if it is possible to apply conditional formatting if a date is between a range? For example, cell A1 will turn grey if cell b1 is between 1/1/14 and 2/1/14?

  5. #5
    Hello again,

    You're very welcome. That is also possible. Bob's format seems cleaner so I will use it:

    =AND(B1<DATE(2014,1,1),B1>DATE(2014,2,1))

    Also, if the date range is dynamic, you could place the begin and end dates in cells somewhere and reference those.

    Hope this helps,

  6. #6
    I think you mean

    =AND(B1>=DATE(2014,1,1),B1<DATE(2014,2,1))

    it cannot be before 1st Jan AND after 1st Feb, there is no overlap there.
    Last edited by Bob Phillips; 2014-08-08 at 08:13 PM.

  7. #7
    Yea :-\, sorry I was in a hurry.

  8. #8
    Quote Originally Posted by bgoree09 View Post
    Yea :-\, sorry I was in a hurry.
    Thank you. I will try this now. I gratefully appreciate all the help. It is amazing how you lose all this info when you don't use it. Have a wonderful day!

  9. #9
    I tried both of these and it is not working. UGH! So frustrating! I tried several different formulas too. I am sure I am doing something stupid but can't figure it out. Getting function errors and I have double-checked the syntax and the cell references and all looks correct. I have attached my file to show what I am doing. On the tab titled "PIPELINE", in cell Z2, I am trying to add a conditional format that if the date in cell BF1 is between 9/30/14 and 10/31/14 the left margin of the Z2 cell will be a red border. Nothing seems to work. Even if I don't get an error message, the border doesn't appear. Perhaps you see something that I am doing wrong. The date in cell BF1 is a link to a cell on the tab called "DATA ENTRY". My thought with this spreadsheet is that an end user will enter required info on the "DATA ENTRY" sheet that populates the spreadsheet in "PIPELINE" which is a visual presentation of the data. That red line is a status date and will move each month.
    Attached Files Attached Files

  10. #10
    Hello again,

    Please see the attached file.

    Hope this helps,
    Attached Files Attached Files

Page 1 of 2 1 2 LastLast

Tags for this Thread

Posting Permissions

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