Cumulative value based on row and column lookup

hianc

New Member
Joined
May 3, 2016
Messages
2
The sheet "Summary P&L" is my report format. I used the formula below to find the Mth Actual result. The cell $G$3 contains the month of the report & $N7 contains value "Grants". I know I can use a work around by creating another sheet containing the cumulative result from the monthly result and then use the same lookup formula, but I want simplify this as I am developing this report for someone else. Any help would be appreciated as I am doing this as a finance volunteer for a NFP.

=VLOOKUP('Summary P&L'!$N7,'P&L FY16'!$D$1:$AC$120,VLOOKUP($G$3,Validations!$C$8:$D$19,2,FALSE),FALSE)



Sheet named "Summary P&L"
Income/Expense StatementMonth:-Dec-15
MthYear to Date
ActualBudgetActualBudgetLYear
INCOME
011,667Grants70,00080,00014,878
602,500Fundraising - Gifts6,30012,2006,012

<tbody>
</tbody>

<tbody>
</tbody>

Sheet named "'P&L FY16"
Jul 15Aug 15Sep 15Oct 15Nov 15Dec 15
4100000 · GRANTS
4110000 · Grants Other
4110003 · Grants - Other20,000.000.000.0050,000.000.000.00
Total 4110000 · Grants Other20,000.000.000.0050,000.000.000.00
Grants20,000.000.000.0050,000.000.000.00

<tbody>
</tbody>

Sheet named "Validations"


Jul-154
Aug-156
Sep-158
Oct-1510
Nov-1512
Dec-1514
Jan-1616
Feb-1618
Mar-1620
Apr-1622
May-1624
Jun-1626

<tbody>
</tbody>
 

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.
Here you go:


Excel 2010
ABCDEF
1Dec 15
2
3ActualBudgetActualBudgetLYear
4011,667Grants75,00080,00014,878
5011,667Grants75,00080,00014,878
Summary P&L
Cell Formulas
RangeFormula
D4=SUMPRODUCT('P&L FY16'!$D$4:$N$8*('P&L FY16'!$A$4:$A$8='Summary P&L'!C4)*(COLUMN('P&L FY16'!$D$3:$N$3)<=VLOOKUP($D$1,Validations!$A$1:$B$12,2,FALSE)))
D5=SUMPRODUCT('P&L FY16'!$D$4:$N$8*('P&L FY16'!$A$4:$A$8='Summary P&L'!C5)*('P&L FY16'!$D$3:$N$3<=$D$1))



Excel 2010
ABCDEFGHIJKLMN
3Jul 15Aug 15Sep 15Oct 15Nov 15Dec 15
4Grants20000005000005000
P&L FY16



Excel 2010
AB
1Jul-154
2Aug-156
3Sep-158
4Oct-1510
5Nov-1512
6Dec-1514
7Jan-1616
8Feb-1618
9Mar-1620
10Apr-1622
11May-1624
12Jun-1626
Validations


The first formula uses your validation sheet (I have assumed that the numbers in the second column reflect the column in which the month resides).

The second formula just looks at the dates (this assumes that your heading are dates rather than text representations of dates)
 
Upvote 0

Forum statistics

Threads
1,215,284
Messages
6,124,059
Members
449,139
Latest member
sramesh1024

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