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!
 

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
76
You could do it with a running cumulative for all Costs then use sumifs and countifs to spread out the costs.
 

Forum statistics

Threads
1,078,516
Messages
5,340,875
Members
399,396
Latest member
PBE

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top