+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting Based on Value of Another Cell

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Conditional Formatting Based on Value of Another Cell

    Hello again everyone! I was hoping that someone could help me with a formula. I haven't used Excel in a while so I am very rusty and in a time crunch so I am again asking for some help. 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 and to have no fill (default) if it is greater than that date. How would I do this? Any suggestions? Thank you for your help!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Conditional Formatting Based on Value of Another Cell

    Try this....
    Select A1 and make a New Rule for conditional formatting using the formula given below and set format as per your choice.

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Re: Conditional Formatting Based on Value of Another Cell

    Thank you Skt! Do you know if you an apply conditional formating on a cell if a date is between a range? For example, A1 has text. I want A1 to turn grey is B1 has a date between 1/1/14 and 2/1/14? Thanks

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Conditional Formatting Based on Value of Another Cell

    Try this rule for conditional formatting........

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting Based on Value of Another Cell

    Quote Originally Posted by katkth7533 View Post
    I want A1 to turn grey is B1 has a date between 1/1/14 and 2/1/14? Thanks
    One way...

    =B1=MEDIAN(B1,41640,41671)

    41640 is the date serial number for 1/1/2014
    41671 is the date serial number for 2/1/2014

    Or, you could use this one...

    =(B1>=41640)*(B1<=41671)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Re: Conditional Formatting Based on Value of Another Cell

    Actually, neither worked. I am stumped!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting Based on Value of Another Cell

    Can you post a SMALL sample file so we can see what's happening?

  8. #8
    Registered User
    Join Date
    07-21-2014
    Location
    Toronto, ON
    MS-Off Ver
    MS Office 2010
    Posts
    55

    Re: Conditional Formatting Based on Value of Another Cell

    Hi Tony. I have attached my file. I hope this is small enough! On the tab titled "PIPELINE", in cell Z2, I want the left border to be red if the date in cell BF1 is between 9/30/14 and 10/31/14. That date (BF1) is a link to a cell on the "DATA ENTRY" tab. The thought with this file is that an end user will enter required info in the "DATA ENTRY" sheet that will populate the "PIPELINE" page which is a visual representation of the data. This sheet will be locked so no formatting will be lost. The Z2 red line is a status date line which will move each month. This formula will be in every cell in that second line above the months/years. I hope that is clear.
    Thank you for looking at this. Very frustrating!
    Attached Files Attached Files

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting Based on Value of Another Cell

    Ok worked for me.

    Since your file is in the *.xls format I did this in Excel 2002...

    Select cell Z2 (is that the right cell to format?)
    Goto Conditional formatting
    Use the "Formula Is" option
    Formula: =(BF1>=41912)*(BF1<=41943)

    41912 = date serial number for 9/30/2014
    41943 = date serial number for 10/31/2014

    Click the Format button
    Select the Border tab
    Select the desired color from the drop down
    Select the desired line style
    In the box on the left click whichever borders you want to format
    OK out

+ 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. [SOLVED] Conditional Formatting based on another cell
    By Blade Fisher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-28-2013, 08:33 AM
  2. Conditional Formatting of Max Value based on another cell
    By ThinkTank7 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-24-2013, 04:22 PM
  3. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  4. Replies: 4
    Last Post: 01-06-2012, 05:07 PM
  5. conditional formatting based on different cell.
    By CJPHX in forum Excel General
    Replies: 4
    Last Post: 06-19-2010, 02:41 PM

Tags for this Thread

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