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.
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.