occurances

dunnes

Board Regular
Joined
May 21, 2003
Messages
69
Hi,
i am trying to create a spreadsheet that calculates sickness days in the past year. These are simply marked by a number 1 in a cell.
The difficult bit is trying to work out how to calulate the amount of occurances of sickness. ie if i had Mon Tue and Wed off this is one occurance, if i have mon and fri off in the same week this is 2 occurances.. Is this possible?

Cheers
Mike
:eek:
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Not a terribly elegant solution but it works:

Assuming you have your sick days in Column A starting in A1 create the following forumula in B1:

Code:
=IF(AND(A1=1,A2=0),1,0)

Drag that formula down column B and then SUM column B to get the number of occurences.

Chris
 
Upvote 0
Good man......this seems like it will solve my query, i thought it was going to be alot more complicated!
I was thinking like a count amount of words (C++ programming im doing) but wasnt quite sure how i would translate into Excel, which i suppose it as as all you are looking for is a number and then a blank.....
Genius

Cheers
Mike
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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