+ Reply to Thread
Results 1 to 14 of 14

Calculate birthday and age as if there were 112 days in a year

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Calculate birthday and age as if there were 112 days in a year

    Hi,

    I have Excel 2003,

    I'm having trouble with a formula of calculating age from a specific date.

    But first I'd like to know a formula to get to a birthdate, using the same 112 days in a year.

    I have this:
    =DATE(YEAR(O3)/112;MONTH(O3);DAY(O3))
    but it shows me back absurd dates, and I need this to be accurate, since I need this cell to get to this, which I'm not sure if it is well built as well:
    =INT((TODAY()-N3)/112) &" years and "& DAY(HOJE()-N3) &" days"
    O3= Next birthday
    N3= Birthdate

    Can anyone help?
    Last edited by Deep_Shadow; 12-11-2014 at 03:16 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Calculate birthday and age as if there were 112 days in a year

    I don't understand how you want to use a year that is 112 days but still use month and day from a year that is 365 days. So I don't understand what you are trying to do with your first formula.

    For the second formula, if a "year" is 112 days, and you need a formula for the years and days from a given date, it would be

    Formula: copy to clipboard
    =INT((TODAY()-N3)/112) &" years and "& MOD(TODAY()-N3,112) &" days"


    (By the way thank you for the correct use of the subjunctive mood in your thread title. )
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    Reply to all, what I want to do is get to get a birth date assuming that on the next birthday the player (this is for Hattrick, an online football management game) will be 17 years old.

    The only thing thing that comes to my mind is something like this:

    =DATE(YEAR((O3/112)-17);MONTH(O3);DAY(O3))
    But of course I'm aware this is wrong, just trying to know where.

    My bad on the insufficient data.
    Last edited by Deep_Shadow; 12-09-2014 at 09:03 PM.

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

    Re: Calculate birthday and age as if there were 112 days in a year

    Quote Originally Posted by Deep_Shadow View Post
    .....But first I'd like to know a formula to get to a birthdate, using the same 112 days in a year.....
    Surely you need more information than just the date of the next birthday to get birthdate, you'll need the age (in 112 day years) too, won't you? Assuming Next birthday in O3 and age (on that date) in O2 try this formula to get birthdate in N3

    =O3-O2*112

    That will then be consistent with Jeff's suggested formula for age, e.g. if O2 is 42, for example, then Jeff's formula will give you "41 years and xx days"
    Audere est facere

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculate birthday and age as if there were 112 days in a year

    Hi,

    It would assist greatly if you could produce examples which shows dates and the resultant birthdays.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    Already produced those examples.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Calculate birthday and age as if there were 112 days in a year

    Assuming, therefore, that you are simply counting back 17*112 days from O3 then that would just be this formula as per my suggestion in previous post

    =O3-112*17

    If that doesn't work for you then please supply some examples as Richard suggests, e,g, if 17th birthday is 25th December 2014 what date do you expect to get as birthdate?
    Last edited by daddylonglegs; 12-10-2014 at 04:14 AM.

  8. #8
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    It seems the your formula works perfectly. But now, the second one is not working accurately, so I'll provide examples os what I intend:

    O3:
    06-02-2015
    N3:
    =O3-112*17
    Result -
    20-11-2009
    Which I think is correct, cause the difference between dates is 1904 days, which is 112*17.

    Now the formula I think is incorrect:
    =INT((TODAY()-N3)/112) &" years and "& DIA((TODAY()-N3)*112) &" days"
    I want the age to be updated automatically, that's why I have the TODAY(), but this shows me 16 years and 23 days, when it should show me 16 years and 54 days.

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Calculate birthday and age as if there were 112 days in a year

    You need to use 6StringJazzer's suggested formula, i.e.

    Quote Originally Posted by 6StringJazzer View Post
    =INT((TODAY()-N3)/112) &" years and "& MOD(TODAY()-N3,112) &" days"
    In your version you are using DIA/DAY - that function gives you day of the month so never gives a value > 31

  10. #10
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    Formula is not being accepted due to:
    TODAY()-N3,112
    Either that or it can't be MOD.

    My Excel is 2003, maybe that is the reason why it isn't working.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Calculate birthday and age as if there were 112 days in a year

    Everything in the formula is backwards compatible to 2003 (probably back to at least '97).

    In your first post you referenced both TODAY and HOJE as functions. The latter is the Portuguese word for TODAY. I have never used anything but the U.S. version--are function names different in different languages? Maybe you need to use HOJE.

  12. #12
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    Yes, I've been using HOJE, since my version is portuguese, but the error message strickly points to the -N3,112

    I think it can't be a "," (comma) there.

    Edit: If I shift it to ;112, it shows me #NAME?, as if it has a an invalid name error...

    Is the comma supposed to be * (multiplication)? Cause if it is, it also shows me that error...
    Last edited by Deep_Shadow; 12-11-2014 at 12:14 AM.

  13. #13
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Calculate birthday and age as if there were 112 days in a year

    Yes, I think you need a semi-colon separator instead of the comma, i.e. in Portuguese

    =INT((HOJE()-N3)/112) &" years and "& MOD(HOJE()-N3;112) &" days"

    See attached
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-07-2014
    Location
    Bombarral, Portugal
    MS-Off Ver
    2003
    Posts
    13

    Re: Calculate birthday and age as if there were 112 days in a year

    Worked perfectly, thanks a lot.

+ 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. Calculate age if there were 112 days in a year
    By army in forum Excel General
    Replies: 7
    Last Post: 12-09-2014, 04:59 PM
  2. Calculate amount of days per year within range
    By constructionbart in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 05:24 AM
  3. Calculate points for year based on last 180 days
    By Diogie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-08-2013, 04:01 PM
  4. Convert a multiple year list of 365 days/year into an equivalent of 360 days/year
    By lobotomy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 05:39 PM
  5. Calculate Year Month and Days and Add them
    By lavan_joy in forum Excel General
    Replies: 8
    Last Post: 11-17-2010, 12:35 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