Count how many cells have data in one column if within a date range in another column?

Leesaugh

New Member
Joined
Jan 22, 2014
Messages
5
I am trying to Count (or counta?) cells in one column if they have data but only if within a date range in another column.

So, in the example below, I would want to count how many cells in column E have data in them, but only if the date in column A falls between Jan 1 2014 and Jan 5 2014. (In this case, result should be 4).


ABCDE
01/01/201440
01/01/2014
02/01/201445
03/01/201440
04/01/2014
04/01/201465
06/01/2014
08/01/201440
09/01/201457.5

<tbody>
</tbody>


It seems like it should be so easy but I am stumped! Please help!

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try

=COUNTIFS(A:A,">="&DATE(2014,1,1),A:A,"<="&DATE(2014,1,5),E:E,"<>")


M.
 
Upvote 0
THANK YOU SO MUCH!!! That worked perfectly! How about the same data, but this time I would like the sum of the numbers in column e based on the date in a.

Try

=SUMIFS(E:E,A:A,">="&DATE(2014,1,1),A:A,"<="&DATE(2014,1,5))

M.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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