# Counting dates in one column that are earlier than another column summing their dollar values

#### Nebulous

##### New Member
In the worksheet below, I need the count and dollar value totals of lines in Column B that are the same as or earlier than Column A to be reported in E2 and F2.

I tried with various attempts at COUNTIF but failed. I'm not an Excel expert - Intermediate at best.

NOTE: There will be blank cells as there are in this table, though they may not always be sorted to the bottom of the list as they are here.

ABCDEFG
1PDSDCostSD PDSLDollar Total
210/14/169/30/16\$5,869.46
310/14/169/30/16\$11,096.99
4
10/7/1610/3/16\$6,043.00
510/7/1610/3/16\$3,416.44
611/21/1611/14/16\$6,043.00
711/21/168/14/16\$8,185.76
8
11/18/1611/14/16\$8,008.80
9
11/18/1611/14/16\$11,096.99
10
12/2/1611/14/16\$5,557.04
11
12/16/1611/14/16\$3,416.44
12
11/18/1611/14/16\$5,869.46
13
12/9/16\$7,936.66
14
12/9/16\$7,936.66
15
12/9/16\$7,936.66
16
12/9/16\$72,122.30
17
12/9/16\$69,936.89
18
12/9/16\$69,936.89
19
12/9/16\$13,237.83
20
11/30/16\$84,215.12
21
1/23/17\$84,309.02
22
1/27/17\$84,309.02
23
2/8/17\$92,369.53
24
2/10/17\$90,243.89
252/10/17\$90,227.02

<tbody>
</tbody>
Thanks!

~N

### Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

E2: =SUMPRODUCT(--(B2:B25<>""),--(B2:B25<=A2:A25))
F2: =SUMPRODUCT(--(B2:B25<>""),--(B2:B25<=A2:A25),C2:C25)

Eric - Perfect. Thanks!

Replies
11
Views
394
Replies
1
Views
1K
Replies
7
Views
239
Replies
5
Views
589
Replies
3
Views
487

1,203,455
Messages
6,055,541
Members
444,794
Latest member
HSAL

### 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.

### Which adblocker are you using?

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

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