+ Reply to Thread
Results 1 to 4 of 4

Color fill when date is entered

  1. #1
    Registered User
    Join Date
    10-12-2019
    Location
    Portland
    MS-Off Ver
    OR
    Posts
    2

    Color fill when date is entered

    Good Day everyone,
    I need some help on figuring out a formula that will turn an entire row a color(gray) when a final date is entered.

    Job Number Vessel Name Customer Task Assigned Location Projected start date Projected end date Actual start date Actual end date
    Glenpark/T2 Draft Survey Johnnie T2 10/14/2019 10/15/2019 10/11/2019 10/11/2019

    SO when someone enters the actual end date it would gray out that row only. All rows need to be independent on each other as some may end before the row above or below.
    I wouldnt hate it either if it removed them to another sheet but thats not a level I am at.. LOL

    Thanks for any help you can give.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Color fill when date is entered

    Hi

    Alll you need is some conditional formatting.

    click on the top left hand corner of excel to select all cells

    Select the home tab and then conditional formats

    Select New Rule

    Select Use Formula to determine formatting

    Enter this formula into the formula box =$I1>0

    I think column I is your final date.

    Select format

    Select Fill

    Select the colour you want.

    Press Okuntil you get out of conditional formatting.
    Last edited by mehmetcik; 10-12-2019 at 04:19 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Color fill when date is entered

    It is difficult to write good code based on a user's headers, although it can be done. It is better if you use column letter and row number references to define where your data resides. However, assuming that End Date is located in column "I", this event code would do what you want. To use the code, copy it to the worksheet code module of the sheet where the date would be entered by right clicking the sheet name tab, then select view code from the pop-up menu. When the code is installed, save the file as a macro enabled workbook and close the vb editor window. The code would then run when an entry is made into Column I.

    Please Login or Register  to view this content.
    BTW, you can upload a file to the forum share server by clicking the 'Go Advanced' button at the bottom of the reply box, then click 'Manage Attachments' and follow the menu.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  4. #4
    Registered User
    Join Date
    10-12-2019
    Location
    Portland
    MS-Off Ver
    OR
    Posts
    2

    Re: Color fill when date is entered

    Thanks FOlks, I am going to give this a whirl. I will ensure next time I just upload it. Was trying to give as much data as possible.

    Here goes everything! haha

+ 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] Formula Needed to fill in color on multiple cells when a word is entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2013, 05:42 PM
  2. [SOLVED] How to Auto fill the date when data is entered in another cell
    By Shaunb2000 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-24-2013, 06:36 PM
  3. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 PM
  4. [SOLVED] Auto-fill Date when text is entered in another cell
    By Fett2oo5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2013, 04:12 PM
  5. Color fill a cell and then remove the color when a date is added.
    By texas tornado in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2012, 02:14 AM
  6. Replies: 2
    Last Post: 08-09-2011, 09:54 AM
  7. Replies: 2
    Last Post: 04-14-2005, 12:06 AM

Tags for this Thread

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