One Day Sickness

k9nny

Board Regular
Joined
Feb 15, 2005
Messages
93
Hello everybody,

I am working on a staff availability spreadsheet that records vacation, overtime and sickness. The entries are summarised by a number of charts that display aspects like our most popular vacation months, employee vacation entitlement and how many days they have left. In addition, their sickness records are also displayed here. But I’d like to be able to determine how many ‘one day’ sicknesses each employee has had.

The spreadsheet is formatted much like a calendar, and I am using an ‘S’ to represent a days sickness. So, let’s say that cell A1, A2 and A3 represent the first three days of the month, and this particular employee was sick on the second day only.

I am already counting the number of times that an ‘S’ is present for each employee, but how can I determine and count the number of times the letter ‘S’ appears when the cells on either side are blank?

Thanks very much, Kenny.
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Hello Kenny,

If you want to count the number of single "S"s in the range A1:A31 (including an "S" in A1 followed by a blank in A2 or an "S" in A31 preceded by a blank in A30)

=SUM(IF(FREQUENCY(IF(A1:A31="S",ROW(A1:A31)),IF(A1:A31<>"S",ROW(A1:A31)))=1,1))

confirmed with CTRL+SHIFT+ENTER
 

Watch MrExcel Video

Forum statistics

Threads
1,123,329
Messages
5,600,996
Members
414,419
Latest member
JRDunya

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
Top