Convert randomly dated amount to monthly

vincemtl

New Member
Joined
May 4, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I would like to automatically calculate the revenue for each month based on the collection date. For example $13.16 per day from Jan 5th to Jan 31st calculated when I enter data for amount collected in February. Then Feb to to use $13.16 per day from the 1st to the 12th and $19.05 from the 13th till the 28th and so on. Please help me

A1B1C1D1E1F1G1
A2Collection DateRevenue amount collectedDays gapRevenue per dayMonthTotal revenue per month
A3
1/1/2022​
January
A4
1/5/2022​
$ 100.00
4​
$ 25.00February
A5
2/12/2022​
$ 500.00
38​
$ 13.16March
A6
3/5/2022​
$ 400.00
21​
$ 19.05April
A7
3/31/2022​
$ 350.00
26​
$ 13.46May
A8
4/20/2022​
$ 500.00
20​
$ 25.00
A9
5/10/2022​
$ 400.00
20​
$ 20.00
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome to the Forum!

Try:

ABCDEFGHIJK
1Example in detail:
2Collection DateRevenue amount collectedDays gapRevenue per dayMonthTotal revenue per monthFeb462.72
331 Dec 2021Jan442.161 Feb 202213.16
45 Jan 2022$100.005$20.00Feb462.722 Feb 202213.16
512 Feb 2022$500.0038$13.16Mar445.213 Feb 202213.16
65 Mar 2022$400.0021$19.05Apr700.004 Feb 202213.16
731 Mar 2022$350.0026$13.46May200.005 Feb 202213.16
820 Apr 2022$500.0020$25.00Jun0.006 Feb 202213.16
910 May 2022$400.0020$20.00Jul0.007 Feb 202213.16
10Aug0.008 Feb 202213.16
11Sep0.009 Feb 202213.16
12Oct0.0010 Feb 202213.16
13Nov0.0011 Feb 202213.16
14Dec0.0012 Feb 202213.16
1513 Feb 202219.05
1614 Feb 202219.05
1715 Feb 202219.05
1816 Feb 202219.05
1917 Feb 202219.05
2018 Feb 202219.05
2119 Feb 202219.05
2220 Feb 202219.05
2321 Feb 202219.05
2422 Feb 202219.05
2523 Feb 202219.05
2624 Feb 202219.05
2725 Feb 202219.05
2826 Feb 202219.05
2927 Feb 202219.05
3028 Feb 202219.05
31
Sheet1
Cell Formulas
RangeFormula
K2K2=SUM(IFERROR(K3#,0))
G3:G14G3=EDATE(DATE(2022,1,1),SEQUENCE(12,,0))
J3:J30J3=SEQUENCE(EDATE(J2,1)-J2,,J2)
K3:K30K3=INDEX(E$3:E$9,MATCH(J3#-1,B$3:B$9,1)+1)
D4:D9D4=B4-B3
E4:E9E4=ROUND(C4/D4,2)
H3:H14H3=SUM(IFERROR(INDEX(E$3:E$9,MATCH(SEQUENCE(EDATE(G3,1)-G3,,G3-1),B$3:B$9,1)+1),0))
Dynamic array formulas.

Note that I changed your start date on the assumption that the first period is 1st to 5th Jan inclusive, i.e. 5 days rather than 4?
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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