Hi,
I need to look into a table and return only the data between two dates. There is one master input sheet and 12 monthly summaries - the 12 monthly summaries need to extract the data between 2 dates. I have used the following function to count the number of entries valid for that particular month:
=SUMPRODUCT((Table91619222528313437465[Date]>='Apr 12'!$B$4)*(Table91619222528313437465[Date]<='Apr 12'!$C$4))
With B4 being - 1/4/12
C4 - 31/4/1
I am then using the following formula to extract only the relevant lines for that particular month:
=IF(ROWS(B$9:B9)>$C$5,"",INDEX(Table91619222528313437465[Date],SMALL(IF(('Total sheet'!$B$9:$B$299>='Apr 12'!$B$4)*(('Total sheet'!$B$9:$B$299<='Apr 12'!$C$4)),ROW(Table91619222528313437465[Date])-ROW(Table91619222528313437465[[#This Row],[Date]])+1),ROWS(B$9:B9))))
The first row works fine however the initial problem is that the first formula isn't working correctly - it is returning the total number of rows in the table. I think it is the second half that is the issue the <= part.
The second issue is the second formula is functioning correctly across the first row but when copied down (in the monthly summaries) it is returning #NUM!. The reason why I am not sure.
I took the idea to do it this way from the following Youtube tutorial but I cannot seem to emulate his success:
http://www.youtube.com/watch?v=9jmNE...A7644FE57C97F4
Any help would be greatly appreciated.
Thanks
Sam
Bookmarks