+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Cedar Falls, IA
    MS-Off Ver
    2010
    Posts
    2

    Conditional formatting

    HELP PIC.jpg

    I want Cell A2 to fill with gray if the cell next to it (B2) contains "D-".
    Same for A3 and B3
    Same for A4 and B4
    ...and so on.

    Can't seem to find the correct was to do this. I don't want the one rule for each cell... if it doesn't have a "D-" then it will not change.

    Please help!

  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,929

    Re: Conditional formatting

    Hi, welcome to the forum

    Your pic did not come through, and anyway please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    Having said that...

    1. highlight the range you want to apply the conditional formatting to (the data in ciolumn A...but not the whole column, just your range)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$D2="D-"
    format fill GREY
    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
    09-23-2014
    Location
    Cedar Falls, IA
    MS-Off Ver
    2010
    Posts
    2

    Re: Conditional formatting

    I apologize on the picture. I have attached my document (at least I tried) and hope I can get some help.

    I attempted your formula and I have to be doing something wrong... since nothing changes.

    Notice in the file I already have some that are filled Gray... but those were all manually. I would love to have it autofill when the cell next to it contains "D-".

    Thanks!

    BC
    Attached Files Attached Files

  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,929

    Re: Conditional formatting

    aahh you didnt say thats not all that was in the cell lol

    change the formula to this...
    =LEFT(H2,2)="D-"

+ 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. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  2. 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
  3. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  4. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  5. 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