+ Reply to Thread
Results 1 to 11 of 11

Color third cell if cell 1 is filled, and cell 2 is not

  1. #1
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Color third cell if cell 1 is filled, and cell 2 is not

    Hi,

    I'm trying to make a simple overview to see if translations are done.

    I would like to color the third cell if cell 1 is filled, and cell 2 is not. It's enough that the cell which is missing is being highlighted red. I don't necessarily need cells which are done to be highlighted green. I hope the example will illustrate it better than I can explain it.

    Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    You cannot change the status of one cell based on the colour of another without VBA. Shall I move the thread for you?

    EDIT: Having now looked at your workbook, I really can’t decide what it is you are trying to do!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    Ali, I was just looking at this 1. I think OP wants to add color to a cell, so it would (I think) need CF for this? (I could be totally off the mark here, I have been before lol)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    See my edit - the workbook doesn’t seem to match the description above. Confused!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    You were almost there, it should be
    =IF($E2<>"",$F2="")

  6. #6
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    Will 1st column always contain data?

  7. #7
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    After playing around with it I think I came up with solution with Conditional Formatting

    Highlight 3rd Column (Column C)
    In Home tab click on Conditional Formatting
    Click on New Rule
    Click on Use a formula to determine which cells to format
    In Format values where the formula is true box type =$b2:$b99<>""
    Next to Preview box click Format
    Click on Fill
    Select Green color
    Click on OK then OK

    Highlight 3rd Column (Column C)
    In Home tab click on Conditional Formatting
    Click on New Rule
    Click on Use a formula to determine which cells to format
    In Format values where the formula is true box type =isblank($b2:$b99)
    Next to Preview box click Format
    Click on Fill
    Select Red color
    Click on OK then OK

  8. #8
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    Thanks guys for all your input.

    I included all your solutions, but I am not quite there yet, but close!

    It need to be based on if there is something typed in the first row, much like Fluff13's solution. BUT now I was wondering if it could be highlighted only in the missing cell itself?

    uRXRzIM.png
    Attached Files Attached Files

  9. #9
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    So just remove the conditional formatting that Fluff13 put in column E (and obviously leave the conditional formatting in for column F)?

  10. #10
    Registered User
    Join Date
    11-19-2019
    Location
    Europe
    MS-Off Ver
    Office 365 ProPlus
    Posts
    32

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    I should have figured. Thanks, Croweater. Thanks all.

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Color third cell if cell 1 is filled, and cell 2 is not

    You're welcome & thanks for the feedback.

+ 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. VBA code to color cell a if cell b is color filled.
    By erimhast in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2015, 08:23 PM
  2. [SOLVED] Color a cell if in the filled interval
    By marcincowski in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2013, 02:50 PM
  3. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  4. Copy and Paste a Row When a Cell is Filled with the Color Red
    By NaNaBoo in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-07-2009, 09:24 AM
  5. Only count a cell filled in with color
    By spowell in forum Excel General
    Replies: 2
    Last Post: 02-05-2009, 10:39 PM
  6. [SOLVED] Can an IF formula result in a color filled cell in Excel?
    By alesia in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. Can an IF formula result in a color filled cell in Excel?
    By alesia in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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