split costs by overlap range dates

sapionapio

New Member
Joined
Oct 25, 2019
Messages
7
Hello
I have a list of costs to be divided for a list of users.
Is it possible to allocate the costs, which the date range concerning, to users on the days of use?

NB if in one day more users use the same service / cost, the cost must be divided by the number of users


<html><head><title>Excel Jeanie HTML</title></head>******>
Excel Workbook
ABCDEFGHIJKL
1150.00100.0050.00
2COSTFROMTO$USERFROMTOTOTFOODDRINKS
3FOOD2019/01/012019/03/31100Matthew2019/01/012019/02/2844.6432.7811.86
4DRINKS2019/02/012019/03/3150Alex2019/01/012019/03/31105.3667.2238.14
example


</body></html>
Explanation:
The daily cost of FOOD from 2019/01/01 to 2019/02/28 should be divided into 2 for Matthew and Alex but, from 2019/03/01 to 2019/03/31 it should be shared only for Alex
The daily cost of DRINKS from 2019/02/01 to 2019/02/28 should be divided into 2 for Matthew and Alex but, from 2019/03/01 to 2019/03/31 it should be shared only for Alex



<html><head><title>Excel Jeanie HTML</title></head>******>
Excel Workbook
ABCDEFGHIJKLMNO
11500.00222.00427.00403.00201.00247.00
2COSTFROMTO$USERFROMTOTOTFOODDRINKSPHONEDRESSFUEL
3FOOD2019/01/012019/03/31100Matthew2019/01/012019/02/28
4DRINKS2019/02/012019/03/3150Alex2019/01/012019/03/31
5DRINKS2019/02/092019/12/3131Brian2019/02/082019/12/31
6FUEL2019/02/252019/06/2290Rebecca2019/02/232019/04/01
7FUEL2019/02/272019/03/2846Ben2019/03/252019/12/19
8DRINKS2019/02/272019/10/1838Jeremy2019/04/302019/09/30
9PHONE2019/02/282019/07/2948Bryana2019/06/122019/11/19
10DRESS2019/03/022019/08/1662Cathleen2019/07/172019/08/28
11PHONE2019/03/032019/10/2473
12FOOD2019/03/132019/10/1367
13PHONE2019/03/142019/09/1289
14DRINKS2019/03/142019/12/2687
15PHONE2019/03/222019/09/1394
16FOOD2019/03/232019/07/2550
17DRINKS2019/03/272019/04/2413
18DRINKS2019/03/272019/07/2099
19PHONE2019/04/062019/06/2899
20FUEL2019/04/062019/09/1559
21DRINKS2019/04/102019/06/1873
22DRESS2019/04/152019/07/0474
23FUEL2019/05/282019/08/0839
24FUEL2019/05/312019/07/3113
25DRINKS2019/06/222019/07/2836
26FOOD2019/06/272019/10/245
27DRESS2019/07/102019/10/1465
to solve


</body></html>



Thanks!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi,

I thought it was a subject already discussed and not being able to find it but continuing with research I cannot find
I think the solution is to use SUMPRODUCT but I am not able to use it
 
Upvote 0
You could do it with a running cumulative for all Costs then use sumifs and countifs to spread out the costs.
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,309
Members
448,564
Latest member
ED38

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