COUNT occurence formula help

Jacko1307

Board Regular
Joined
Sep 4, 2012
Messages
92
Office Version
  1. 2016
Platform
  1. Windows
Good morning,

I have been asked to produce a variance of staff sick days within my workbook.

1. Currently I have the following formula =COUNTIF(B6:NB6,"S") However my boss has asked me to also add a variation to this in Occurence format.

Question. If an individual was off for a 3 day period then back in work for 5 weeks then off for a 5 day period how could I show this as 2 occurences not total of days ?

Any help on this would be much appreciated.

Many thanks

Martin
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I made some sample data myself how I would imagine your data to be looking like:

Book1
ABCDEFGHIJKLMN
1wssswwwwwsssss
2
32
Sheet6
Cell Formulas
RangeFormula
A3A3=SUM(--(FREQUENCY(IF(A1:N1="s",COLUMN(A1:N1)),IF(A1:N1="s",0,COLUMN(A1:N1)))>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,693
Messages
6,126,248
Members
449,304
Latest member
hagia_sofia

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