Need help in conditional count, count values only when column heading matches

rajtak

Board Regular
Joined
Feb 23, 2009
Messages
74
I want to count 'a' (absent) of each employee listed in column C to D for each particular month as shown in the table Column G thru H. Please suggest a formula to achieve it.

The Screenshot below will better explain what I'd like to do.

attendence.jpg


Thank you in advance for your help
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hello Rajtak,

If you don't mind setup the ranges, you can use this formula: =COUNTA(C3:C27)

Maybe someone else can make a more dynamic formula. I don't have the knowledge.

Goodluck!
 
Upvote 0
Hi Rajtak,

1. Select a cell where you want to plot your pivottable
2. Go to insert -> Pivottable
3. Select A2:D30 as range (or whatever range you want)
4. -Row label: monthname
-Values: count of Tom, count of rick

This should do it I guess :)
 
Last edited:
Upvote 0
And BTW there are hundreds of tutorials all over the web...
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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