+ Reply to Thread
Results 1 to 9 of 9

Dates fraction in the start date

  1. #1
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Dates fraction in the start date

    Hi everyone,

    Pls. i have already a formula that i need to be corrected. The value i needed is showing in the next month.

    I have a start date in nov-27-2020 but the cost is reflected in Dec-2020.

    I attached the file for easy reference.

    Thanks
    Ricky
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by rickyilas; 12-09-2022 at 03:15 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Dates fraction in the start date

    Hi,
    Try to explain to us what exactly you want to calculate with that formula, what are the conditions and why it should give the expected result. It is time-consuming to try to analyze a formula when there may be other alternatives to solve the problem
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    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,000

    Re: Dates fraction in the start date

    Try:
    =IF(JS$4<EOMONTH($K5,-1)+1,"",IF(EOMONTH($K5,-1)+1=JS$4,$AA5*(JS$3-$K5+1)/30.5,IF(EOMONTH($L5,-1)+1=JS4,$AA5*($L5-JS$4+1)/30.5,IF(EOMONTH($L$5,-1)+1>JS$4,$AA5,""))))
    Attached Files Attached Files
    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

  4. #4
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Dates fraction in the start date

    Hi Glenn,

    Thank you for your solution. It's exactly what i want. I really appreciate your help.

    Cheers!

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

    Re: Dates fraction in the start date

    Just check the value returned at the date of the last month... My answer differs slightly from your monster formula. If you believe yours is correct, explain why.

    I suspect it may be down to the fact that you have considered that every month has 30.5 days....

  6. #6
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Dates fraction in the start date

    Yours is ok, i actually wanted the exact number of days each month instead of 30.5 but don't know how to formulate it without using the 30.5 inside the formula. is it possible to still change the formula :

    =IF(JT$4<EOMONTH($K5,-1)+1,"",IF(EOMONTH($K5,-1)+1=JT$4,$AA5*(JT$3-$K5+1)/30.5,IF(EOMONTH($L5,-1)+1=JT$4,$AB5*($L5-JT$4+1)/30.5,IF(EOMONTH($L5,-1)+1>JT$4,$AB5,""))))

    Thanks

  7. #7
    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,000

    Re: Dates fraction in the start date

    OK. I'll fix that a bit later today. I have to go do the shopping now!!

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

    Re: Dates fraction in the start date

    OK. Now it calculates actual days pm.

    IF(JS$4<EOMONTH($K5,-1)+1,"",IF(EOMONTH($K5,-1)+1=JS$4,$AA5*(JS$3-$K5+1)/(JS$3-JS$4+1),IF(EOMONTH($L5,-1)+1=JS4,$AA5*($L5-JS$4+1)/(JS$3-JS$4+1),IF(EOMONTH($L$5,-1)+1>JS$4,$AA5,""))))
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Dates fraction in the start date

    Hi Glenn, Thanks for all ur help. This is perfect now for my work. My colleagues will also like this. 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. [SOLVED] Formula - if start dates over lap other start date or if a start date overlaps end date
    By SF_2011_uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2022, 07:57 AM
  2. [SOLVED] Calculate between dates [Start Date] [Closed Date] but if no close date today()
    By brian_2me in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-11-2021, 09:36 AM
  3. [SOLVED] Generate Dates by Month along columns based on Start Date and End Date
    By Stndsh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2015, 05:32 AM
  4. Setting a start date and end date for Index-Match within a list of dates
    By wiqbal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2015, 10:00 PM
  5. [SOLVED] Help in writing formula in excel to produce dates based on start date and end date
    By shoot for moon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2014, 01:00 PM
  6. Replies: 10
    Last Post: 06-11-2013, 06:11 PM
  7. expanding a start date and end date to show all the dates in a list
    By musicman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 04:05 PM

Tags for this Thread

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