How to plot chart by showing continuous month data

vibinvenugopal

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

Please see data below.

Employee #Employee NameDesignationSenior/JuniorAllocation Start DateAllocation End Date
123ABCEngineerJ1-Apr-14
456DEFEngineerJ1-Apr-14
789GHIManagerJ1-Apr-14
112JKLmanagerJ1-Jul-14


<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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))
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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,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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