+ Reply to Thread
Results 1 to 5 of 5

Calculating years with 'if empty' column

  1. #1
    Registered User
    Join Date
    05-03-2020
    Location
    Izegem, Belgium
    MS-Off Ver
    365
    Posts
    8

    Calculating years with 'if empty' column

    Hello,

    I have two columns with a date (column F and G)
    I want to calculate the amount of years between the two dates in column H.
    But what if column G is empty ?

    This is my formula, but it troughs an error, (too less arguments).
    I don't know what is wrong.
    Can someone help me please.

    Formula_Dates.jpg


    =ALS(ISLEEG(G5);(DATUMVERSCHIL(F5;VANDAAG());"y");(DATUMVERSCHIL(G5-F5);"y"))

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: Calculating years with 'if empty' column

    Welcome to the forum.

    I think you need another bracket after "y"):

    ...;"y"));...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-03-2020
    Location
    Izegem, Belgium
    MS-Off Ver
    365
    Posts
    8

    Re: Calculating years with 'if empty' column

    Thank you AliGW.
    I tried, but I get the same message.

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Calculating years with 'if empty' column

    It is better to post the formula in English on an English-language forum. It is even better to place a sample file
    In Dutch
    Please Login or Register  to view this content.
    In English
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-03-2020
    Location
    Izegem, Belgium
    MS-Off Ver
    365
    Posts
    8

    Re: Calculating years with 'if empty' column

    Thank you very much.
    The formula works fine.

    I wll keep it in mind to post in English.

    Thanks,
    Tom

+ 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] Help with =IF/And OR vs calculating DOB less than 18 years of Age
    By nr6281 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2019, 06:26 AM
  2. Calculating how many years £x will last
    By Ian99099 in forum Excel General
    Replies: 2
    Last Post: 03-25-2019, 12:27 PM
  3. [SOLVED] Calculating Years of Service in YEARS and MONTHS
    By joliver in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 10-07-2013, 10:22 AM
  4. Calculating Number of Empty Cells in a Column
    By ktpalmer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2010, 07:55 AM
  5. Calculating % Rate over years
    By Fabbyfil in forum Excel General
    Replies: 4
    Last Post: 07-30-2009, 04:11 PM
  6. Replies: 15
    Last Post: 12-09-2006, 05:27 PM
  7. calculating the years
    By DKY in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-20-2006, 03:10 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