Closed Thread
Results 1 to 9 of 9

days/months if more that 1 day and/or month

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    York
    MS-Off Ver
    Excel 2013
    Posts
    24

    days/months if more that 1 day and/or month

    Hi,

    I have the below formula, but if the result is for example 94 years,9 months, 1 Days, is there a way for it to read "1 Day" instead of "1 Days"?
    I've tried using the IF statement and I suppose it's a way but it doesn't work.....may be not putting it in the right place or may be an easier way?

    =DATEDIF(H4,TODAY(),"y")&" years,"&DATEDIF(H4,TODAY(),"ym")&" months, "&DATEDIF(H4,TODAY(),"md")&" days"

  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,780

    Re: days/months if more that 1 day and/or month

    Maybe this:

    =DATEDIF(H4,TODAY(),"y")&" years,"&DATEDIF(H4,TODAY(),"ym")&" months, "&DATEDIF(H4,TODAY(),"md")&IF(DATEDIF(H4,TODAY(),"md")>1," days"," day")
    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
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: days/months if more that 1 day and/or month

    Just a thought Ali... since the OP wants the singular "day" for one day I'd be willing to be he/she would also want singulars for month and year when there is only one of those as well.

  4. #4
    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,780

    Re: days/months if more that 1 day and/or month

    I'm sure, Rick, but I am also sure he can work the other two out from my example.

  5. #5
    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,780

    Re: days/months if more that 1 day and/or month

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  6. #6
    Registered User
    Join Date
    04-08-2014
    Location
    York
    MS-Off Ver
    Excel 2013
    Posts
    24
    Quote Originally Posted by AliGW View Post
    I'm sure, Rick, but I am also sure he can work the other two out from my example.
    No. I couldn't. I did try several ways and i can so please don't judge people you don't know so lightly. I told I am very green at nesting and in general (compare to wizards like yourselves).
    That formula to start with is not mine at all in the first place just trying to be half as good as you are. Please dont just take assumptions so freely and don't be so rude

  7. #7
    Registered User
    Join Date
    04-08-2014
    Location
    York
    MS-Off Ver
    Excel 2013
    Posts
    24
    Quote Originally Posted by AliGW View Post
    I'm sure, Rick, but I am also sure he can work the other two out from my example.
    Can you please advise how to unsubscribe?

  8. #8
    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,780

    Re: days/months if more that 1 day and/or month

    What is rude about what I said? If you couldn’t work it out, all you had to do was ask.

    I have made no judgement at all. And there is no clue in the opening post that the formula wasn’t yours. Goodness! What a fuss!

  9. #9
    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,780

    Re: days/months if more that 1 day and/or month

    Quote Originally Posted by toony View Post
    Can you please advise how to unsubscribe?
    There’s no need. If you don’t want our help or to comply with simple rules about cross-posting, then I suggest you go and find another forum.

    I am closing this thread, as you have refused to acknowledge the cross posting either here or on the other forum.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. From number of days to Years, months and days DATEDIFF madness!!
    By zozew in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-13-2021, 10:56 PM
  2. [SOLVED] Calculating Years, Months, Week, Days, Hours, Minutes for Work Days between two dates
    By hecgroups in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-23-2019, 12:09 AM
  3. Vba to filter current month, prior month, two months ago and three months ago
    By M7A0S8T8E5R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2019, 06:56 PM
  4. [SOLVED] calculate numbers of days elapsed a week, month or 6 months from now
    By labogola in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-01-2014, 09:14 AM
  5. Convert days -> Years, Months, Days, Hours, Minutes, Seconds
    By brharrii in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2012, 06:44 PM
  6. Replies: 7
    Last Post: 03-02-2011, 08:10 AM
  7. Working days left in the month compared to previous months
    By qwopzxnm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-24-2005, 03:00 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