+ Reply to Thread
Results 1 to 5 of 5

Average Age from Download??

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    Lincoln, NE
    MS-Off Ver
    Excel 2007
    Posts
    3

    Average Age from Download??

    I am trying to find the average age from a downloaded group. The format of the birthdate is yyyymmdd.
    For example:
    A1: 20020101
    A2: 20010101
    A3: 19990101

    If I convert the file using =Date(mid(A1,1,4),MID(A1,5,2),MID(A1,7,2)) the dates are as follows:
    B1: 01/01/2002
    B2: 01/01/2001
    B3: 01/01/1999

    I used the formula =DATEDIF(AVERAGE(B1:B3),TODAY(),"y") this results in a #value! error. I know it has something to do with the original download. Any help is appreciated.
    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Average Age from Download??

    That works for me - as long as your conversion formula returns valid dates then the DATEDIF function should work OK
    Audere est facere

  3. #3
    Registered User
    Join Date
    02-13-2012
    Location
    Lincoln, NE
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average Age from Download??

    I don't konw what I am doing wrong, it is still giving me a #value! error. The original downloaded file is in a table, would that have anything to do with my problem??

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Average Age from Download??

    I assume you have more than the 3 dates shown in your example - are you sure the conversion formula is working for all the dates? Can you attach the file or the relevant part(s)?

  5. #5
    Registered User
    Join Date
    02-13-2012
    Location
    Lincoln, NE
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average Age from Download??

    I GOT IT! After reviewing everything for the 5th time, I sorted the file thinking there may be one of 7,000 files entered incorrectly causing my formulas to fail. There was one! Now It works. Thank you for your time it was huge a help because it confirmed what I was trying/doing.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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