+ Reply to Thread
Results 1 to 5 of 5

Calculation when starting mid-month

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016, Office 365
    Posts
    400

    Calculation when starting mid-month

    Hi all

    Workbook attached

    I have made a workbook that my learners use to keep track of their Off-The-Job training. They are expected to complete 20% of their weekly/monthly time as OTJ Training.
    The issue is, if a Learner joins me on the 20th of the month, the workbook is expecting the learner to still complete 100% of the months' training time, rather than as a % of the month that remains.
    I would also like to be able to do the same for their final month - I am happy to add a cell where if "yes" is entered it is confirmed as their final month, and so calculates the OTJ Hours as a % of this final month. This will not be needed on the first month, as the first will ALWAYS be Month 1, whereas the final month could be anywhere from 12 - 24 months.

    I am more than happy for the calculations to be placed in a hidden cell
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Calculation when starting mid-month

    darryl,

    I apologize, but your workbook is kind of confusing, to me anyway, regarding ""what goes where"". for instance, in cell D7 on the sheet front page you have this formula:
    Please Login or Register  to view this content.
    but yet, in cell c7 there is the value of january 1900, and cell b87 on sheet month 1 is labelled as ""activity"". so you are wanting a date on the first sheet to equal a value for "activity" on the 2nd tab. that doesn't make sense.

    furthermore, based on the description of what you're looking for, the layout of the sheets don't really make much sense either. this is just my opinion. can you clarify any of this so folks here can help out?

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016, Office 365
    Posts
    400

    Re: Calculation when starting mid-month

    Quote Originally Posted by vba_php View Post
    in cell c7 there is the value of january 1900,
    January 1900 is entered just o there is a default month to fill in the months for Column C


    Quote Originally Posted by vba_php View Post
    cell b87 on sheet month 1 is labelled as ""activity"". so you are wanting a date on the first sheet to equal a value for "activity" on the 2nd tab
    I have/will upload another version of the spreadsheet with data entered as a Learner would see it. The "Activities" on Sheet "Month 1" are there (B82:B86) for Data Validation to make a drop-down list, and also to be used to calculate the Pie Chart (in case management want to change the name of each activity)


    They might not make much sense as the Original version has 18 x "Month" Worksheets, so that all of the Front Page self-completes.

    As you can see from my version, I have started on 20/08/20, and so I should only be needing 30% of the Monthly Hours, but because it works on 100% of the whole month it is still expecting me to give 30 hours training, not just 10.

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Calculation when starting mid-month

    I'm terribly sorry Darryl, but I'm not really following anything you are saying. That doesn't happen too often for me, so I feel kind of bad. I'm going to have to step out and hope that someone else here can be able to assist you. good luck.

  5. #5
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016, Office 365
    Posts
    400

    Re: Calculation when starting mid-month

    Quote Originally Posted by vba_php View Post
    I'm not really following anything you are saying.
    No worries. Because I have written the workbook I know exactly where everything is looking to etc.

    I have sorted it, but it is quite messy.


    F33 =G5 (date entered by Learner as their start date)
    H33 =DAY(EOMONTH(F33,0)) (Number of days in given month)
    I33 =EOMONTH(F33,0)-F33 (Number of days remaining in given month)
    J33 =O10 (Number of hours expected in a "full" month)
    K33 =J33*I33/H33 (Expected Hours*Remaining Days/Days in Month)
    Therefore, August 10th Start would give 30*21/31=20.05

    Now I just have to work out the same, but for the final month - the joys of Excel

+ 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. Next starting time calculation
    By JoBaca in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2016, 10:33 AM
  2. [SOLVED] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  3. [SOLVED] How to find the 'next month' given a starting month as text?
    By thetalldude in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2014, 04:47 AM
  4. Date Formula for days of the month, new dates starting on the 2nd of the month.
    By Kenn Jerger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2013, 01:31 AM
  5. Replies: 5
    Last Post: 09-27-2012, 07:30 PM
  6. [SOLVED] Auto populate cells from data in a 6 month range starting with the current month
    By ecarnley349 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:32 PM
  7. HELP! new job starting next month
    By freud1 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-31-2009, 08:44 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