+ Reply to Thread
Results 1 to 9 of 9

Conditional Format to draw top and bottom borders at first and last of a group of text

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Conditional Format to draw top and bottom borders at first and last of a group of text

    I want to use conditional format to make box borders in my table. The condition is that if there is information in column C, then the format will put a top border and a bottom border in the table, but doing this puts lines across every row. I need a condition that says to do the top line across the whole table at the first row of information in column C, and the bottom line across the whole table at the last row of information in column C. I have conditionally formatted the side lines but can not manage to do the top and bottom lines. I have included 3 attachments: 1) My table so far with conditionally formatted side borders. 2) Manually draw in lines of what I want it to look like. 3) Conditional Format formulas that I have used so far. I have posted this question before but got no response, so I thought I would try to re-word it. Please Help, I'm only new to excel and new to posting.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    Hello JoJO,

    Find The attached file it slightly differs from your original requirement. I have removed your old formula and kept only one formula in the conditional formatting. Hope this will be useful to you
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    10-11-2013
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    Thank you hemesh for your reply. This has got me much closer to what i am try to achieve. Putting lines in the right place, but as I do not want the lines to be done on every row. Just the first and last row.maybe there is a formula to now hide the middle lines or duplicate lines. Further help from anyone would be appreciated.

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

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    Hi and welcome to the forum

    I removed the CF's that you had and replaced then with these...
    Top line =AND($C4="",$C3<>"")
    bottom line =AND($C3="",$C4<>"")
    for the formatting for both rules use Border/Top line

    I used this as the range...=$A$4:$K$53
    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

  5. #5
    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,933

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    Happy to help and thanks for the feedback

    I will mark this thread SOLVED for you (this time), for future reference, you can mark your threads SOLVED (to keep things neat and tidy lol) by using the THREAD TOOLS at the top of the page

  6. #6
    Registered User
    Join Date
    10-11-2013
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    I thank you very much FDibbins !!! This worked. I had spent so much time trying to work this out myself and trying to get online help and had no resolve. I probably could have drawn them in by hand but I am too stubborn for that and I knew there must be a formula. I just did not know how to do it. So once again THANK YOU. Your a gem.

  7. #7
    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,933

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    Thanks for the kind words, always appreciated

  8. #8
    Registered User
    Join Date
    10-11-2013
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    thanks for doing the (SOLVED) for me, you bet me to it, the kids were grabbing at my ankles and I was dragged away. LOL

  9. #9
    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,933

    Re: Conditional Format to draw top and bottom borders at first and last of a group of text

    LOL gotta love the lil ankle-biters

+ 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. Replies: 3
    Last Post: 10-21-2013, 11:36 PM
  2. Draw bottom border on every rows from top to bottom
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2013, 09:52 AM
  3. conditional format borders
    By JapanDave in forum Excel General
    Replies: 6
    Last Post: 12-04-2011, 09:25 PM
  4. Sub-Group BORDERS varying in THICKNESS via conditional formatting
    By e4excel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2011, 01:57 AM
  5. Conditional Format for Cell Borders
    By CA_ME in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2008, 05:42 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