You are here:

- Home
- Computing/Technology
- Business Software
- Excel
- Corrected Question - Exclude other timeframes from one timeframe

Advertisement

Thanks Aden,

Here is the solution you gave and it works as exactly what I wanted.

I just have changed 99999 to 2958465.99999 (which is the number for 31/12/9999 23:59:59)

Array formula in Cell c24

=SMALL(IF($A$3:$D$8>=$A$3,IF($A$3:$D$8<=$B$3,$A$3:$D$8,2958465.99999),2958465.99999),ROW()-23)

Formula in Cell d24

=(1-(--((SUMPRODUCT(--(C24>$C$2:$C$8),--($C24<$D$2:$D$8)))>0)))*C24

Arrays formula in Cell e24

=SMALL(IF($D$24:$D$37>0,IF($D$24:$D$37<2958465.99999,$D$24:$D$37,2958465.99999),2958465.99999),ROW()-23)

Formula in Cell f24

=IF(SMALL($E$24:$E$37,((ROW()-24)*2)+1)=2958465.99999,"",SMALL($E$24:$E$37,((ROW()-24)*2)+1))

Formula in Cell g24

=IF(SMALL($E$24:$E$37,(ROW()-23)*2)=2958465.99999,"",SMALL($E$24:$E$37,(ROW()-23)*2))

Dragged down all cells and the output is in f24 (starting point of output timeframe) and g24 (ending point of output timeframe)

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

Answers by Expert:

I have provided first hand support since `95 for Microsoft Office majoring in Word and Excel - support for all versions from 2 onwards. I'm based in the UK, so please allow for time differences when asking me questions from other parts of the world!

My background is in the insurance industry and call centre areas, but have been called upon to provide many varied solutions.**Education/Credentials**

I'm educated to UK A level standard, but as I left school some 30 years ago that is rather irrelevent - university of life has provided more of a background!