+ Reply to Thread
Results 1 to 7 of 7

Formula based on Date

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Formula based on Date

    Hello,

    I need help to create a formula based on date. There are amounts which are received for 12 months period and only 1/24th of the amount is earned in one month. The amounts received are based on date.

    For example the amount received in Jan 2017 is 2,500 and the amount earned in Jan -2017 is 1/24th, in Feb-2017 is 3/24th, in March 5/24th and so on until Dec 2017. I am manually looking at date and then copying the formula.

    Is there any way that one formula can be used for any date. I have attached the spreadsheet for an example.

    Thanks,
    Jai
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula based on Date

    c25=if($A25>C$4,"",if($A25=C$4,$B25-($B25/$A$1),MAX(0,if($A25<=C$4,B25-($B25/$A$1),"")))) and drag across.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Formula based on Date

    Hi,

    Thanks for the replying but I am not getting the same results as I was getting with manual formulas.
    There should be amount in last month. For example, January 2017 amount should end in December 2017 and February 2017 amount should end in January 2018.

    Can you please take a look again and let me know.

    Thanks again,
    Jai

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula based on Date

    c25=if($A25>C$4,"",if($A25=C$4,$B25-($B25/$A$1/2),MAX(0,if($A25<=C$4,B25-($B25/$A$1),"")))) and drag across.

  5. #5
    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: Formula based on Date

    One way in C6 dragged across and down

    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.

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Formula based on Date

    On the new tab, I think I have the formula in the light green shaded area. The rest of the stuff on the page was used for QA and to help develop the formula and can be ignored or even removed. I started with your basic formula and made the 1, 3, 5, etc. based on the Month Number and then excluded months that should not be seen.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  7. #7
    Registered User
    Join Date
    03-18-2014
    Location
    Brampton, ONTARIO
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Formula based on Date

    Thanks you so much ! Much Appreciated

+ 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] Userform - User enters date into Textbox1, want Textbox2 to return a date based on formula
    By Quasis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-30-2017, 01:06 PM
  2. [SOLVED] Formula to automatically return date in correct cell based on date given
    By MichelleD75 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2016, 01:29 PM
  3. Replies: 5
    Last Post: 12-01-2015, 02:36 PM
  4. Formula needed for figuring out Due date based on start date and cycles
    By akikelly in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-14-2015, 08:54 AM
  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. [SOLVED] Formula for calculating a new date based on an existing date and other cell criteria
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 09:49 AM
  7. [SOLVED] Formula assistance needed to sum data based on anniversary date and month date
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 11:18 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