+ Reply to Thread
Results 1 to 11 of 11

Conditional formatting - Borders

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Conditional formatting - Borders

    Hi
    I have only just found out about conditional formatting (thanks to this forum!)
    i am trying to do the following but having trouble getting my head around it!

    if a2=0 then b2:b13=border

    Any help is greatly appreciated!!!

    Thanks
    Last edited by NBVC; 07-09-2009 at 01:07 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting - Borders

    Select B2:B13 and go to Format|Conditional Formatting

    Then pick Formula Is from the first drop down menu and enter formula

    =$A2=0

    Click Format and choose your borders from the Borders tab.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Re: Conditional formatting - Borders

    Can you take a look at this for me?

    I have applied a conditional format formula to cells a2:c9
    but it comes out all patchy and i have no idea why!!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540

    Re: Conditional formatting - Borders

    Strange- I couldn't see a reason it wasn't working either so I deleted the rule and reapplied it.

    See the attached version.
    Attached Files Attached Files
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting - Borders

    So what's it supposed to look like? Are you colouring all cells in A2:C9 based on value only in A1?

  6. #6
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Re: Conditional formatting - Borders

    yeah thats what im trying to do!!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting - Borders

    Then select A2:C9 and edit the Condition Rule to read:

    =AND(ISNUMBER(A2),$A$1=1)

    this will highlight all the cells with a number in it only when A1=1.

    if you want to colour the blanks too... then formula is: =$A$1=1

  8. #8
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Re: Conditional formatting - Borders

    Right i have tried to get my head around this using all your help but something is just not clicking!!

    can u see the attached and the note hopefully u will see the error of my ways!

    thanks
    Attached Files Attached Files

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting - Borders

    The formula in C4 is not giving the number 1, it is giving the text string "1"... change the formula to:

    =IF(B4="",3,1)

    Note:

    If you want to apply this condition on all rows, take the $ sign away from before the 4 in $C$4 in your conditional format... then you can copy that formatting to the remaining rows....

  10. #10
    Registered User
    Join Date
    07-06-2009
    Location
    Norwich
    MS-Off Ver
    Mac Excel 2008
    Posts
    26

    Re: Conditional formatting - Borders

    Awesome! what a school boy error!! thanks so much for your help!!

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting - Borders

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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