Do I have to create each month

pulary

New Member
Joined
May 17, 2013
Messages
23
Hi all,

I am trying to make an interactive dashboard where the end user can select the year, month, entity name, and project or a combination of all these, that will display a data table and graph accordingly. The problem I am having is the data is not done by month, but rather I am given a total revenue and a length of time (duration). What I am trying to figure out is do I have to create data for each month. My guess is that I will need to break down by month, which is fine, but I am hopeful there is an easier way to do it versus a manual process.

Thanks!
Financial Analyst Excel Test.xlsx
ABCDE
1EntityProject NameEstimated StartEstimated RevenueDuration (months)
2BCRSolar 17/1/22$28,500,00025
3BCRSolar 26/1/22$3,600,0004
4BESolar 36/1/22$4,200,0005
5BCRSolar 47/1/22$40,000,00024
6BCRSolar 68/1/22$20,000,00012
7BCRSolar 71/1/23$21,000,00023
8BCRSolar 88/1/22$42,000,00024
9BESolar 911/1/22$11,200,0008
10BCRSolar 106/1/22$4,000,00013
11BCRSolar 115/1/22$11,000,00012
12BESolar 127/1/22$11,000,0005
13BESolar 136/1/22$2,200,0005
14BESolar 148/1/22$95,000,00012
15BESolar 156/1/22$110,000,0008
16BESolar 168/1/22$15,000,0006
17IMESolar 177/1/22$330,000,00016
18BESolar 188/1/22$23,000,0003
19IMESolar 198/1/22$62,000,0006
20IMESolar 202/1/23$1,121,000,00036
21IMESolar 218/1/22$90,000,00015
22BESolar 228/1/22$32,000,00012
23BESolar 2311/1/22$30,000,00012
24BESolar 2411/1/22$30,000,00012
Original Inputs
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I am going to suggest showing us what you would like the output to look like. The above is the input, show us what the output looks like.
 
Upvote 0
Here is what I would like the data to look like and the manual process that I am trying to avoid.

Financial Analyst Excel Test.xlsx
ABCD
29EntityProject NameEstimated StartEst Month Rev
30BCRSolar 1Jul-221,140,000.00
31BCRSolar 1Aug-221,140,000.00
32BCRSolar 1Sep-221,140,000.00
33BCRSolar 1Oct-221,140,000.00
34BCRSolar 1Nov-221,140,000.00
35BCRSolar 1Dec-221,140,000.00
36BCRSolar 1Jan-231,140,000.00
37BCRSolar 1Feb-231,140,000.00
38BCRSolar 1Mar-231,140,000.00
39BCRSolar 1Apr-231,140,000.00
40BCRSolar 1May-231,140,000.00
41BCRSolar 1Jun-231,140,000.00
42BCRSolar 1Jul-231,140,000.00
43BCRSolar 1Aug-231,140,000.00
44BCRSolar 1Sep-231,140,000.00
45BCRSolar 1Oct-231,140,000.00
46BCRSolar 1Nov-231,140,000.00
47BCRSolar 1Dec-231,140,000.00
48BCRSolar 1Jan-241,140,000.00
49BCRSolar 1Feb-241,140,000.00
50BCRSolar 1Mar-241,140,000.00
51BCRSolar 1Apr-241,140,000.00
52BCRSolar 1May-241,140,000.00
53BCRSolar 1Jun-241,140,000.00
54BCRSolar 1Jul-241,140,000.00
55BCRSolar 2Jun-22900,000.00
56BCRSolar 2Jul-22900,000.00
57BCRSolar 2Aug-22900,000.00
58BCRSolar 2Sep-22900,000.00
59BESolar 3Jun-22840,000.00
60BESolar 3Jul-22840,000.00
61BESolar 3Aug-22840,000.00
62BESolar 3Sep-22840,000.00
63BESolar 3Oct-22840,000.00
64BCRSolar 4Jul-221,666,666.67
65BCRSolar 4Aug-221,666,666.67
66BCRSolar 4Sep-221,666,666.67
Data
Cell Formulas
RangeFormula
D30:D54D30=$E$2
D55:D58D55=$E$3
D59:D63D59=$E$4
D64:D66D64=$E$5


I would like this for all 24 projects so I can create a waterfall and then complete an interactive graph. Still trying to decide on the best approach.

Thanks all for the help!

Phillip
 
Upvote 0
pulary here is my solution to your question. Now this usually generates more questions than answer so let the discussion begin. I don't know how much you know about vba so copy and paste the program to a module or the Original vba sheet. Also be sure to save workbook as macro embedded. Also, be sure to add a worksheet and name it Data. Sometimes the A plus students review my programs and instead of my 20 lines of code, they do it 2 lines of code. So maybe we will get lucky. Anyway, I believe this program does what you want but if not let us know.


VBA Code:
Sub Prog1()

Dim Row1 As Long
Dim Row2 As Long
Dim CelCnt As Long
Dim i As Long
Dim Rev1 As Currency
Dim MyDate1 As Date

Row1 = 2
Row2 = 2
CelCnt = 0
Sheets("Original").Select

Application.ScreenUpdating = False
Do Until IsEmpty(Cells(Row1, 1))

Cells(Row1, 1).Select

CelCnt = Cells(Row1, 5) + CelCnt

MyDate1 = Sheets("Original").Cells(Row1, 3)

For i = Row2 To CelCnt + 1

With Sheets("Data")
    .Cells(i, 1) = Sheets("Original").Cells(Row1, 1)
     .Cells(i, 2) = Sheets("Original").Cells(Row1, 2)
     .Cells(i, 3).NumberFormat = "mmm-yy"
     .Cells(i, 3) = MyDate1
      MyDate1 = DateAdd("m", 1, Sheets("Data").Cells(i, 3))
      Rev1 = Sheets("Original").Cells(Row1, 4) / Sheets("Original").Cells(Row1, 5)
     Sheets("Data").Cells(i, 4) = Rev1
End With

Next i

Row2 = i
'Sheets("Original").Select

Row1 = Row1 + 1

Loop

Application.ScreenUpdating = True
Sheets("Data").Select
Sheets("Data").Range("A1").Select

End Sub

22-04-16 work8.xlsm
ABCD
1EntityProject NameEstimated StartEstimated Revenue
2BCRSolar 1Jul-22$1,140,000.00
3BCRSolar 1Aug-22$1,140,000.00
4BCRSolar 1Sep-22$1,140,000.00
5BCRSolar 1Oct-22$1,140,000.00
6BCRSolar 1Nov-22$1,140,000.00
7BCRSolar 1Dec-22$1,140,000.00
8BCRSolar 1Jan-23$1,140,000.00
9BCRSolar 1Feb-23$1,140,000.00
10BCRSolar 1Mar-23$1,140,000.00
11BCRSolar 1Apr-23$1,140,000.00
12BCRSolar 1May-23$1,140,000.00
13BCRSolar 1Jun-23$1,140,000.00
14BCRSolar 1Jul-23$1,140,000.00
15BCRSolar 1Aug-23$1,140,000.00
16BCRSolar 1Sep-23$1,140,000.00
17BCRSolar 1Oct-23$1,140,000.00
18BCRSolar 1Nov-23$1,140,000.00
19BCRSolar 1Dec-23$1,140,000.00
20BCRSolar 1Jan-24$1,140,000.00
21BCRSolar 1Feb-24$1,140,000.00
22BCRSolar 1Mar-24$1,140,000.00
23BCRSolar 1Apr-24$1,140,000.00
24BCRSolar 1May-24$1,140,000.00
25BCRSolar 1Jun-24$1,140,000.00
26BCRSolar 1Jul-24$1,140,000.00
27BCRSolar 2Jun-22$900,000.00
28BCRSolar 2Jul-22$900,000.00
29BCRSolar 2Aug-22$900,000.00
30BCRSolar 2Sep-22$900,000.00
31BESolar 3Jun-22$840,000.00
32BESolar 3Jul-22$840,000.00
33BESolar 3Aug-22$840,000.00
34BESolar 3Sep-22$840,000.00
35BESolar 3Oct-22$840,000.00
36BCRSolar 4Jul-22$1,666,666.67
37BCRSolar 4Aug-22$1,666,666.67
38BCRSolar 4Sep-22$1,666,666.67
39BCRSolar 4Oct-22$1,666,666.67
40BCRSolar 4Nov-22$1,666,666.67
41BCRSolar 4Dec-22$1,666,666.67
42BCRSolar 4Jan-23$1,666,666.67
43BCRSolar 4Feb-23$1,666,666.67
44BCRSolar 4Mar-23$1,666,666.67
45BCRSolar 4Apr-23$1,666,666.67
46BCRSolar 4May-23$1,666,666.67
47BCRSolar 4Jun-23$1,666,666.67
48BCRSolar 4Jul-23$1,666,666.67
49BCRSolar 4Aug-23$1,666,666.67
50BCRSolar 4Sep-23$1,666,666.67
51BCRSolar 4Oct-23$1,666,666.67
52BCRSolar 4Nov-23$1,666,666.67
53BCRSolar 4Dec-23$1,666,666.67
54BCRSolar 4Jan-24$1,666,666.67
55BCRSolar 4Feb-24$1,666,666.67
56BCRSolar 4Mar-24$1,666,666.67
57BCRSolar 4Apr-24$1,666,666.67
58BCRSolar 4May-24$1,666,666.67
59BCRSolar 4Jun-24$1,666,666.67
60BCRSolar 6Aug-22$1,666,666.67
61BCRSolar 6Sep-22$1,666,666.67
62BCRSolar 6Oct-22$1,666,666.67
63BCRSolar 6Nov-22$1,666,666.67
64BCRSolar 6Dec-22$1,666,666.67
65BCRSolar 6Jan-23$1,666,666.67
66BCRSolar 6Feb-23$1,666,666.67
67BCRSolar 6Mar-23$1,666,666.67
68BCRSolar 6Apr-23$1,666,666.67
69BCRSolar 6May-23$1,666,666.67
70BCRSolar 6Jun-23$1,666,666.67
71BCRSolar 6Jul-23$1,666,666.67
72BCRSolar 7Jan-23$913,043.48
73BCRSolar 7Feb-23$913,043.48
74BCRSolar 7Mar-23$913,043.48
75BCRSolar 7Apr-23$913,043.48
76BCRSolar 7May-23$913,043.48
77BCRSolar 7Jun-23$913,043.48
78BCRSolar 7Jul-23$913,043.48
79BCRSolar 7Aug-23$913,043.48
80BCRSolar 7Sep-23$913,043.48
81BCRSolar 7Oct-23$913,043.48
82BCRSolar 7Nov-23$913,043.48
83BCRSolar 7Dec-23$913,043.48
84BCRSolar 7Jan-24$913,043.48
85BCRSolar 7Feb-24$913,043.48
86BCRSolar 7Mar-24$913,043.48
87BCRSolar 7Apr-24$913,043.48
88BCRSolar 7May-24$913,043.48
89BCRSolar 7Jun-24$913,043.48
90BCRSolar 7Jul-24$913,043.48
91BCRSolar 7Aug-24$913,043.48
92BCRSolar 7Sep-24$913,043.48
93BCRSolar 7Oct-24$913,043.48
94BCRSolar 7Nov-24$913,043.48
Data


22-04-16 work8.xlsm
ABCDE
1EntityProject NameEstimated StartEstimated RevenueDuration (months)
2BCRSolar 17/1/2022$28,500,000.0025
3BCRSolar 26/1/2022$3,600,000.004
4BESolar 36/1/2022$4,200,000.005
5BCRSolar 47/1/2022$40,000,000.0024
6BCRSolar 68/1/2022$20,000,000.0012
7BCRSolar 71/1/2023$21,000,000.0023
8BCRSolar 88/1/2022$42,000,000.0024
9BESolar 911/1/2022$11,200,000.008
10BCRSolar 106/1/2022$4,000,000.0013
11BCRSolar 115/1/2022$11,000,000.0012
12BESolar 127/1/2022$11,000,000.005
13BESolar 136/1/2022$2,200,000.005
14BESolar 148/1/2022$95,000,000.0012
15BESolar 156/1/2022$110,000,000.008
16BESolar 168/1/2022$15,000,000.006
17IMESolar 177/1/2022$330,000,000.0016
18BESolar 188/1/2022$23,000,000.003
19IMESolar 198/1/2022$62,000,000.006
20IMESolar 202/1/2023$1,121,000,000.0036
21IMESolar 218/1/2022$90,000,000.0015
22BESolar 228/1/2022$32,000,000.0012
23BESolar 2311/1/2022$30,000,000.0012
24BESolar 2411/1/2022$30,000,000.0012
Original
 
Last edited:
Upvote 0
I have a followup question. Since I am running excel for Mac, I am not able to use the filter chart as I would on a Windows based verison, but I am trying to take the data below and make an interactive chart. I would like to be able to select specific entities or a combination of entities as well specific projects or a combination of projects and have the chart update.

Financial Analyst Excel Test V2.xlsm
ABCDEF
1EntityProjectMonthColumn1Column2 Revenue
27BCRSolar 2Jun-2262022900,000
28BCRSolar 2Jul-2272022900,000
29BCRSolar 2Aug-2282022900,000
30BCRSolar 2Sep-2292022900,000
31BESolar 3Jun-2262022840,000
32BESolar 3Jul-2272022840,000
33BESolar 3Aug-2282022840,000
34BESolar 3Sep-2292022840,000
35BESolar 3Oct-22102022840,000
36BCRSolar 4Jul-22720221,666,667
37BCRSolar 4Aug-22820221,666,667
Data
Cell Formulas
RangeFormula
D27:D37D27=TEXT(C27,"M")
E27:E37E27=TEXT(C27,"YYYY")


Thank you all for your help!
 
Upvote 0
I have another follow up question. When I try to use the VBA code in MS Excel on a windows version I get an error at the MyDate1=Sheets("Original").Cells(Row1,3) line.

Any idea why?

Thanks!

Phillip
 
Upvote 0
I have another follow up question. When I try to use the VBA code in MS Excel on a windows version I get an error at the MyDate1=Sheets("Original").Cells(Row1,3) line.

Any idea why?

Thanks!

Phillip
What exactly does the error message say?
Has your data changed at all (columns or rows shifted, or type of data in each column changed)?
 
Upvote 0
I am getting a Run-Time Error '13'.

I did change the tabs name to Inputs and Data, but I have changed the names in the code. I deleted MyDate1=Sheets("Original").Cells(Row1,3) and it moves everything to the 'Data' tab, but it does nothing,
 
Upvote 0

Forum statistics

Threads
1,216,661
Messages
6,131,974
Members
449,692
Latest member
MAV57

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