+ Reply to Thread
Results 1 to 12 of 12

Help making date into a decimal number

  1. #1
    Registered User
    Join Date
    02-03-2014
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Help making date into a decimal number

    Hi there.

    So I need help figuring out how to make a date into a decimal number. For example, Dec 14 I need to convert to 11.45

    Its basically the number of months and days that have gone by in that calender year. So the 11.45 is "11 months" have gone by and the .45 is the days that have gone by in the month of December. (the 14th day divided by 31 the total in December = .45)

    So another example would be Feb 3rd. My conversion would be 1.10 (1 month has gone by in the calender and 3 days into the month, 3 / 28 = .10 so Feb 3rd is now 1.10)
    June 20th = 5.66

    Im creating a form so that my employees wont have to hand write these anymore and reduce all the human errors. Its to calculate income for my borrowers. I want them to be able to enter todays date and have excel convert that date into the decimal form. Then they can enter a Year to Date $ amount and that will calculate a monthly income. < $ amount * decimal date = monthly income YTD>

    Thank you!

    -Brian

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help making date into a decimal number

    With
    A1: a date
    This regular formula returns the value you asked for
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    02-03-2014
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Help making date into a decimal number

    Amazing Mr. Ron Coderre. Works perfectly. Thank you Sir.

  4. #4
    Registered User
    Join Date
    02-03-2014
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Help making date into a decimal number

    Hey Ron

    Thanks again for the help....but I found out this morning that this formula works for 2010 only. Im checking with my IT dept to see if they can update the rest of my staff from 2003 to 2010, but in the mean time I wanted to see if you knew how to do this formula for 2003 also?

    Thanks again!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help making date into a decimal number

    The issue is EOMONTH. It is actually part of the Analysis ToolPak add-in. On the Tools menu> Add ins
    Is it there?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    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: Help making date into a decimal number

    Hi,

    Not sure why you think Ron's offering doesn't work with 2003. It works in my copy.

    Does this variation help

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  7. #7
    Registered User
    Join Date
    02-03-2014
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Help making date into a decimal number

    Thank you everyone for your input.

    Richard - I think you might have the add-in already installed that ChemistB is referring to. I need to get with my IT dept to request that add-in to be installed. That beats getting new separate licenses for everybody to be upgraded to 2010.

    Thanks Fellas.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help making date into a decimal number

    Without EOMONTH

    Try
    =FLOOR(MONTH(A1)-1+DAY(A1)/DAY(DATE(YEAR(A1),MONTH(A1)+1,0)),0.01)

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

    Re: Help making date into a decimal number

    ...or you can use this version

    =FLOOR(MONTH(A1)-1+DAY(A1)/(42-DAY(A1-DAY(A1)+42)),0.01)
    Audere est facere

  10. #10
    Registered User
    Join Date
    02-03-2014
    Location
    Sacramento CA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Help making date into a decimal number

    Jonmo - that one works perfectly.

    Thanks again to EVERYONE that put their input in. I really appreciate it.

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help making date into a decimal number

    You're welcome.

  12. #12
    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: Help making date into a decimal number

    ...and just because I hate leaving these things,and without being dependent on Analysis Tool Pak

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] copy number with 3 or more decimal places and paste the actual value as 2 decimal number
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2013, 12:57 AM
  2. Replies: 2
    Last Post: 06-29-2012, 07:52 PM
  3. Paste two decimal number in excel without extra decimal places appearing
    By jeffery_frick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 07:49 PM
  4. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  5. [SOLVED] How to convert a decimal number to a non-decimal number?
    By snickers22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2005, 07:06 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