YTD Sum of Plan values to be compared to Actual values

rschegg

New Member
Joined
Jun 26, 2017
Messages
1
I am currently working on a controlling dashboard for SharePoint, but have to figure out the formulas in Excel first.

I want to compare a YTD planned value (B4) with a YTD actual value (C4) and of that number insert a traffic light showing the YTD status vs. the plan.

Below you see the logic for one year (later on more years will be inserted).

[TABLE="width: 1000"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Today[/TD]
[TD]Q2 2017 Plan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/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]3[/TD]
[TD]2017 FY Plan[/TD]
[TD]2017 YTD Plan[/TD]
[TD]2017 YTD Act[/TD]
[TD]Q1 2017 Plan10[/TD]
[TD]Q1 2017 Act[/TD]
[TD]Q2 2017 Plan[/TD]
[TD]Q2 2017 Act[/TD]
[TD]Q3 2017 Plan[/TD]
[TD]Q3 2017 Act[/TD]
[TD]Q4 2017 Plan[/TD]
[TD]Q4 2017 Act[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]50[/TD]
[TD]32[/TD]
[TD]12[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]20[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]


The formulas I used are following:
[TABLE="width: 500"]
<tbody>[TR]
[TD]B2[/TD]
[TD]="Q"&INT((MONTH(TODAY())+2)/3)&" "&YEAR(TODAY())&" "&"Plan"[/TD]
[/TR]
[TR]
[TD]A4[/TD]
[TD]=SUM(D4:INDEX(D4:K4;MATCH(B1;D3:K3;0)))[/TD]
[/TR]
[TR]
[TD]B4[/TD]
[TD]=D4+F4+H4+J4[/TD]
[/TR]
</tbody>[/TABLE]
At the moment B2 returns the current quarter and year, which is then used as a comparison for the formula in B4.

Obviously, the formula I found using INDEX MATCH in B4 does not work, as all columns (from D4:F4) are summed up. I would need something similar, which only sums up every second columns - the YTD "plan" values (D4 and F4 in this case) and leaves out the YTD "actual" values. I unfortunately, have no clue how to insert this additional condition. The similar formula in C4 is now missing as well (value has been inserted manually).

Thank you for your help! It is highly appreciated.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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