+ Reply to Thread
Results 1 to 5 of 5

How to Calculate Age In 1-July-2016

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    How to Calculate Age In 1-July-2016

    hi all..

    i have formula to calculate age of students cut off per 1 july 2016

    this formula working in 2015 but not working in 2016, how to fix it 2016, 2017, etc...

    Please Login or Register  to view this content.
    how to modified well..

    any helps, thanks in advance..

    john mustofa
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: How to Calculate Age In 1-July-2016

    All you need to do is to change 2015 to 2016 in the formula (twice), like this:

    =INT(DATEDIF(L26;--"01-JUL-2016";"M")/12)&" tahun "&ROUND(MOD(DATEDIF(L26;--"01-JUL-2016";"M")/12;1)*12;2)&" bulan"

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: How to Calculate Age In 1-July-2016

    Quote Originally Posted by Pete_UK View Post
    All you need to do is to change 2015 to 2016 in the formula (twice), like this:

    =INT(DATEDIF(L26;--"01-JUL-2016";"M")/12)&" tahun "&ROUND(MOD(DATEDIF(L26;--"01-JUL-2016";"M")/12;1)*12;2)&" bulan"

    Hope this helps.

    Pete
    thank Pete, i have change 2015 with 2016, but not working but then after copy paste your formula, the result of working well...

    thanks a lot..

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: How to Calculate Age In 1-July-2016

    You can get the cut off date in D1,E1,...to the right automatically by:
    --TRIM(SUBSTITUTE(D$1,"cut off",""))
    Anyway, your DATEDIF for year and year-to-month can be shorter like this:
    In D2:
    Please Login or Register  to view this content.
    Drag down and accross.
    Quang PT

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: How to Calculate Age In 1-July-2016

    crosspost: http://www.mrexcel.com/forum/excel-q...ly-2016-a.html

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    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

+ 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. Call in the Cavalry - 2016
    By JBeaucaire in forum The Water Cooler
    Replies: 147
    Last Post: 01-10-2017, 12:36 PM
  2. Excel 2016 & beyond!
    By jewelsharma in forum The Water Cooler
    Replies: 6
    Last Post: 01-10-2016, 05:53 AM
  3. Excel 2016 Problem
    By lgchandana in forum Excel General
    Replies: 4
    Last Post: 12-16-2015, 06:07 AM
  4. Powerpivot in excel 2016
    By Poperick in forum Office 365
    Replies: 0
    Last Post: 10-19-2015, 07:03 AM
  5. Will it be a bug inside Word 2016 ?
    By neu_stone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2015, 11:54 AM
  6. Will it be a bug inside Word 2016 ?
    By neu_stone in forum Word Formatting & General
    Replies: 0
    Last Post: 09-29-2015, 11:49 AM
  7. [SOLVED] 2016 calendar - A column
    By noddyneil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2015, 02:07 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