more then 1 day

UPN

Board Regular
Joined
May 14, 2006
Messages
138
I was wondering if there is a formula to check this out

if someone takes personal day it is 1 occurrance

but if they have more then 1 day in a row off it is 1 occurrance

example

4/24/06 personal day 1 occurrance

6/24/06 personal day
6/25/06 personal day

instead of these being 2 single occurrances it is consider 1 occurrance for the 2 days off in a row, but this can be more then 2 days also

so what i need to show is that the person only has 2 occurrance and not 3
 
Try:

Code:
{=SUM(--ISNA(MATCH(A1:A10+(1+ISNUMBER(MATCH(A1:A10+1,H:H,0))+(A1:A10=("11/22/2006"+0))),A1:A10,0))*(A1:A10<>"")*(A1:A10>(TODAY()-90)))}

Where H:H is your list of holidays as before...
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
sorry

i forgot about christmas eve and chritmas day as well as new year's eve and new year s day
 
Upvote 0
Same idea...

Code:
{=SUM(--ISNA(MATCH(A1:A10+(1+ISNUMBER(MATCH(A1:A10+1,H:H,0))+(A1:A10=("11/22/2006"+0))+(A1:A10=("12/23/2006"+0))+(A1:A10=("12/30/2006"+0))),A1:A10,0))*(A1:A10<>"")*(A1:A10>(TODAY()-90)))}
 
Upvote 0
I am trying to use the older ones and and they dont seem to be working right.
 
Upvote 0
What do you mean by "older ones" and "dont seem to be working right"?
 
Upvote 0
from the earlier post

with the people working on weekend, if i put 10/14 in a cell and 10/15 in another and it counts it as 2 occurrances when it should be 1
 
Upvote 0
yes on the contrl+shift+enter

was trying to use

Quote:
C1=--AND(ISNA(MATCH(WORKDAY(A1,1,$H$1:$H$25),$A$1:$A$100,0)),B1<>"a",A1>(TODAY()-90))
 
Upvote 0
That was designed to exclude Saturdays and Sundays. Since Oct 14 is a Saturday, the formula fails.

Go back farther to Barry's formula on page 1 of this thread:

{=SUM(--ISNA(MATCH(A1:A10+1,A1:A10,0))*(B1:B10<>"a")*(A1:A10>(TODAY()-90))) }
 
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,880
Members
449,411
Latest member
AppellatePerson

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