+ Reply to Thread
Results 1 to 7 of 7

Calculating number of months given a set amount of days

  1. #1
    Registered User
    Join Date
    06-11-2016
    Location
    auckland, nz
    MS-Off Ver
    mac 2010
    Posts
    1

    Calculating number of months given a set amount of days

    Calculating the number of months to charge given the number of days. assuming that up to and including 30 days equals 1 month, and 32 days equals 2 months. a rounding function should be included

    cell D1 is where the days are and cell E1 is where the formula needs to be written

    thanks

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Calculating number of months given a set amount of days

    Maybe:
    In E1
    Please Login or Register  to view this content.
    And - welcome to the Forum!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating number of months given a set amount of days

    If 30=1 and 31=2 try this...

    =CEILING(D1/30,1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Calculating number of months given a set amount of days

    Hi Biff,

    One (this one at least) wonders why that function was written when good old Int had it covered - care to enlighten me??

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating number of months given a set amount of days

    The OP said this:

    assuming that up to and including 30 days equals 1 month
    So, if D1=30 then E1 should =1.

    Your formula will return 2.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Calculating number of months given a set amount of days

    Wow, it just goes to show, there was a reason for the Ceiling function


    Duhhhhhhhhhhhhhh

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating number of months given a set amount of days

    Useless functions:

    Excel 2013

    =DAYS(end_date,start_date)

+ 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. calculating Months from days!!
    By meus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2015, 05:57 AM
  2. Calculating years/months/days between two dates
    By jen9537 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-05-2014, 03:03 AM
  3. [SOLVED] Calculating 2 months and 10 days from a specific date
    By pedkerr in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-07-2013, 11:01 AM
  4. calculating the experience in number of years, months, days.
    By marineharish in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2013, 12:47 PM
  5. Calculating Number of Months passed between two sets of days
    By Cindylu3 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-24-2009, 12:24 PM
  6. Translate ~Number of days in a week to number of days across months
    By martin ridley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2008, 01:09 PM
  7. problem of calculating years months and days
    By naughtyboy in forum Excel General
    Replies: 1
    Last Post: 08-07-2006, 06:25 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