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!
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

sapionapio

New Member
Joined
Oct 25, 2019
Messages
7
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
 

Swayzy

Board Regular
Joined
Mar 30, 2018
Messages
77
You could do it with a running cumulative for all Costs then use sumifs and countifs to spread out the costs.
 

Watch MrExcel Video

Forum statistics

Threads
1,089,963
Messages
5,411,537
Members
403,377
Latest member
chrisj2812

This Week's Hot Topics

Top