+ Reply to Thread
Results 1 to 10 of 10

conditional formatting

  1. #1
    Registered User
    Join Date
    04-17-2017
    Location
    NASIK
    MS-Off Ver
    2007
    Posts
    12

    Lightbulb conditional formatting

    Hii..

    Can any one please help with conditional formatting based on adjacent 3 columns ???

    Eg

    if any of Cells in column A1 B1 C1 is filled red then Cell D1 must turn red.
    if any of Cells in column A1 B1 C1 is not filled red & is filled yellow then Cell D1 must turn yellow.
    if any of Cells in column A1 B1 C1 is not filled red nor filled yellow then Cell D1 must turn green.

    Please HELP !!!

    THANKS

  2. #2
    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
    53,048

    Re: conditional formatting

    Quote Originally Posted by chatterbox.swap View Post
    ...if any of Cells in column A1 B1 C1 is filled red then Cell D1 must turn red.
    How is the red in A1, B1 and/or C1 being applied in the 1st place?

    If it is applied manually, you may need VBA, but if there is some logic to how the red is applied, we could probably use that logic for D1
    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

  3. #3
    Registered User
    Join Date
    04-17-2017
    Location
    NASIK
    MS-Off Ver
    2007
    Posts
    12

    Re: conditional formatting

    Thanks Mr Ford for your quick reply.

    Yes it is applied manually. could you please share the VBA code ?

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: conditional formatting

    It is a risky approach identifying red or yellow, if it is always the same colour then it is doable, however if you get shades of red, it becomes very hit and miss. We don't know what red or yellow you use!


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    04-17-2017
    Location
    NASIK
    MS-Off Ver
    2007
    Posts
    12

    Re: conditional formatting

    Thanks davsth,

    i have attached excel file.

    Tried to fill maximum details, sorry if i skipped or missed something.

    Please look into & suggest.

    Thanks
    Attached Files Attached Files
    Last edited by chatterbox.swap; 03-11-2019 at 08:07 AM. Reason: Attachment changed to before & after

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: conditional formatting

    Not the complete answer, but hopefully on the way, you can finish off with conditional Formats
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-17-2017
    Location
    NASIK
    MS-Off Ver
    2007
    Posts
    12

    Re: conditional formatting

    Dear davsth,

    Thanks for the feedback.

    i have received the attachment but the cells in the final output column are not yet filled in that color which is in either RED, YELLOW or GREEN.

    Pls help

    Thanks

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,930

    Re: conditional formatting

    You could use logic and fill the cells with numbers as easily as colors. Proposal is modeled on the 'Before' sheet.
    1 for red, 2 for yellow and 3 for green.
    Column G is populated using: =IF(COUNTIF(B2:F2,1)>0,1,IF(COUNTIF(B2:F2,2)>0,2,3))
    Then use three conditional formatting rules applied to B2:G6
    Font and fill are red: cell value equal to 1
    Font and fill are yellow: cell value equal to 2
    Font and fill are green: cell value equal to 3
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    04-17-2017
    Location
    NASIK
    MS-Off Ver
    2007
    Posts
    12

    Re: conditional formatting

    Thanks so much all of you have helped me .

    You all are GREAT !!!

    THANKS

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,930

    Re: conditional formatting

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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