Need help simplifying an Equation with 63 variants

Ordonius

New Member
Joined
Aug 18, 2014
Messages
9
Hello Everyone,

I have once came to this forum with a complicated case and had great results, so Im Back.

I have a tremendous Raw Data, and I want to be summarize it in a front page as so:

[TABLE="width: 500"]
<tbody>[TR]
[TD]<style type="text/css"><!-- body,div,table,thead,tbody,tfoot,tr,th,td,p { font-family:"Liberation Sans"; font-size:x-small } --> </style>

<colgroup width="132"></colgroup> <colgroup width="186"></colgroup> <colgroup width="137"></colgroup> <colgroup width="106"></colgroup> <colgroup width="203"></colgroup> <colgroup width="113"></colgroup> <colgroup width="132"></colgroup> <colgroup width="181"></colgroup> <colgroup span="2" width="132"></colgroup> <tbody>
[TD="bgcolor: #FF0000, align: center"] SubRegion [/TD]
[TD="align: center"]N-Africa[/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]

[TD="bgcolor: #FF0000, align: center"] Country [/TD]
[TD="align: center"]United Kingdom[/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]

[TD="bgcolor: #FF0000, align: center"] SI [/TD]
[TD="align: center"]None[/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]
[TD="align: left"][/TD]

[TD="bgcolor: #FF0000, align: center"] Product Family [/TD]
[TD="align: center"]None[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] Family Segment [/TD]
[TD="align: center"]Addon[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] Renewal [/TD]
[TD="align: center"]YES[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] 3Year Deal [/TD]
[TD="align: center"]YES[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] Country [/TD]
[TD="bgcolor: #FF0000, align: center"] United Kingdom FY13 [/TD]
[TD="bgcolor: #FF0000, align: center"] Qty of PO FY13 [/TD]
[TD="bgcolor: #FF0000, align: center"] % of Total [/TD]
[TD="bgcolor: #FF0000, align: center"] United Kingdom FY14 [/TD]
[TD="bgcolor: #FF0000, align: center"] Qty of PO FY14 [/TD]
[TD="bgcolor: #FF0000, align: center"] % of Total [/TD]
[TD="bgcolor: #FF0000, align: center"] United Kingdom FY15 [/TD]
[TD="bgcolor: #FF0000, align: center"] Qty of PO FY15 [/TD]
[TD="bgcolor: #FF0000, align: center"] % of Total [/TD]

[TD="bgcolor: #FF0000, align: center"] Q1 [/TD]
[TD="align: center"]1,551,446 €[/TD]
[TD="align: center"]99[/TD]
[TD="align: center"]31.11%[/TD]
[TD="align: center"]3,243,153 €[/TD]
[TD="align: center"]116[/TD]
[TD="align: center"]47.45%[/TD]
[TD="align: center"]4,495,647 €[/TD]
[TD="align: center"]123[/TD]
[TD="align: center"]52.89%[/TD]

[TD="bgcolor: #FF0000, align: center"] Q2 [/TD]
[TD="align: center"]2,373,125 €[/TD]
[TD="align: center"]120[/TD]
[TD="align: center"]51.58%[/TD]
[TD="align: center"]1,301,569 €[/TD]
[TD="align: center"]112[/TD]
[TD="align: center"]26.08%[/TD]
[TD="align: center"]1,375,537 €[/TD]
[TD="align: center"]140[/TD]
[TD="align: center"]21.15%[/TD]

[TD="bgcolor: #FF0000, align: center"] Q3 [/TD]
[TD="align: center"]1,819,876 €[/TD]
[TD="align: center"]128[/TD]
[TD="align: center"]46.18%[/TD]
[TD="align: center"]3,265,357 €[/TD]
[TD="align: center"]130[/TD]
[TD="align: center"]48.68%[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] Q4 [/TD]
[TD="align: center"]3,270,126 €[/TD]
[TD="align: center"]103[/TD]
[TD="align: center"]48.58%[/TD]
[TD="align: center"]4,139,968 €[/TD]
[TD="align: center"]86[/TD]
[TD="align: center"]51.77%[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="bgcolor: #FF0000, align: center"] Total [/TD]
[TD="align: center"]9,014,573 €[/TD]
[TD="align: center"]450[/TD]
[TD="align: center"]44.49%[/TD]
[TD="align: center"]11,950,047 €[/TD]
[TD="align: center"]444[/TD]
[TD="align: center"]45.04%[/TD]
[TD="align: center"]5,871,184 €[/TD]
[TD="align: center"]263[/TD]
[TD="align: center"]39.14%
[/TD]

</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]


The first set are drop down boxes which govern the Data shown on the Box Below, so far I have managed to set the equations to return the variations in: COUNTRY, SI and PRODUCT FAMILY, with the following equation: =IF($C$5="None",SUMPRODUCT((ISNUMBER(MATCH('2013 Q1'.$T$2:$T$2000,$C$6,0))),'2013 Q1'.$B$2:$B$2000),(IF($C$6="None",SUMPRODUCT((ISNUMBER(MATCH('2013 Q1'.$C$2:$C$2000,$C$5,0))),'2013 Q1'.$B$2:$B$2000),SUMPRODUCT((ISNUMBER(MATCH('2013 Q1'.$C$2:$C$2000,$C$5,0)*MATCH('2013 Q1'.$T$2:$T$2000,$C$6,0))),'2013 Q1'.$B$2:$B$2000)))) for the Currency value, and for the Quantities I am using =IF($C$6="None",SUMPRODUCT((Sheet20.$AC$2:$AC$5000=$C$5)*(Sheet20.$K$2:$K$5000=U1)*1),(IF($C$5="None",SUMPRODUCT((Sheet20.$K$2:$K$5000=U1)*(Sheet20.$AE$2:$AE$5000=$C$6)*1),SUMPRODUCT((Sheet20.$AC$2:$AC$5000=$C$5)*(Sheet20.$K$2:$K$5000=U1)*(Sheet20.$AE$2:$AE$5000=$C$6)*1)))).

Now I will have 63 Permutations in total, is there an easier to do this which I am not seeing? I am also afraid that using the total of 63 permutations will crash the program.


Thanks for taking the time to read and I /bow to the one that can help

Ord
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,099
Messages
6,170,111
Members
452,302
Latest member
TaMere

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