How to plot chart by showing continuous month data

vibinvenugopal

New Member
Joined
Jul 20, 2015
Messages
9
Hi All,

Please see data below.

[TABLE="width: 735"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Employee #[/TD]
[TD]Employee Name[/TD]
[TD]Designation[/TD]
[TD]Senior/Junior[/TD]
[TD]Allocation Start Date[/TD]
[TD]Allocation End Date[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]ABC[/TD]
[TD]Engineer[/TD]
[TD]J[/TD]
[TD="align: right"]1-Apr-14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]DEF[/TD]
[TD]Engineer[/TD]
[TD]J[/TD]
[TD="align: right"]1-Apr-14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]789[/TD]
[TD]GHI[/TD]
[TD]Manager[/TD]
[TD]J[/TD]
[TD="align: right"]1-Apr-14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]112[/TD]
[TD]JKL[/TD]
[TD]manager[/TD]
[TD]J[/TD]
[TD="align: right"]1-Jul-14[/TD]
[TD]

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


I wanted to plot a bar chart where it shows the allocation start date ( as month) on the X axis and on the Y axis it should show the number of people who have allocation start date for that month. So for eg as per the data in the april month there are 3 people, and it should show may and june and july etc as 3 since there is no allocation end date for those employees.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Vibinvenugopal,

You will have to create a chart data area to compile the data. Below are sumproduct formulas that will work.

Also, I would suggest that you chart the data from I1:U3 as a Clustered Column Chart instead of a Bar Chart as it will make more sense.



Excel 2010
ABCDEFGHIJKLMNOPQRSTU
1Employee #Employee NameDesignationSenior/JuniorAllocation Start DateAllocation End DateChart Data4/1/20145/1/20146/1/20147/1/20148/1/20149/1/201410/1/201411/1/201412/1/20141/1/20152/1/20153/1/2015
2123ABCEngineerJ1-Apr-14Engineer222221111111
3456DEFEngineerJ1-Apr-148/1/2014Manager111222211111
4789GHIManagerJ1-Apr-14
5112JKLmanagerJ1-Jul-1410/1/2014
Sheet1
Cell Formulas
RangeFormula
J2=SUMPRODUCT(($I2=$C$2:$C$5)*(J$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(J$1>$F$2:$F$5))
J3=SUMPRODUCT(($I3=$C$2:$C$5)*(J$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(J$1>$F$2:$F$5))
K2=SUMPRODUCT(($I2=$C$2:$C$5)*(K$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(K$1>$F$2:$F$5))
K3=SUMPRODUCT(($I3=$C$2:$C$5)*(K$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(K$1>$F$2:$F$5))
L2=SUMPRODUCT(($I2=$C$2:$C$5)*(L$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(L$1>$F$2:$F$5))
L3=SUMPRODUCT(($I3=$C$2:$C$5)*(L$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(L$1>$F$2:$F$5))
M2=SUMPRODUCT(($I2=$C$2:$C$5)*(M$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(M$1>$F$2:$F$5))
M3=SUMPRODUCT(($I3=$C$2:$C$5)*(M$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(M$1>$F$2:$F$5))
N2=SUMPRODUCT(($I2=$C$2:$C$5)*(N$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(N$1>$F$2:$F$5))
N3=SUMPRODUCT(($I3=$C$2:$C$5)*(N$1>=$E$2:$E$5))-SUMPRODU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0)*(S$1>$F$2:$F$5))
T2=SUMPRODUCT(($I2=$C$2:$C$5)*(T$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(T$1>$F$2:$F$5))
T3=SUMPRODUCT(($I3=$C$2:$C$5)*(T$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(T$1>$F$2:$F$5))
U2=SUMPRODUCT(($I2=$C$2:$C$5)*(U$1>=$E$2:$E$5))-SUMPRODUCT(($I2=$C$2:$C$5)*($F$2:$F$5>0)*(U$1>$F$2:$F$5))
U3=SUMPRODUCT(($I3=$C$2:$C$5)*(U$1>=$E$2:$E$5))-SUMPRODUCT(($I3=$C$2:$C$5)*($F$2:$F$5>0)*(U$1>$F$2:$F$5))


Here is a picture of the results:
SumProduct-Monthly-Count-of-Allocations.png



Hope this helps.


Steve=True
 
Upvote 0
Thanks Steve, this really worked. I had a hard time cracking this problem, but your answer really helped me and I was able to plot the chart. Thanks so much once again! :)

Vibin
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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