+ Reply to Thread
Results 1 to 20 of 20

I Need the exact difference between to dates, Birth and Death

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    I Need the exact difference between to dates, Birth and Death

    When I put the formula into the test spreadsheet the attached is what it looks like, when I put the formula into the actual spread sheet I am using (A test sheet was made because I did not want to screw up 4400 lines of information) I get 0 years 0 month/s zero day/s
    Attached Files Attached Files
    Last edited by Asgard221; 12-28-2022 at 08:55 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    try

    DATEDIF() function

    H
    I
    2
    84 years 2 month/s 16 day/s =DATEDIF(D2,E2,"Y")&" years "&DATEDIF(D2,E2,"YM")&" month/s "&ABS(DATEDIF(D2,E2,"MD"))&" day/s"
    3
    84 years 1 month/s 8 day/s
    Last edited by sandy666; 12-27-2022 at 07:09 PM.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,900

    Re: I Need the exact difference between to dates, Birth and Death

    tutorial https://exceljet.net/formulas/get-da...-between-dates
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2506
    Posts
    13,791

    Re: I Need the exact difference between to dates, Birth and Death

    Similar to sandy666 but shorter: enter this formula in F2 and copy down.
    Formula: copy to clipboard
    =DATEDIF(D7,E7,{"y","ym","md"})&{" years"," months"," days"}



    D
    E
    F
    G
    H
    1
    Birth
    Death
    Age
    2
    10/06/1938
    12/22/2022
    84 years
    2 months
    16 days
    3
    11/12/1938
    12/20/2022
    84 years
    1 months
    8 days
    Dave

  5. #5
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    That you for they reply, It does not work either, but it may be me. How do you have the cells in D2 AND D3 AND E2 AND E3 formatted?

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    your dates are text not a dates
    re-enter them and try again

    textdate.png

    normally dates are right-aligned automatically because date is a number
    Last edited by sandy666; 12-28-2022 at 06:52 PM.

  7. #7
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    Thank you sandy666, I have changed all cells to date (Long date), I have the same result as before.
    Attached Files Attached Files

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    as I said, RE-ENTER dates

  9. #9
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    OK, I have re-entered the dates (I take it you mean to re type them into the boxes now that it says date) I did not seem to make a difference.
    Attached Files Attached Files

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    what kind of date format are you using?

    dd/mm/yyyy or mm/dd/yyyy

    use the same as your system date is

    22/12/2022
    12/20/2022

    as you can see one is date and the second is a text (a year has only 12 months )



    Birth Death Age
    10/06/1938 12/22/2022
    #VALUE!
    11/12/1938 12/20/2022
    #VALUE!
    06/10/1938
    22/12/2022
    84 years 2 month/s 16 day/s
    12/11/1938
    20/12/2022
    84 years 1 month/s 8 day/s
    Attached Files Attached Files
    Last edited by sandy666; 12-28-2022 at 07:20 PM.

  11. #11
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    Well, now that may be part of the problem, I have entered them as the system date format and it works, except both lines are the exact same answer. As per attached.
    Attached Files Attached Files

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    it seems to be ok

    and DON"T USE ALIGNING before you end your work !!!

    datealign.png

    you should be more carefully not only copy/paste

    reference.png
    Last edited by sandy666; 12-28-2022 at 07:33 PM.

  13. #13
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    I was just typing you back to say I seen that. I fixed it and it works, can you tell me why it is giving me 2 different date displays. as highlighted?
    Attached Files Attached Files

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    Quote Originally Posted by Asgard221 View Post
    can you tell me why it is giving me 2 different date displays. as highlighted?
    I don't see any highlighted cells

  15. #15
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    September 7, 1954
    February 14, 1955
    February 14, 1954
    December 28, 1954
    December 28, 1955
    1954-02-14
    1955-02-14
    1955-02-14

    I probably did not do it correctly, but this cut and paste shows it.

  16. #16
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    I figured that one out as well.
    I thank you for you help sandy666

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    dates are not the same here

    diffdates.png

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    You are welcome

    I just wanted to give up

    if the problem is solved, mark the thread as SOLVED (top above your first post - Thread Tools)

  19. #19
    Registered User
    Join Date
    12-17-2020
    Location
    Nova Scotia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: I Need the exact difference between to dates, Birth and Death

    NEVER give up. This is only the second time that I asked for help, and the other time was a few years ago. Where do I place the "SOLVED"

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: I Need the exact difference between to dates, Birth and Death

    scroll up and on the right side you should see Thread Tools

    tt.png

+ 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] Exact Difference of Two Dates
    By kmrz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2019, 10:41 PM
  2. Replies: 3
    Last Post: 02-25-2019, 02:05 PM
  3. Formulas Calculating Age based on Date of Birth & Date of Death
    By MELLOW YELLOW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2014, 03:27 PM
  4. [SOLVED] Calculating a future dates based on dates or birth.
    By CDobby in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-31-2012, 11:22 AM
  5. [SOLVED] Cemetery birth and death date sort
    By Lorene Schertzl in forum Excel General
    Replies: 1
    Last Post: 03-17-2006, 11:40 PM
  6. [SOLVED] How do I work out people's exact ages from their Dates of Birth?
    By krakowba in forum Excel General
    Replies: 6
    Last Post: 01-20-2006, 01:45 PM
  7. bar graph showing year of birth and death of several people
    By Tom Gettys in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-05-2005, 01:05 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