+ Reply to Thread
Results 1 to 8 of 8

Looking for help with excel formula to determine number of days in a month

  1. #1
    Registered User
    Join Date
    10-10-2017
    Location
    Waukesha, WI
    MS-Off Ver
    Office 2007
    Posts
    4

    Question Looking for help with excel formula to determine number of days in a month

    Hello!

    I'm looking for help to come up with an excel formula to help me figure out how many days are in a month based on a date entered.

    In B1 I have the delivery date.
    In B2 I would like to have a formula that will tell me how many days of pro-rated rent.

    B1: 10/9/2017
    B2: 23

    I tried using EOMONTH but this is giving me a total value of the month of October when I want to know how many days are between the 9th and the 31st. I also want to make sure that that end result counts the day and will account for the fluctuation in the days of the month.

    Any help is appreciated.

    Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: Looking for help with excel formula to determine number of days in a month

    Try this, formatted as general:

    =EOMONTH(B1,0)-B1+1
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-10-2017
    Location
    Waukesha, WI
    MS-Off Ver
    Office 2007
    Posts
    4

    Talking Re: Looking for help with excel formula to determine number of days in a month

    YAY! I'm not sure why I couldn't wrap my head around this. Thank you for your help!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: Looking for help with excel formula to determine number of days in a month

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  5. #5
    Registered User
    Join Date
    10-10-2017
    Location
    Waukesha, WI
    MS-Off Ver
    Office 2007
    Posts
    4

    Question Re: Looking for help with excel formula to determine number of days in a month

    I have another issue, If I use this formula and the date is 11/1/17 its charging my customer 30 days of pro-rated rent. Would there be a way to write the formula to have the exception if the 1st is used to enter 0?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: Looking for help with excel formula to determine number of days in a month

    Try this:

    =IF(DAY(B1)=1,0,EOMONTH(B1,0)-B1+1)

  7. #7
    Registered User
    Join Date
    10-10-2017
    Location
    Waukesha, WI
    MS-Off Ver
    Office 2007
    Posts
    4

    Re: Looking for help with excel formula to determine number of days in a month

    Thank you! That seems to be working great!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,084

    Re: Looking for help with excel formula to determine number of days in a month

    You're welcome.

+ 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] Formula to get number of days in a month
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2017, 11:12 AM
  2. formula to get number of working days in a month based on criteria
    By aravindhan_31 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-15-2016, 06:22 AM
  3. [SOLVED] Excel formula to determine days between last event for each person
    By Brawnystaff in forum Excel General
    Replies: 5
    Last Post: 09-18-2014, 09:21 PM
  4. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  5. [SOLVED] A formula to calc total number of days elapsed between two dates within any given month
    By paul.a.evans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2014, 01:29 AM
  6. Replies: 4
    Last Post: 03-01-2012, 04:27 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