Counting the first instance

Iain McBride

New Member
Joined
Aug 17, 2018
Messages
38
Hi guys,
Trying to calculate the instances of certain occurrences happening.
Count EVERY 1 to 1
Count first instance of Group 1, 2 and 3
Do not count Absent:

I want to calculate it at the bottom of the range B5:B16 (so in cell B17).

can get certain aspects of the formula but not fully working,

Any help gratefully received.

Thanks,
Iain
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
From the little you have given us it is impossible to know what you have, where and what you are trying to do.

I'd suggest posting a small set of dummy data and the expected results and explain again in relation to that data. My signature block below has suggestions to help with that.
 
Upvote 0
[TABLE="width: 416"]
<colgroup><col><col><col span="3"></colgroup><tbody>[TR]
[TD]Here is a quick snap shot of my table:



[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Column1[/TD]
[TD]Date[/TD]
[TD]Date2[/TD]
[TD]Date3[/TD]
[TD]Date4[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]group 1[/TD]
[TD="align: right"]1[/TD]
[TD]1:1[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 1[/TD]
[TD="align: right"]0[/TD]
[TD]Group 1[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 2[/TD]
[TD="align: right"]1[/TD]
[TD]Group 2[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]1:1[/TD]
[TD="align: right"]1[/TD]
[TD]1:1[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Abs[/TD]
[TD="align: right"]1[/TD]
[TD]Abs[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Abs[/TD]
[TD="align: right"]0[/TD]
[TD]Abs[/TD]
[TD]abs[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 1[/TD]
[TD="align: right"]0[/TD]
[TD]Group 1[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 2[/TD]
[TD="align: right"]0[/TD]
[TD]Group 2[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 2[/TD]
[TD="align: right"]0[/TD]
[TD]Group 2[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Group 1[/TD]
[TD="align: right"]0[/TD]
[TD]group 3[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Abs [/TD]
[TD="align: right"]1[/TD]
[TD]group 3[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]1:1[/TD]
[TD="align: right"][/TD]
[TD]1:1[/TD]
[TD]1:1[/TD]
[/TR]
[TR]
[TD]Total Sessions[/TD]
[TD] 4[/TD]
[TD="align: right"][/TD]
[TD]6[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]

So the table highlights that every 1:! is counted every first instance of a Group session is counted (the rest are not counted), and the Abs (absent) are not counted.

Hope that clear things (even just a little!)
 
Upvote 0
See if this does what you want.
B14 is copied to D14 & E14

Excel Workbook
ABCDE
1Column1DateDate2Date3Date4
2Namegroup 111:11:1
3NameGroup 10Group 1Group 1
4NameGroup 21Group 2Group 1
5Name1:111:1Group 1
6NameAbs1AbsGroup 2
7NameAbs0Absabs
8NameGroup 10Group 11:1
9NameGroup 20Group 21:1
10NameGroup 20Group 21:1
11NameGroup 10group 31:1
12NameAbs1group 31:1
13Name1:11:11:1
14Total Sessions469
Count
 
Upvote 0
I have now been asked to add an element into the dropdown list (NMN - no meeting needed) that we are not counting (like the 'Abs'). Sadly I do not understand the above formula - can anyone help me to amend the formula.

Thanks
Iain
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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