SHNOGENS

New Member
Joined
Nov 9, 2018
Messages
1
I seem to be a bit stuck and any help would be great. I am trying to track 2 items. The first is the number of times a person is sick or late to work. For that it was a simple: =SUM(COUNTIFS(D22:D29,{"SICK","LATE"})). Then I need to count how many different occurrences there were. In my company, if you call out 2 days in a row, that is only considered 1. I can pull the occurrence using: =SUMPRODUCT((C22:C29>=$I$22)*(C22:C29<=$I$23)) ($I$22 and $I$23 being the dates i type in for the past calendar year). Is there a way I am not seeing that I can merge the two together? This is what the sheet will look like. I need to exclude all of the FMLA. So I need 2 rows. One will be total so with the below it would be 4. Then the second column should be 3. Any help would be greatly appreciated.

C22-C29 D22-D29
10/4/18 FMLA
9/9/18 SICK
9/8/18 SICK
8/10/18 LATE

<colgroup><col width="87" span="2" style="width:65pt"></colgroup><tbody>
<!--EndFragment--></tbody><tbody>
</tbody>
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to the Forum

I'm not clear as to what outcome you're seeking - 2 results or 3?


If 2, is it:

  1. the number of times a person is sick or late to work = 2 (not 3 as two sick days were consecutive)
  2. count how many different occurrences there were (including or excluding FMLA?)

If 3, is it:

  1. the number of times a person is sick or late to work (not 3 as two sick days were consecutive)
  2. count how many different occurrences there were (including FMLA)= 4
  3. count how many different occurrences there were (excluding FMLA) = 3


Is there a way I am not seeing that I can merge the two together?
Which two?
If you change your formula to =SUMPRODUCT( (C22:C29>=$I$22) * (C22:C29<=$I$23) * (D22:D29<>"FMLA") ) you'll exclude the FMLA events from the result.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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