+ Reply to Thread
Results 1 to 5 of 5

Return blank date if there is no data in the input cell

  1. #1
    Registered User
    Join Date
    08-12-2022
    Location
    Parowan, Utah
    MS-Off Ver
    365
    Posts
    5

    Return blank date if there is no data in the input cell

    I am preparing a benefits tracking spreadsheet, and need to calculate the date COBRA would be effective (Column H) and terminate by default (Column I) based on the date an employee is terminated (Column F).

    I think I have managed the proper basic formulas/functions in Cells H7 and I7, with the input cell being F7, but when Column F is empty, I get funky dates in Columns H and I.

    I want Columns H and I to be blank if there's no information in Column F.

    new insurance tracker.xlsx

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Return blank date if there is no data in the input cell

    Try in H7: =IF(F7<>"";DATE(YEAR($F7);MONTH($F7)+1;1);"")

  3. #3
    Registered User
    Join Date
    08-12-2022
    Location
    Parowan, Utah
    MS-Off Ver
    365
    Posts
    5

    Re: Return blank date if there is no data in the input cell

    Unfortunately that formula returns an error and the Excel dialogue box doesn't tell where or what the error is.

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Return blank date if there is no data in the input cell

    Formula could be shortened to: =IF(F7="","",EOMONTH(F7,0)+1).

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Return blank date if there is no data in the input cell

    Replace the semi-colon to comma in HansDouwe's formula.

+ 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: 4
    Last Post: 02-26-2020, 04:06 AM
  2. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  3. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  4. [SOLVED] Cells in a range are all not blank, return maximum value (date), If 1 blank return 0
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2016, 11:14 AM
  5. Replies: 2
    Last Post: 04-01-2014, 04:40 AM
  6. [SOLVED] Date formula to return blank if cell is blank
    By DSgator1961 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2014, 12:43 PM
  7. [SOLVED] input date column A, increment B, select blank cell in D and input time. in a macro
    By jeffstu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 11:19 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