Count number of instances.

jlokesh16

New Member
Joined
Jan 22, 2015
Messages
39
I have three columns where the first column have names, second column has week (eg, Week 1, Week 2) and the third column has shifts (eg, S1, S2).
I want to count the number of instances of third column of a specific person of first column in a particular week.
For EG:

Col 1 Col 2 Col 3
Names Week Shifts.

Mike Week1 S1
Jack Week1 S1
Ray Week1 S2
Mike Week1 S1

How do i count how many times Mike has done S1 in Week1?
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
lokesh16, Good evening.

Try to use:

=COUNTIFS(A1:A3,"MIKE",B1:B3,"WEEK1",C1:C3,"S1")

If.......D1 = MIKE......F1 = WEEK1.......G1 = S1 you can use:

=COUNTIFS(A1:A3,D1, B1:B3,F1, C1:C3,G1)

Is that what you want?
I hope it helps.
 
Upvote 0
Thanks, The first two conditions are right, but as you mentioned S1, it is varied like S1, S2, S3. I want to count all the instances having "S" prefix in the column of that person in the week.
 
Upvote 0
S1, it is varied like S1, S2, S3. I want to count all the instances having "S" prefix in the column of that person in the week.

Use sumproduct with a left(,1) then. If you want countifs or a pivot table instead, add a helper column.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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