Antares2000
New Member
- Joined
- Dec 31, 2017
- Messages
- 1
Hello guys!
I currently have a database with company info that is organized by quarters I would need to summarize by year. The database is roughly organized like the table below, but with a lot more inputs per company and doing SUMIF manually will be an task with no end. I tried using index match, but it won't sum multiple outputs...
INPUT (sheet input)
A B C D E F G H
[TABLE="width: 1167"]
<tbody>[TR]
[TD]1[/TD]
[TD][/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[/TR]
[TR]
[TD]3 Apple[/TD]
[TD]Revenues[/TD]
[TD="align: right"]100,00[/TD]
[TD="align: right"]102,00[/TD]
[TD="align: right"]104,00[/TD]
[TD="align: right"]106,00[/TD]
[TD="align: right"]108,00[/TD]
[TD="align: right"]110,00[/TD]
[TD="align: right"]112,00[/TD]
[TD="align: right"]114,00[/TD]
[TD="align: right"]116,00[/TD]
[TD="align: right"]118,00[/TD]
[TD="align: right"]120,00[/TD]
[TD="align: right"]122,00[/TD]
[TD="align: right"]124,00[/TD]
[TD="align: right"]126,00[/TD]
[TD="align: right"]128,00[/TD]
[TD="align: right"]130,00[/TD]
[/TR]
[TR]
[TD]4 Apple[/TD]
[TD]COGS[/TD]
[TD="align: right"]20,00[/TD]
[TD="align: right"]20,40[/TD]
[TD="align: right"]20,80[/TD]
[TD="align: right"]21,20[/TD]
[TD="align: right"]21,60[/TD]
[TD="align: right"]22,00[/TD]
[TD="align: right"]22,40[/TD]
[TD="align: right"]22,80[/TD]
[TD="align: right"]23,20[/TD]
[TD="align: right"]23,60[/TD]
[TD="align: right"]24,00[/TD]
[TD="align: right"]24,40[/TD]
[TD="align: right"]24,80[/TD]
[TD="align: right"]25,20[/TD]
[TD="align: right"]25,60[/TD]
[TD="align: right"]26,00[/TD]
[/TR]
[TR]
[TD]5 Apple[/TD]
[TD]SG&A[/TD]
[TD="align: right"]10,00[/TD]
[TD="align: right"]10,20[/TD]
[TD="align: right"]10,40[/TD]
[TD="align: right"]10,60[/TD]
[TD="align: right"]10,80[/TD]
[TD="align: right"]11,00[/TD]
[TD="align: right"]11,20[/TD]
[TD="align: right"]11,40[/TD]
[TD="align: right"]11,60[/TD]
[TD="align: right"]11,80[/TD]
[TD="align: right"]12,00[/TD]
[TD="align: right"]12,20[/TD]
[TD="align: right"]12,40[/TD]
[TD="align: right"]12,60[/TD]
[TD="align: right"]12,80[/TD]
[TD="align: right"]13,00[/TD]
[/TR]
[TR]
[TD]6 Apple[/TD]
[TD]EBITDA[/TD]
[TD="align: right"]70,00[/TD]
[TD="align: right"]71,40[/TD]
[TD="align: right"]72,80[/TD]
[TD="align: right"]74,20[/TD]
[TD="align: right"]75,60[/TD]
[TD="align: right"]77,00[/TD]
[TD="align: right"]78,40[/TD]
[TD="align: right"]79,80[/TD]
[TD="align: right"]81,20[/TD]
[TD="align: right"]82,60[/TD]
[TD="align: right"]84,00[/TD]
[TD="align: right"]85,40[/TD]
[TD="align: right"]86,80[/TD]
[TD="align: right"]88,20[/TD]
[TD="align: right"]89,60[/TD]
[TD="align: right"]91,00[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8 Amazon[/TD]
[TD]Revenues[/TD]
[TD="align: right"]70,00[/TD]
[TD="align: right"]72,00[/TD]
[TD="align: right"]74,00[/TD]
[TD="align: right"]76,00[/TD]
[TD="align: right"]78,00[/TD]
[TD="align: right"]80,00[/TD]
[TD="align: right"]82,00[/TD]
[TD="align: right"]84,00[/TD]
[TD="align: right"]86,00[/TD]
[TD="align: right"]88,00[/TD]
[TD="align: right"]90,00[/TD]
[TD="align: right"]92,00[/TD]
[TD="align: right"]94,00[/TD]
[TD="align: right"]96,00[/TD]
[TD="align: right"]98,00[/TD]
[TD="align: right"]100,00[/TD]
[/TR]
[TR]
[TD]9 Amazon[/TD]
[TD]COGS[/TD]
[TD="align: right"]14,00[/TD]
[TD="align: right"]14,40[/TD]
[TD="align: right"]14,80[/TD]
[TD="align: right"]15,20[/TD]
[TD="align: right"]15,60[/TD]
[TD="align: right"]16,00[/TD]
[TD="align: right"]16,40[/TD]
[TD="align: right"]16,80[/TD]
[TD="align: right"]17,20[/TD]
[TD="align: right"]17,60[/TD]
[TD="align: right"]18,00[/TD]
[TD="align: right"]18,40[/TD]
[TD="align: right"]18,80[/TD]
[TD="align: right"]19,20[/TD]
[TD="align: right"]19,60[/TD]
[TD="align: right"]20,00[/TD]
[/TR]
[TR]
[TD]10Amazon[/TD]
[TD]SG&A[/TD]
[TD="align: right"]7,00[/TD]
[TD="align: right"]7,20[/TD]
[TD="align: right"]7,40[/TD]
[TD="align: right"]7,60[/TD]
[TD="align: right"]7,80[/TD]
[TD="align: right"]8,00[/TD]
[TD="align: right"]8,20[/TD]
[TD="align: right"]8,40[/TD]
[TD="align: right"]8,60[/TD]
[TD="align: right"]8,80[/TD]
[TD="align: right"]9,00[/TD]
[TD="align: right"]9,20[/TD]
[TD="align: right"]9,40[/TD]
[TD="align: right"]9,60[/TD]
[TD="align: right"]9,80[/TD]
[TD="align: right"]10,00[/TD]
[/TR]
[TR]
[TD]12Amazon[/TD]
[TD]EBITDA[/TD]
[TD="align: right"]49,00[/TD]
[TD="align: right"]50,40[/TD]
[TD="align: right"]51,80[/TD]
[TD="align: right"]53,20[/TD]
[TD="align: right"]54,60[/TD]
[TD="align: right"]56,00[/TD]
[TD="align: right"]57,40[/TD]
[TD="align: right"]58,80[/TD]
[TD="align: right"]60,20[/TD]
[TD="align: right"]61,60[/TD]
[TD="align: right"]63,00[/TD]
[TD="align: right"]64,40[/TD]
[TD="align: right"]65,80[/TD]
[TD="align: right"]67,20[/TD]
[TD="align: right"]68,60[/TD]
[TD="align: right"]70,00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
DESIRED OUTPUT (sheet output)
A B C D E F G
1 Company Amazon
[TABLE="width: 448"]
<tbody>[TR]
[TD]2[/TD]
[TD] 2017[/TD]
[TD] 2018[/TD]
[TD] 2019[/TD]
[TD] 2020[/TD]
[TD] 2021[/TD]
[TD] 2022[/TD]
[/TR]
[TR]
[TD="colspan: 2"]3 Revenues[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4 COGS[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5 SG&A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6 EBITDA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For example, the formula would be inputed in B3, look for "Revenues" (A3) in column B (B:B) of sheet input, "Amazon" ($B$1) at column A (A:A) of sheet input and "2017" (B2) in row 1 (1:1) of sheet input, the problem is that there are four values for 2017 in row 1 of sheet input. Is there a way that the output of the formula will sum all such numbers for 2017?
In this example the result would be 412,00
I could also compile columns A and B in input to reduce the number of variables if this will avoid array formulas. I really appreciate any help!
Thanks!
I currently have a database with company info that is organized by quarters I would need to summarize by year. The database is roughly organized like the table below, but with a lot more inputs per company and doing SUMIF manually will be an task with no end. I tried using index match, but it won't sum multiple outputs...
INPUT (sheet input)
A B C D E F G H
[TABLE="width: 1167"]
<tbody>[TR]
[TD]1[/TD]
[TD][/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[TD]2020[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[TD]Q1[/TD]
[TD]Q2[/TD]
[TD]Q3[/TD]
[TD]Q4[/TD]
[/TR]
[TR]
[TD]3 Apple[/TD]
[TD]Revenues[/TD]
[TD="align: right"]100,00[/TD]
[TD="align: right"]102,00[/TD]
[TD="align: right"]104,00[/TD]
[TD="align: right"]106,00[/TD]
[TD="align: right"]108,00[/TD]
[TD="align: right"]110,00[/TD]
[TD="align: right"]112,00[/TD]
[TD="align: right"]114,00[/TD]
[TD="align: right"]116,00[/TD]
[TD="align: right"]118,00[/TD]
[TD="align: right"]120,00[/TD]
[TD="align: right"]122,00[/TD]
[TD="align: right"]124,00[/TD]
[TD="align: right"]126,00[/TD]
[TD="align: right"]128,00[/TD]
[TD="align: right"]130,00[/TD]
[/TR]
[TR]
[TD]4 Apple[/TD]
[TD]COGS[/TD]
[TD="align: right"]20,00[/TD]
[TD="align: right"]20,40[/TD]
[TD="align: right"]20,80[/TD]
[TD="align: right"]21,20[/TD]
[TD="align: right"]21,60[/TD]
[TD="align: right"]22,00[/TD]
[TD="align: right"]22,40[/TD]
[TD="align: right"]22,80[/TD]
[TD="align: right"]23,20[/TD]
[TD="align: right"]23,60[/TD]
[TD="align: right"]24,00[/TD]
[TD="align: right"]24,40[/TD]
[TD="align: right"]24,80[/TD]
[TD="align: right"]25,20[/TD]
[TD="align: right"]25,60[/TD]
[TD="align: right"]26,00[/TD]
[/TR]
[TR]
[TD]5 Apple[/TD]
[TD]SG&A[/TD]
[TD="align: right"]10,00[/TD]
[TD="align: right"]10,20[/TD]
[TD="align: right"]10,40[/TD]
[TD="align: right"]10,60[/TD]
[TD="align: right"]10,80[/TD]
[TD="align: right"]11,00[/TD]
[TD="align: right"]11,20[/TD]
[TD="align: right"]11,40[/TD]
[TD="align: right"]11,60[/TD]
[TD="align: right"]11,80[/TD]
[TD="align: right"]12,00[/TD]
[TD="align: right"]12,20[/TD]
[TD="align: right"]12,40[/TD]
[TD="align: right"]12,60[/TD]
[TD="align: right"]12,80[/TD]
[TD="align: right"]13,00[/TD]
[/TR]
[TR]
[TD]6 Apple[/TD]
[TD]EBITDA[/TD]
[TD="align: right"]70,00[/TD]
[TD="align: right"]71,40[/TD]
[TD="align: right"]72,80[/TD]
[TD="align: right"]74,20[/TD]
[TD="align: right"]75,60[/TD]
[TD="align: right"]77,00[/TD]
[TD="align: right"]78,40[/TD]
[TD="align: right"]79,80[/TD]
[TD="align: right"]81,20[/TD]
[TD="align: right"]82,60[/TD]
[TD="align: right"]84,00[/TD]
[TD="align: right"]85,40[/TD]
[TD="align: right"]86,80[/TD]
[TD="align: right"]88,20[/TD]
[TD="align: right"]89,60[/TD]
[TD="align: right"]91,00[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8 Amazon[/TD]
[TD]Revenues[/TD]
[TD="align: right"]70,00[/TD]
[TD="align: right"]72,00[/TD]
[TD="align: right"]74,00[/TD]
[TD="align: right"]76,00[/TD]
[TD="align: right"]78,00[/TD]
[TD="align: right"]80,00[/TD]
[TD="align: right"]82,00[/TD]
[TD="align: right"]84,00[/TD]
[TD="align: right"]86,00[/TD]
[TD="align: right"]88,00[/TD]
[TD="align: right"]90,00[/TD]
[TD="align: right"]92,00[/TD]
[TD="align: right"]94,00[/TD]
[TD="align: right"]96,00[/TD]
[TD="align: right"]98,00[/TD]
[TD="align: right"]100,00[/TD]
[/TR]
[TR]
[TD]9 Amazon[/TD]
[TD]COGS[/TD]
[TD="align: right"]14,00[/TD]
[TD="align: right"]14,40[/TD]
[TD="align: right"]14,80[/TD]
[TD="align: right"]15,20[/TD]
[TD="align: right"]15,60[/TD]
[TD="align: right"]16,00[/TD]
[TD="align: right"]16,40[/TD]
[TD="align: right"]16,80[/TD]
[TD="align: right"]17,20[/TD]
[TD="align: right"]17,60[/TD]
[TD="align: right"]18,00[/TD]
[TD="align: right"]18,40[/TD]
[TD="align: right"]18,80[/TD]
[TD="align: right"]19,20[/TD]
[TD="align: right"]19,60[/TD]
[TD="align: right"]20,00[/TD]
[/TR]
[TR]
[TD]10Amazon[/TD]
[TD]SG&A[/TD]
[TD="align: right"]7,00[/TD]
[TD="align: right"]7,20[/TD]
[TD="align: right"]7,40[/TD]
[TD="align: right"]7,60[/TD]
[TD="align: right"]7,80[/TD]
[TD="align: right"]8,00[/TD]
[TD="align: right"]8,20[/TD]
[TD="align: right"]8,40[/TD]
[TD="align: right"]8,60[/TD]
[TD="align: right"]8,80[/TD]
[TD="align: right"]9,00[/TD]
[TD="align: right"]9,20[/TD]
[TD="align: right"]9,40[/TD]
[TD="align: right"]9,60[/TD]
[TD="align: right"]9,80[/TD]
[TD="align: right"]10,00[/TD]
[/TR]
[TR]
[TD]12Amazon[/TD]
[TD]EBITDA[/TD]
[TD="align: right"]49,00[/TD]
[TD="align: right"]50,40[/TD]
[TD="align: right"]51,80[/TD]
[TD="align: right"]53,20[/TD]
[TD="align: right"]54,60[/TD]
[TD="align: right"]56,00[/TD]
[TD="align: right"]57,40[/TD]
[TD="align: right"]58,80[/TD]
[TD="align: right"]60,20[/TD]
[TD="align: right"]61,60[/TD]
[TD="align: right"]63,00[/TD]
[TD="align: right"]64,40[/TD]
[TD="align: right"]65,80[/TD]
[TD="align: right"]67,20[/TD]
[TD="align: right"]68,60[/TD]
[TD="align: right"]70,00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
DESIRED OUTPUT (sheet output)
A B C D E F G
1 Company Amazon
[TABLE="width: 448"]
<tbody>[TR]
[TD]2[/TD]
[TD] 2017[/TD]
[TD] 2018[/TD]
[TD] 2019[/TD]
[TD] 2020[/TD]
[TD] 2021[/TD]
[TD] 2022[/TD]
[/TR]
[TR]
[TD="colspan: 2"]3 Revenues[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4 COGS[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5 SG&A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6 EBITDA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For example, the formula would be inputed in B3, look for "Revenues" (A3) in column B (B:B) of sheet input, "Amazon" ($B$1) at column A (A:A) of sheet input and "2017" (B2) in row 1 (1:1) of sheet input, the problem is that there are four values for 2017 in row 1 of sheet input. Is there a way that the output of the formula will sum all such numbers for 2017?
In this example the result would be 412,00
I could also compile columns A and B in input to reduce the number of variables if this will avoid array formulas. I really appreciate any help!
Thanks!