View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
caj caj is offline
external usenet poster
 
Posts: 23
Default Conditional date array formula

This is the formula:

=IF(ISERROR(INDEX(Log!$A$1:$A$2000,SMALL(IF((Log!$ B$1:$B$2000=$Q$1)*(Log!$B$1:$B$2000<=$Q$2),ROW(Lo g!B$1:B$2000)),ROWS($1:2)))),"
",INDEX(Log!$A$1:$A$2000,SMALL(IF((Log!$B$1:$B$200 0=$Q$1)*(Log!$B$1:$B$2000<=$Q$2),ROW(Log!B$1:B$20 00)),ROWS($1:1))))

Log contains the raw data
Q1 = date of beginning of month
Q2 = date of end of month
This formula enters info on a sheet called Monthly Log

The formula works.

The problem is -- it doesn't pull the last entry for the month no matter
what day of the month it is. How do I fix this?