+ Reply to Thread
Results 1 to 6 of 6

Put the gridlines in automatically

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    279

    Put the gridlines in automatically

    Looking to put the gridlines in automatically when data is entered in a cell. So when i enter a date, 29 cells in that row automatically have the gridlines put around them.

    TIA

    Los

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Put the gridlines in automatically

    Select all of the columns you want to format.
    Select Conditional Formatting >> New Rule >> use formula...
    In the formula box put:

    =$A1<>"" (or the column with the date, if not column A)

    Click Format and choose your borders
    Last edited by protonLeah; 10-23-2015 at 02:30 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    279

    Re: Put the gridlines in automatically

    That auto magically put a border around the cells automatically. I only want a border if there is a date entered.

    I have attached the file, maybe i am putting it in wrong.

    any help would be greatly appreciated


    George
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    279

    Re: Put the gridlines in automatically

    Im stumped, I keep trying various formulas and nothing seems to work....I know there has to be an easy solution


    Los

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Put the gridlines in automatically

    The reason why you have the borders is because you chose A2:AC2 but in the formula you put
    $A1<>""
    It should be $A2<>""
    You should also select multiple rows when assigning the conditional formatting so you don't have to keep repeating it (or copying it) down the page.
    Make sense?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2021 for Mac
    Posts
    279

    Re: Put the gridlines in automatically

    Thank you ChemistB ....i knew it was something easy

    Los

+ 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. No gridlines yet gridlines are turned on
    By Curious Dude in forum Excel General
    Replies: 3
    Last Post: 03-03-2014, 09:35 PM
  2. Vertical Minor Gridlines Overlap Horizontal Major Gridlines
    By dsalzman in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-13-2012, 11:49 AM
  3. Automatically Show/Hide Gridlines And Headlines
    By Eric Excels in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-30-2011, 10:29 PM
  4. In Excel, gridlines won't print--File,PageSetup,Sheet,Gridlines--
    By 4most in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-10-2006, 03:34 AM
  5. In Excel, gridlines won't print--File,PageSetup,Sheet,Gridlines--
    By 4most in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-10-2006, 03:29 AM
  6. Gridlines
    By ju1eshart in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-01-2006, 11:45 PM
  7. [SOLVED] gridlines
    By Sewells in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-15-2005, 06:58 PM
  8. How do you add gridlines?
    By greenwood in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2005, 05: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