+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Keep cells blank until argument cell is filled-in

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    [SOLVED] Keep cells blank until argument cell is filled-in

    I'm working on a spreadsheet with cells formatted as dates (14-Mar-01). My goal is to enter a date in cell A2 and have cells B2, C2 and D2 populate based on the date in A2. However, I want them to remain blank until A2 is populated. With my current formulas below, I'm getting the results I'm looking for when a date is put into column A, but when column A is blank, it still shows a date in B2, C2 and D2.

    Here's my current formulas:

    D2 - =DATE(YEAR(A2)+1,MONTH(A2)+1,DAY(1))

    C2 - =D2-15

    B2 - =C2-60

    With the current formulas, it provides the following results, with nothing entered in A2:

    D2 - 01-Feb-01

    C2 - 17-Jan-01

    B2 - 18-Nov-00


    So, how do I keep them blank until A2 is populated? I realize I only need to modify the D2 formula, but I'm not sure what I need to add to it to make it work.

    Please help!
    Attached Files Attached Files
    Last edited by Juliet_Bravo; 08-02-2013 at 12:57 PM. Reason: Marking as [SOLVED]

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Keep cells blank until argument cell is filled-in

    Wrap all your formulas in an IF() statement
    D2 =IF(A2="","",DATE(YEAR(A2)+1,MONTH(A2)+1,DAY(1)))

    C2 =IF(A2="","",D2-15)

    B2 =IFA2="","",C2-60)
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    [SOLVED] Re: Keep cells blank until argument cell is filled-in

    Thanks for the quick response, Criag K. that worked perfectly...just needed to add a parenthesis to the B2 formula =IF(A2="","",C2-60)

  4. #4
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: [SOLVED] Keep cells blank until argument cell is filled-in

    Those pesky parentheses will get you every time.

+ 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. Conditional formating multiple cells based on blank or filled single cell.
    By turbotank in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-13-2012, 12:11 PM
  2. Collecting data from filled cells and skipping blank cells
    By KellieB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-20-2012, 09:45 PM
  3. Replies: 12
    Last Post: 07-10-2012, 05:04 PM
  4. Excel 2007 : Blank Cells to be filled up
    By sushil10s in forum Excel General
    Replies: 6
    Last Post: 02-10-2012, 11:43 AM
  5. [SOLVED] Can i reduce my file that's 29 MB but filled with blank cells?
    By zapadias in forum Excel General
    Replies: 3
    Last Post: 08-18-2005, 09:05 AM

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