+ Reply to Thread
Results 1 to 8 of 8

Add row borders based on number of instances

  1. #1
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Add row borders based on number of instances

    We have tried to apply conditional formatting to Cell A2 to add borders to A2:F100 in the attached example. This is on the right track but not quite where we want to be, we currently copy and paste our data (which changes everyday, example on the 'PasteThis' Tab) and are looking to to have the end product look like the 'Goal' Tab, with thick borders around the outside of rows A:F based on the number of instances. Any help in achieving this end product would be greatly appreciated!
    Thanks.
    Last edited by Pierce Quality; 08-02-2013 at 02:21 PM.

  2. #2
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Add row borders based on number of instances

    Bumping along

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Add row borders based on number of instances

    Hi Pierce,
    It is not possible to have thick borders with conditional formatting.
    See if this would work for you :
    Attached Files Attached Files

  4. #4
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Add row borders based on number of instances

    Quote Originally Posted by GC Excel View Post
    Hi Pierce,
    It is not possible to have thick borders with conditional formatting.
    See if this would work for you :
    This is very close for sure! We can live without the thick borders, but is there a way to add side borders on the outside of the rows?
    Thank you very much!

  5. #5
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Add row borders based on number of instances

    By adding 2 more conditions on column A and F :
    Attached Files Attached Files

  6. #6
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Add row borders based on number of instances

    Quote Originally Posted by GC Excel View Post
    By adding 2 more conditions on column A and F :
    This is perfect, thank you very much! If you have a few moments, could you explain the condition rules you used so we could understand them a little better?
    Thank you, very much appreciated!

  7. #7
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Add row borders based on number of instances

    In Cell A2:
    Condition #1 : if $A2<>$A1 ==> if cell is different then cell above then add horizontal line in column A to F
    Condition #2 : if $A2 <> "" ==> if cell in column A is not empty then add vertical line to the left of cell in column A

    In Cell F2:
    Condition #2 : if $A2 <> "" ==> if cell in column A is not empty then add vertical line to the right of cell in column F

  8. #8
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Add row borders based on number of instances

    Quote Originally Posted by GC Excel View Post
    In Cell A2:
    Condition #1 : if $A2<>$A1 ==> if cell is different then cell above then add horizontal line in column A to F
    Condition #2 : if $A2 <> "" ==> if cell in column A is not empty then add vertical line to the left of cell in column A

    In Cell F2:
    Condition #2 : if $A2 <> "" ==> if cell in column A is not empty then add vertical line to the right of cell in column F
    Thank you very much, we appreciate the knowledge!

+ 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] Format to add row borders based on number of instances
    By Pierce Quality in forum Excel General
    Replies: 9
    Last Post: 08-01-2013, 09:33 AM
  2. How to count a number of instances
    By jslag in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2010, 08:38 PM
  3. calculating the number of instances...
    By excelguru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2007, 10:21 PM
  4. Counting the number of instances
    By jswarb001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2007, 08:24 AM
  5. [SOLVED] Delete Rows based on number of instances
    By Guy Brown via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-04-2005, 02:06 PM

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