Sum number of cells that contain time => 2 hours YTD

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

The below extract is from rows A8413:D8629 for this year's training log and a new row is added every day, down to row 20000. The table starts in Row A12. (Columns B and C are irrelevant).

A2 contains today's date.

I need 2 dynamic formulas to sum the number of times I have run for 2 hours or longer in the current year to date and at the same date last year (whichever years they are) from the times in Column D. The result should be 11 for this year.

A solution would be greatly appreciated.

Thank you!

Fri, 1 Jan 2021REST
Sat, 2 Jan 2021REST
Sun, 3 Jan 2021REST
Mon, 4 Jan 2021REST
Tue, 5 Jan 2021REST
Wed, 6 Jan 2021REST
Thu, 7 Jan 2021REST
Fri, 8 Jan 2021REST
Sat, 9 Jan 2021REST
Sun, 10 Jan 2021REST
Mon, 11 Jan 2021REST
Tue, 12 Jan 2021REST
Wed, 13 Jan 2021REST
Thu, 14 Jan 2021REST
Fri, 15 Jan 2021REST
Sat, 16 Jan 2021REST
Sun, 17 Jan 2021REST
Mon, 18 Jan 2021REST
Tue, 19 Jan 2021REST
Wed, 20 Jan 2021REST
Thu, 21 Jan 2021REST
Fri, 22 Jan 2021REST
Sat, 23 Jan 2021REST
Sun, 24 Jan 2021REST
Mon, 25 Jan 2021REST
Tue, 26 Jan 2021REST
Wed, 27 Jan 2021REST
Thu, 28 Jan 2021REST
Fri, 29 Jan 2021REST
Sat, 30 Jan 2021REST
Sun, 31 Jan 2021REST
Mon, 1 Feb 2021REST
Tue, 2 Feb 2021REST
Wed, 3 Feb 2021REST
Thu, 4 Feb 2021REST
Fri, 5 Feb 2021REST
Sat, 6 Feb 2021REST
Sun, 7 Feb 2021REST
Mon, 8 Feb 2021REST
Tue, 9 Feb 2021REST
Wed, 10 Feb 2021REST
Thu, 11 Feb 2021REST
Fri, 12 Feb 2021REST
Sat, 13 Feb 2021REST
Sun, 14 Feb 2021REST
Mon, 15 Feb 2021REST
Tue, 16 Feb 2021REST
Wed, 17 Feb 2021REST
Thu, 18 Feb 2021REST
Fri, 19 Feb 2021REST
Sat, 20 Feb 2021REST
Sun, 21 Feb 2021REST
Mon, 22 Feb 2021REST
Tue, 23 Feb 2021REST
Wed, 24 Feb 2021REST
Thu, 25 Feb 2021REST
Fri, 26 Feb 2021REST
Sat, 27 Feb 2021REST
Sun, 28 Feb 2021REST
Mon, 1 Mar 2021REST
Tue, 2 Mar 2021REST
Wed, 3 Mar 2021REST
Thu, 4 Mar 2021REST
Fri, 5 Mar 2021REST
Sat, 6 Mar 2021REST
Sun, 7 Mar 2021REST
Mon, 8 Mar 2021REST
Tue, 9 Mar 2021REST
Wed, 10 Mar 2021REST
Thu, 11 Mar 2021REST
Fri, 12 Mar 2021REST
Sat, 13 Mar 2021REST
Sun, 14 Mar 2021REST
Mon, 15 Mar 2021REST
Tue, 16 Mar 2021REST
Wed, 17 Mar 2021REST
Thu, 18 Mar 2021REST
Fri, 19 Mar 2021REST
Sat, 20 Mar 2021REST
Sun, 21 Mar 2021REST
Mon, 22 Mar 2021REST
Tue, 23 Mar 2021REST
Wed, 24 Mar 2021REST
Thu, 25 Mar 2021REST
Fri, 26 Mar 2021REST
Sat, 27 Mar 2021REST
Sun, 28 Mar 2021REST
Mon, 29 Mar 2021REST
Tue, 30 Mar 2021REST
Wed, 31 Mar 2021REST
Thu, 1 Apr 2021REST
Fri, 2 Apr 2021REST
Sat, 3 Apr 2021REST
Sun, 4 Apr 2021REST
Mon, 5 Apr 2021REST
Tue, 6 Apr 2021REST
Wed, 7 Apr 2021REST
Thu, 8 Apr 2021REST
Fri, 9 Apr 2021REST
Sat, 10 Apr 2021REST
Sun, 11 Apr 2021REST
Mon, 12 Apr 2021REST
Tue, 13 Apr 2021REST
Wed, 14 Apr 2021REST
Thu, 15 Apr 2021REST
Fri, 16 Apr 2021REST
Sat, 17 Apr 2021REST
Sun, 18 Apr 2021REST
Mon, 19 Apr 2021REST
Tue, 20 Apr 2021REST
Wed, 21 Apr 2021OTHER
Thu, 22 Apr 2021REST
Fri, 23 Apr 2021REST
Sat, 24 Apr 2021REST
Sun, 25 Apr 2021OTHER
Mon, 26 Apr 2021REST
Tue, 27 Apr 2021OTHER
Wed, 28 Apr 2021REST
Thu, 29 Apr 2021OTHER
Fri, 30 Apr 2021REST
Sat, 1 May 2021OTHER
Sun, 2 May 2021REST
Mon, 3 May 2021OTHER
Tue, 4 May 2021REST
Wed, 5 May 2021OTHER
Thu, 6 May 2021REST
Fri, 7 May 2021REST
Sat, 8 May 2021REST
Sun, 9 May 2021OTHER
Mon, 10 May 2021REST
Tue, 11 May 2021OTHER
Wed, 12 May 2021REST
Thu, 13 May 2021OTHER
Fri, 14 May 2021REST
Sat, 15 May 2021OTHER
Sun, 16 May 2021REST
Mon, 17 May 2021OTHER
Tue, 18 May 2021REST
Wed, 19 May 2021REST
Thu, 20 May 2021REST
Fri, 21 May 2021OTHER
Sat, 22 May 2021REST
Sun, 23 May 2021OTHER
Mon, 24 May 2021REST
Tue, 25 May 2021OTHER
Wed, 26 May 2021REST
Thu, 27 May 2021OTHER
Fri, 28 May 2021REST
Sat, 29 May 2021OTHER
Sun, 30 May 2021REST
Mon, 31 May 2021OTHER
Tue, 1 Jun 2021REST
Wed, 2 Jun 2021OTHER
Thu, 3 Jun 2021REST
Fri, 4 Jun 2021REST
Sat, 5 Jun 2021OTHER
Sun, 6 Jun 2021REST
Mon, 7 Jun 2021OTHER
Tue, 8 Jun 2021REST
Wed, 9 Jun 2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)2.00:30:40
Thu, 10 Jun 2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)3.60:56:44
Fri, 11 Jun 2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)2.00:32:19
Sat, 12 Jun 2021REST
Sun, 13 Jun 2021OTHER
Mon, 14 Jun 2021Cull. Road/Viaduct (up and down)/Halifax Road/ Greenside Lane (08/11/2018)2.20:33:59
Tue, 15 Jun 2021OTHER
Wed, 16 Jun 2021REST
Thu, 17 Jun 2021OTHER
Fri, 18 Jun 2021Cullingworth Rd/Viaduct/ Ling Bob roundabout/ Wilsden/Bents Lane/ Hallas Bridge (09/12/2018)4.20:55:39
Sat, 19 Jun 2021OTHER
Sun, 20 Jun 2021REST
Mon, 21 Jun 2021OTHER
Tue, 22 Jun 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.82:12:20
Wed, 23 Jun 20212x OTHER
Thu, 24 Jun 2021REST
Fri, 25 Jun 2021OTHER
Sat, 26 Jun 2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to 5-Rise Locks/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (25/08/2005)10.42:40:15
Sun, 27 Jun 2021OTHER
Mon, 28 Jun 2021REST
Tue, 29 Jun 2021OTHER
Wed, 30 Jun 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.82:07:10
Thu, 1 Jul 2021OTHER
Fri, 2 Jul 2021REST
Sat, 3 Jul 2021OTHER
Sun, 4 Jul 2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC/5-Rise Locks/ 2 Bridges (Swine Lane)/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (04/07/2021)14.13:41:10
Mon, 5 Jul 2021OTHER
Tue, 6 Jul 2021REST
Wed, 7 Jul 2021OTHER
Thu, 8 Jul 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Rd/ Back Lane/Shay Lane/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (23/02/2020)6.21:38:10
Fri, 9 Jul 2021OTHER
Sat, 10 Jul 2021REST
Sun, 11 Jul 2021OTHER
Mon, 12 Jul 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.82:15:04
Tue, 13 Jul 2021OTHER
Wed, 14 Jul 2021REST
Thu, 15 Jul 2021OTHER
Fri, 16 Jul 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.82:14:27
Sat, 17 Jul 2021OTHER
Sun, 18 Jul 2021REST
Mon, 19 Jul 2021OTHER
Tue, 20 Jul 2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to 5-Rise Locks/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (25/08/2005)10.42:44:52
Wed, 21 Jul 2021OTHER
Thu, 22 Jul 2021REST
Fri, 23 Jul 2021OTHER
Sat, 24 Jul 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.82:06:27
Sun, 25 Jul 2021OTHER
Mon, 26 Jul 2021REST
Tue, 27 Jul 2021OTHER
Wed, 28 Jul 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Harden Ln/Mill Hill Top/ Wilsden Rd/Mad Mile/ Greenside Lane (21/02/2020)10.62:35:00
Thu, 29 Jul 2021OTHER
Fri, 30 Jul 2021REST
Sat, 31 Jul 2021OTHER
Sun, 1 Aug 2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Harden Ln/Mill Hill Top/ Wilsden Rd/Mad Mile/ Greenside Lane (21/02/2020)10.62:21:55
Mon, 2 Aug 2021OTHER
Tue, 3 Aug 2021REST
Wed, 4 Aug 2021OTHER
Thu, 5 Aug 2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to cannon monument/Back to 3-Rise Locks & over Br/ Brown Cow/Main Road all the way back home (22/04/2007)15.43:48:05
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about
Excel Formula:
=COUNTIFS(D:D,">="&TIME(2,0,0),A:A,">="&DATE(YEAR(TODAY()),1,1))
and
Excel Formula:
=COUNTIFS(D:D,">="&TIME(2,0,0),A:A,">="&DATE(YEAR(TODAY())-1,1,1),A:A,"<="&EDATE(TODAY(),-12))
 
Upvote 0
Solution
Wow, that's brilliant, thanks ever so much Fluff.

The formula for last year works perfectly!

For some reason, the formula for this year returns 12 but you will see from the cells filled in salmon and gold that it should be 11.

Would you be kind enough to take another look at that please?

Thank you!
 
Upvote 0
.try either or both

T202108a.xlsm
ABCDEFGH
1
27-Aug-2102:0011
344197REST111-Jan-2131-Dec-21
444198REST
1f
Cell Formulas
RangeFormula
D2D2=TIME(2,0,0)
E2E2=SUMPRODUCT(--(YEAR(A3:A500)=YEAR(A2)),--(D3:D500>=D2))
E3E3=COUNTIFS(A3:A500,">="&G3,A3:A500,"<="&H3,D3:D500,">="&D2)
G3G3=DATE(YEAR(A2),1,1)
H3H3=DATE(YEAR(A2),12,31)
.
 
Upvote 0
Thanks Dave. I've just tested them both and this year's formula works perfectly.

Re last year to date formula, when I removed 1 relevant entry from this year to test it, it unexpectedly reduced the number for last year by 1 as well.
 
Upvote 0
For some reason, the formula for this year returns 12
With the data you posted it returns 11 for me.
+Fluff 1.xlsm
ABCDEF
11abcd
1201/01/2021REST11
1307/08/2020REST02:151
1403/01/2021REST
1504/01/2021REST
1605/01/2021REST
1706/01/2021REST
1807/01/2021REST
1908/01/2021REST
2009/01/2021REST
2110/01/2021REST
2211/01/2021REST
2312/01/2021REST
2413/01/2021REST
2514/01/2021REST
2615/01/2021REST
2716/01/2021REST
2817/01/2021REST
2918/01/2021REST
3019/01/2021REST
3120/01/2021REST
3221/01/2021REST
3322/01/2021REST
3423/01/2021REST
3524/01/2021REST
3625/01/2021REST
3726/01/2021REST
3827/01/2021REST
3928/01/2021REST
4029/01/2021REST
4130/01/2021REST
4231/01/2021REST
4301/02/2021REST
4402/02/2021REST
4503/02/2021REST
4604/02/2021REST
4705/02/2021REST
4806/02/2021REST
4907/02/2021REST
5008/02/2021REST
5109/02/2021REST
5210/02/2021REST
5311/02/2021REST
5412/02/2021REST
5513/02/2021REST
5614/02/2021REST
5715/02/2021REST
5816/02/2021REST
5917/02/2021REST
6018/02/2021REST
6119/02/2021REST
6220/02/2021REST
6321/02/2021REST
6422/02/2021REST
6523/02/2021REST
6624/02/2021REST
6725/02/2021REST
6826/02/2021REST
6927/02/2021REST
7028/02/2021REST
7101/03/2021REST
7202/03/2021REST
7303/03/2021REST
7404/03/2021REST
7505/03/2021REST
7606/03/2021REST
7707/03/2021REST
7808/03/2021REST
7909/03/2021REST
8010/03/2021REST
8111/03/2021REST
8212/03/2021REST
8313/03/2021REST
8414/03/2021REST
8515/03/2021REST
8616/03/2021REST
8717/03/2021REST
8818/03/2021REST
8919/03/2021REST
9020/03/2021REST
9121/03/2021REST
9222/03/2021REST
9323/03/2021REST
9424/03/2021REST
9525/03/2021REST
9626/03/2021REST
9727/03/2021REST
9828/03/2021REST
9929/03/2021REST
10030/03/2021REST
10131/03/2021REST
10201/04/2021REST
10302/04/2021REST
10403/04/2021REST
10504/04/2021REST
10605/04/2021REST
10706/04/2021REST
10807/04/2021REST
10908/04/2021REST
11009/04/2021REST
11110/04/2021REST
11211/04/2021REST
11312/04/2021REST
11413/04/2021REST
11514/04/2021REST
11615/04/2021REST
11716/04/2021REST
11817/04/2021REST
11918/04/2021REST
12019/04/2021REST
12120/04/2021REST
12221/04/2021OTHER
12322/04/2021REST
12423/04/2021REST
12524/04/2021REST
12625/04/2021OTHER
12726/04/2021REST
12827/04/2021OTHER
12928/04/2021REST
13029/04/2021OTHER
13130/04/2021REST
13201/05/2021OTHER
13302/05/2021REST
13403/05/2021OTHER
13504/05/2021REST
13605/05/2021OTHER
13706/05/2021REST
13807/05/2021REST
13908/05/2021REST
14009/05/2021OTHER
14110/05/2021REST
14211/05/2021OTHER
14312/05/2021REST
14413/05/2021OTHER
14514/05/2021REST
14615/05/2021OTHER
14716/05/2021REST
14817/05/2021OTHER
14918/05/2021REST
15019/05/2021REST
15120/05/2021REST
15221/05/2021OTHER
15322/05/2021REST
15423/05/2021OTHER
15524/05/2021REST
15625/05/2021OTHER
15726/05/2021REST
15827/05/2021OTHER
15928/05/2021REST
16029/05/2021OTHER
16130/05/2021REST
16231/05/2021OTHER
16301/06/2021REST
16402/06/2021OTHER
16503/06/2021REST
16604/06/2021REST
16705/06/2021OTHER
16806/06/2021REST
16907/06/2021OTHER
17008/06/2021REST
17109/06/2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)200:30:40
17210/06/2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)3.600:56:44
17311/06/2021Skendleby, N Lincs (Cottage behind Blacksmith's Arms)200:32:19
17412/06/2021REST
17513/06/2021OTHER
17614/06/2021Cull. Road/Viaduct (up and down)/Halifax Road/ Greenside Lane (08/11/2018)2.200:33:59
17715/06/2021OTHER
17816/06/2021REST
17917/06/2021OTHER
18018/06/2021Cullingworth Rd/Viaduct/ Ling Bob roundabout/ Wilsden/Bents Lane/ Hallas Bridge (09/12/2018)4.200:55:39
18119/06/2021OTHER
18220/06/2021REST
18321/06/2021OTHER
18422/06/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.802:12:20
18523/06/20212x OTHER
18624/06/2021REST
18725/06/2021OTHER
18826/06/2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to 5-Rise Locks/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (25/08/2005)10.402:40:15
18927/06/2021OTHER
19028/06/2021REST
19129/06/2021OTHER
19230/06/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.802:07:10
19301/07/2021OTHER
19402/07/2021REST
19503/07/2021OTHER
19604/07/2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC/5-Rise Locks/ 2 Bridges (Swine Lane)/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (04/07/2021)14.103:41:10
19705/07/2021OTHER
19806/07/2021REST
19907/07/2021OTHER
20008/07/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Rd/ Back Lane/Shay Lane/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (23/02/2020)6.201:38:10
20109/07/2021OTHER
20210/07/2021REST
20311/07/2021OTHER
20412/07/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.802:15:04
20513/07/2021OTHER
20614/07/2021REST
20715/07/2021OTHER
20816/07/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.802:14:27
20917/07/2021OTHER
21018/07/2021REST
21119/07/2021OTHER
21220/07/2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to 5-Rise Locks/ Back to 3-Rise Locks & over Bridge/Brown Cow/ Main Road all the way back home (25/08/2005)10.402:44:52
21321/07/2021OTHER
21422/07/2021REST
21523/07/2021OTHER
21624/07/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Bents Lane/Hallas Bridge (22/06/2021)8.802:06:27
21725/07/2021OTHER
21826/07/2021REST
21927/07/2021OTHER
22028/07/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Harden Ln/Mill Hill Top/ Wilsden Rd/Mad Mile/ Greenside Lane (21/02/2020)10.602:35:00
22129/07/2021OTHER
22230/07/2021REST
22331/07/2021OTHER
22401/08/2021Cullingworth Rd/Viaduct/ Stn Road/Old Allen Road Back Lane/Wilsden Rd/ Cottingley Rd/Lee Lane/ Cross Lane/Coplowe Ln/ Crack Lane/Main Street/ Harden Ln/Mill Hill Top/ Wilsden Rd/Mad Mile/ Greenside Lane (21/02/2020)10.602:21:55
22502/08/2021OTHER
22603/08/2021REST
22704/08/2021OTHER
22805/08/2021Hallas Br/Down Bents Ln Harden Lane/Smithy Ln/ Lee Farm/Black Hills/ Golf Course/R down Beck Foot Lane/Wagon Lane/ Up LLC to cannon monument/Back to 3-Rise Locks & over Br/ Brown Cow/Main Road all the way back home (22/04/2007)15.403:48:05
List
Cell Formulas
RangeFormula
F12F12=COUNTIFS(D:D,">="&TIME(2,0,0),A:A,">="&DATE(YEAR(TODAY()),1,1))
F13F13=COUNTIFS(D:D,">="&TIME(2,0,0),A:A,">="&DATE(YEAR(TODAY())-1,1,1),A:A,"<="&EDATE(TODAY(),-12))
Named Ranges
NameRefers ToCells
_FilterDatabase=List!$A$11:$D$228F12:F13
 
Upvote 0
Dave did not post a formula for year to date last year. ;)
 
Upvote 0
"Dave did not post a formula for year to date last year. ;)"

correct

The formulas that I presented show information by calendar year.
Ironman could use SumProduct or Countifs to secure the information that he wants

My apologizes for trying to help.
 
Upvote 0
@Dave - thanks for your time anyway.

@Fluff - Hmm, I just can't see where the discrepancy is between my sheet and what I posted. Could it be because my table starts in row 12, not 1? Cells D2 and D3 contain time-related formulas with results that exceed 2 hours.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,395
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top