View Single Post
 
Old 02-14-2011, 05:06 PM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

Put this formula in G5 and fill down:
Code:
=(COUNTIFS($D$5:$D$100,">="&D5,$D$5:$D$100,"<"&E5)+
    COUNTIFS($D$5:$D$100,"<"&E5,$E$5:$E$100,">"&D5))<=2
You can also simplify the formula in C5 (if you still want it)
Code:
=COUNTIFS($D$5:$D$24,"<="&A5,$E$5:$E$24,">="&A5)
Reply With Quote