ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Filter data (https://www.excelbanter.com/excel-discussion-misc-queries/160164-filter-data.html)

Geo

Filter data
 
I have the following table:
Columns:
A B C D
Date From Date To
A2 B2

Date Unit Category Time
12/9/07 Wilts U/S 2:00
12/9/07 Wilts S 8:00
13/9/07 YAA S 9:00
15/9/07 YAA U/S 3:00
and so on.......

How can I filter the data so that when i enter two dates in cell A2 and B2,
it gives me the totals time under each unit and category between those dates

--
Geo

Jim May

Filter data
 
In C2 enter:
=SUMPRODUCT(--(A8:A11=$A$2),--(A8:A11<=$B$2),D8:D11)*24

where your Table (including the header is A7:D11)

Jim May


"Geo" wrote:

I have the following table:
Columns:
A B C D
Date From Date To
A2 B2

Date Unit Category Time
12/9/07 Wilts U/S 2:00
12/9/07 Wilts S 8:00
13/9/07 YAA S 9:00
15/9/07 YAA U/S 3:00
and so on.......

How can I filter the data so that when i enter two dates in cell A2 and B2,
it gives me the totals time under each unit and category between those dates

--
Geo



All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com