+ Reply to Thread
Results 1 to 4 of 4

Applying conditional formatting to multiple cells in a Column

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Applying conditional formatting to multiple cells in a Column

    For the life of me I haven't been able to figure out a proper way to do this besides manually updating each cell. This seems like such a simple task but hard to figure out. After 1 year of manually doing it I decided to ask for help and see if there is a faster way to do this because I will be doing this for more years to come lol. So here is my test excel sheet:

    A1 Value = "167"
    B1 Value = "0"

    I click on B2 and click on Conditional Formatting and set it up so that [IF B1 value =A1 value then B1 bgcolour is Green]. Simple right? Yes.

    Heres, where it gets tricky for me...

    How do I copy and paste this conditional formatting so that I can continue this pattern so that [IF B2 value = A2 then bgcolour is Green] ?

    If you tell me to click on the fill button and drag down, it won't work because Excel will screw up the conditional formatting so that
    [IF B2 value is A1 then bgcolour is Green]
    [IF B3 value is A1 then bgcolour is Green]
    [IF B4 value is A1 then bgcolour is Green]
    [IF B5 value is A1 then bgcolour is Green]

    The conditional formatting does not want to increase A1 to A2, A3, A4, A5 etc.

    What is the best way to copy and paste my conditional formatting formula so that the conditional formatted cell checks the cell to its left to verify data?

    I have included a visual example of an attached XLS file to make it easier for you to understand and try out yourself.
    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Applying conditional formatting to multiple cells in a Column

    In Excel, dollar signs ($) lock the part of the reference they precede.
    examples:
    =$A$1....when copied anywhere, will ALWAYS refer to cell A1
    =$A1....when copied anywhere, will ALWAYS refer to Col_A
    =A$1....when copied anywhere, will ALWAYS refer to Row_1

    so...Change the formula in your conditional formatting to remove the dollar signs.
    Example:
    •Select B1:B3, with B1 as the active cell
    •Format.Conditional_Formatting
    •••Formula is: =B1=A1
    •••Click the Format button and set the fill color
    •••Click: Ok

    Note: if the CF formula was set to =B1=$A$1...then every cell would be compared to A1.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    06-26-2009
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Applying conditional formatting to multiple cells in a Column

    Try creating the conditional format in Cell B1

    Then autofill all the way down. Once autofilled, click the little box at the end (it has some cells and a small "+" sign in it - it should write "Autofill Options" and select Fill Format Only)

    It should copy the conditional formats for you

    or else you can copy cell b1 - paste - paste special - formats all the way down column B

  4. #4
    Registered User
    Join Date
    01-25-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Applying conditional formatting to multiple cells in a Column

    Wow thanks so much! I always overlooked the dollar signs because my cells were formatted for currency and figured it was linked to the type of cell and not a symbol for locking. Both solutions work very well
    Cheers!

    I hope this post can help others with the same situation!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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