Akashwani
Well-known Member
- Joined
- Mar 14, 2009
- Messages
- 2,911
Hi,
I want to count how many years (From date To date) include a particular year and return all relevant data.
I know that I am doing something wrong with the Sumproduct formulas, but for the life of me I just cannot see it. The above Sumproduct needs to return 5, not 6 or 4 or 1
Can someone ease my mind?
Thanks
Ak
I want to count how many years (From date To date) include a particular year and return all relevant data.
Excel Workbook | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Name | Transport | Colour | From | To | ||
2 | Bill | Bus | Red | 02/02/2000 | 20/03/2004 | ||
3 | Tom | Car | Green | 02/02/2003 | 20/03/2004 | ||
4 | Jo | Plane | Blue | 02/02/2004 | 20/03/2006 | ||
5 | Tim | Boat | Yellow | 02/02/1999 | 20/03/2001 | ||
6 | Sue | Train | Red | 02/02/2002 | 20/03/2002 | ||
7 | Dan | Bike | Yellow | 02/02/2000 | 20/03/2001 | ||
8 | Bob | Car | Blue | 02/02/2008 | 20/03/2009 | ||
9 | Mo | Plane | Green | 02/02/2000 | 20/03/2002 | ||
10 | Flo | Bus | Red | 02/02/2002 | 20/03/2004 | ||
11 | Joe | Plane | Green | 02/02/1999 | 20/03/2000 | ||
12 | Jim | Boat | Blue | 02/02/2001 | 20/03/2002 | ||
13 | Pat | Train | Red | 02/02/2002 | 20/03/2002 | ||
Sheet1 |
Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Year | Count | * | * | * | * | * | ||
2 | 2000 | 6 | 4 | 4 | 1 | 1 | 1 | ||
3 | * | * | * | * | * | * | * | ||
4 | Name | Transport | Colour | From | To | * | * | ||
5 | Bill | Bus | Red | 02/02/2000 | 20/03/2004 | * | * | ||
6 | Tim | Boat | Yellow | 02/02/1999 | 20/03/2001 | * | * | ||
7 | Dan | Bike | Yellow | 02/02/2000 | 20/03/2001 | * | * | ||
8 | Mo | Plane | Green | 02/02/2000 | 20/03/2002 | * | * | ||
9 | Joe | Plane | Green | 02/02/1999 | 20/03/2000 | * | * | ||
10 | #NUM! | #NUM! | #NUM! | #NUM! | #NUM! | * | * | ||
Sheet2 |
I know that I am doing something wrong with the Sumproduct formulas, but for the life of me I just cannot see it. The above Sumproduct needs to return 5, not 6 or 4 or 1
Can someone ease my mind?
Thanks
Ak