+ Reply to Thread
Results 1 to 9 of 9

How to add a border line automatically?

  1. #1
    Registered User
    Join Date
    02-09-2013
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    84

    How to add a border line automatically?

    I have this spreadsheet where A column has months and B column is arranged such a way that only December months has a value next to it. All other months are set to be empty

    So every month current month rolls of and months and values move up because it is linked.

    I want to create a condition where Only december months have a line border beneath it and I want this line to continue horizontally say 20 columns.

    How can I do that?

    Thanks

  2. #2
    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,939

    Re: How to add a border line automatically?

    Hui and welcome to the forum

    Have you tried using/looking into using Conditional Formatting?
    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

  3. #3
    Registered User
    Join Date
    02-09-2013
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    84

    Re: How to add a border line automatically?

    I highlighted column B and typed this formaula in new formatting rule under conditional formatting

    =$B:$B <>""

    But is it is not working not even for B column. I want the border to continue horizontally
    Last edited by misterno; 03-28-2013 at 05:24 PM.

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

    Re: How to add a border line automatically?

    If you can show me a sample of what you are working with (no sensitive info), along with what your desired outcome would be, we can see what we can do?
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    02-09-2013
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    84

    Re: How to add a border line automatically?

    I attached it

    All I want is I want to see a border under December months continue for whatever it takes horizontally
    December month cells and the valuenext to them moves up every time we are in the new month.

    Thanks
    Attached Files Attached Files

  6. #6
    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,939

    Re: How to add a border line automatically?

    OK so you want a line under row 12, 24, 36 etc?

    If that's the case, try this...

    1. highlight the range you want to apply the conditional formatting to (A5:AV90)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =MONTH($C5)=12 format border select bottom line
    Last edited by FDibbins; 03-28-2013 at 06:36 PM.

  7. #7
    Registered User
    Join Date
    02-09-2013
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    84

    Re: How to add a border line automatically?

    Quote Originally Posted by FDibbins View Post
    OK so you want a line under row 12, 24, 36 etc?

    If that's the case, try this...

    1. highlight the range you want to apply the conditional formatting to (A5:AV90)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =MONTH($C5)=12 format border select bottom line
    Thanks

    When I go to Home, there is no styles option beneath it. I am using Excel 2007 by the way
    Last edited by misterno; 04-01-2013 at 12:46 PM.

  8. #8
    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,939

    Re: How to add a border line automatically?

    so am I, when you select HOME on the ribbon, its the 5th tab along...clipboard/font/alignment/number/STYLES

  9. #9
    Registered User
    Join Date
    02-09-2013
    Location
    Florida
    MS-Off Ver
    Excel 2019
    Posts
    84

    Re: How to add a border line automatically?

    Thanks very much

+ 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