Results 1 to 6 of 6

Thread: Conditional Formatting question

  1. #1

    Conditional Formatting question



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi can you apply two conditional formats to a single cell

    ie. If cell A1 contains any "text" format it with fill red with top and side borders , or if cell A1 contains "no text" at all Fill White and with top border only.

    I can get it to do one thing but not both with =$A1<>""


    Many thanks in anticipatation

  2. #2
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,489
    Articles
    0
    Excel Version
    Excel 2016
    You would just need to add another condition (i.e. New Rule) with formula =$A1="" and your Fill White and with top border only formatting


  3. #3

    Conditional formatting

    Quote Originally Posted by NBVC View Post
    You would just need to add another condition (i.e. New Rule) with formula =$A1="" and your Fill White and with top border only formatting
    If the column "A" has a variable length ie could be 13 cells deep A1:A13, 9 cells deep A1:A9, 4 cells deep A1: A4 etc depending on a formula in the column (These cells will contain "TEXT") how can I conditional format the cell after last cell that contains "text as this will be blank except for the formula. please see attached Jpeg to explain better.

    Click image for larger version. 

Name:	Tables.jpg 
Views:	8 
Size:	89.9 KB 
ID:	1463

  4. #4
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,462
    Articles
    0
    Excel Version
    2010 on Xubuntu
    You can try =AND($A2="",$A1<>"") as CF for adding the borderline in the last cell

  5. #5

    Conditional Formatting

    Quote Originally Posted by Pecoflyer View Post
    You can try =AND($A2="",$A1<>"") as CF for adding the borderline in the last cell
    Thank you that works nicely. can you cange the border thickness in conditional Formatting ?

  6. #6
    Super Moderator NBVC's Avatar
    Join Date
    May 2011
    Location
    Mississauga, Canada
    Posts
    1,489
    Articles
    0
    Excel Version
    Excel 2016
    Unfortunately not. You can change border style and colour only.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •