+ Reply to Thread
Results 1 to 4 of 4

Conditional Format to Blue Fill and Blue Font IF two conditions are met

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    92

    Conditional Format to Blue Fill and Blue Font IF two conditions are met

    If Y4 > R4 and T4 = "B" then conditional format to blue font with blue fill and loop through the rest of the rows until the last row...

    How??

  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
    52,917

    Re: Conditional Format to Blue Fill and Blue Font IF two conditions are met

    Does it have to be VBA? the built-in CF will do this for you too.

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =and($Y4>$R4,$T4="B") format fill as needed
    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
    08-11-2015
    Location
    United States
    MS-Off Ver
    2010
    Posts
    11

    Re: Conditional Format to Blue Fill and Blue Font IF two conditions are met

    If you do want to use VBA, you can always nest your if statements:

    Please Login or Register  to view this content.
    Something like that should do it for you. Best of luck!
    Last edited by FDibbins; 08-25-2015 at 10:52 AM.

  4. #4
    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,917

    Re: Conditional Format to Blue Fill and Blue Font IF two conditions are met

    Aule, Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (I have added them for you - this time)

+ 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] Macro to select cell with smallest value in table, fill with light blue background.
    By Didomenicon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2014, 12:13 AM
  2. Replies: 1
    Last Post: 05-27-2014, 05:39 PM
  3. Delete Row if the Font RGB is not 0, 0, 255(Blue)
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-23-2014, 05:24 PM
  4. Turn cell A1 blue if any cells between $L$6:$Q$9 are blue
    By sandk0330 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 02:53 PM
  5. Count number of cells that contain red, blue or red and blue
    By kjshearon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2013, 11:26 AM
  6. vba code clear cells by color font dark blue
    By etheer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-14-2012, 08:29 AM
  7. delete row if the font color is blue
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2005, 07:40 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