Putting equal cost for each person according to the start and end date of the range and start date and end date of the project

Athena1030

New Member
Joined
Jun 12, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I really need help urgently. I have been struggling from 4 days and I am not able to solve it. I have to find equal distribution of cost in cell H4:T4, in each range. However the cost should auto calculate itself if we change the start date and end date of the project according to no. of days worked. Cost per hour and hours per day is already given.

Can someone please tell me what formula I should put?



ABCEFGHIJKLMNOPQRST
1
Start date for FY21 range5/31/20206/28/20207/26/20208/23/20209/20/202010/18/202011/15/202012/13/202010/1/20217/2/20217/3/20214/4/20212/5/2021
2End date for FY 21 range6/27/20207/25/20208/22/20209/19/202010/17/202011/17/202012/12/20209/1/20216/2/20216/3/20213/4/20211/5/20215/29/2021
3Start DateEnd DateCost per hourHours per dayRangeR1R2R3R4R5R6R7R8R9R10R11R12R13
41/6/202029/5/2021$ 54.009747747747
61/7/202029/5/2021$ 4.949
71/8/202029/5/2021$ 25.199
81/9/202029/5/2021$ 25.199
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to the MrExcel board!

Are you sure that your sample data is correct?
I ask because rows 1 and 2 dates seem a bit strange to me. It initially appears that you dates are in m/d/y format and columns H:L are all 28 day periods with row 1 entries equal to the row 2 entry of the column before + 1 day. But then
  • Column M appears to be a 31 day period.
  • In column N, N1 is not equal to M2 + 1 day
  • Column O is either a 263 day period or else cell O2 is in d/m/y format not in m/d/y format??
  • Actually, from cell O2 and to the right, all the cells look like they might be in d/m/y format, except cell T2 which is clearly back in m/d/y format
Very confusing!!

Can you clarify exactly what is going on with those dates.

Also suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.
 
Upvote 0
Hi thank you for your reply. The data is correct.

I should have been more clear earlier. There are 13 ranges in the data. Each range equals to 4 weeks which becomes 20 working days (assuming Saturday and Sunday are off). All dates are in MM/DD/YY format.

Also here the financial period starts from 1st July and ends on 31st May every year. So R1 is from 31st/May/2020 - 27th/june/2020 (cell H1 and H2).

What i need to do is calculate the cost for each row from start date of joining to end date of joining range wise. For example: If a person joins a project on 10/Aug/2020 and end the project on 29/Dec/2020 so that cost will have to calculated from cells J4-O4, specific to no. of working days in range R3 and R8 from start and end date.

For simple understanding, as we have 12 months in a year, right now for this we have 13 range, each range equals 4 weeks.


Does it help for you to help me now for the solution?
 
Upvote 0
Welcome to the MrExcel board!

Are you sure that your sample data is correct?
I ask because rows 1 and 2 dates seem a bit strange to me. It initially appears that you dates are in m/d/y format and columns H:L are all 28 day periods with row 1 entries equal to the row 2 entry of the column before + 1 day. But then
  • Column M appears to be a 31 day period.
  • In column N, N1 is not equal to M2 + 1 day
  • Column O is either a 263 day period or else cell O2 is in d/m/y format not in m/d/y format??
  • Actually, from cell O2 and to the right, all the cells look like they might be in d/m/y format, except cell T2 which is clearly back in m/d/y format
Very confusing!!

Can you clarify exactly what is going on with those dates.

Also suggest that you investigate XL2BB for providing sample data & expected results to make it easier for helpers to understand just what you have & where it is and also what you want & where it is to be.


Hi thank you for your reply. The data is correct.

I should have been more clear earlier. There are 13 ranges in the data. Each range equals to 4 weeks which becomes 20 working days (assuming Saturday and Sunday are off). All dates are in MM/DD/YY format.

Also here the financial period starts from 1st July and ends on 31st May every year. So R1 is from 31st/May/2020 - 27th/june/2020 (cell H1 and H2).

What i need to do is calculate the cost for each row from start date of joining to end date of joining range wise. For example: If a person joins a project on 10/Aug/2020 and end the project on 29/Dec/2020 so that cost will have to calculated from cells J4-O4, specific to no. of working days in range R3 and R8 from start and end date.

For simple understanding, as we have 12 months in a year, right now for this we have 13 range, each range equals 4 weeks.


Does it help for you to help me now for the solution?
 
Upvote 0
The data is correct.
In that case your dates in rows 1 & 2 must be in m/d/y format since the first date (H1) shows 5/31/2020 which must be 31 May 2020.

Here are your dates copied form post #1 and formatted as dd-mmm-yy and in row 3 the days between the 2 dates. It makes no sense to me.

Athena1030 2020-06-12 1.xlsm
GHIJKLMNOPQRST
1Start date for FY21 range31-May-2028-Jun-2026-Jul-2023-Aug-2020-Sep-2018-Oct-2015-Nov-2013-Dec-2001-Oct-2102-Jul-2103-Jul-2104-Apr-2105-Feb-21
2End date for FY 21 range27-Jun-2025-Jul-2022-Aug-2019-Sep-2017-Oct-2017-Nov-2012-Dec-2001-Sep-2102-Jun-2103-Jun-2104-Mar-2105-Jan-2129-May-21
3Days in range28282828283128263-120-28-120-88114
Sheet2
Cell Formulas
RangeFormula
H3:T3H3=H2-H1+1
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,103
Members
452,379
Latest member
IainTru

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top