SUMIF vs COUNTIF

G

Guest

I have a column populated with dates. I want a cell in another worksheet to
count how many of the dates in the aforementioned column are less than a user
defined date. I.e. I want the cell to display how many dates fall before 15th
August. I am unsure as to how to write this correctly. Currently I have:

=COUNTIF('Sheet1'!AH16:AH97, "<15/08/2005")

Is this correct?

What would SUMIF do in contrast?
 
B

Bob Phillips

=COUNTIF('Sheet1'!AH16:AH97, "<"&Date(2005,08,15))

This just counts the instances. SUMIF can add up associated values in
another column, such as AI16:AI97.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
D

Dave Peterson

Just to add to Bob's reply...

If you had a third column representing the number of widgets sold, you could use
=sumif() to add up all the widgets sold before that date.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumif formula 4
COUNTIF between dates and if value = "y" 8
Normaliziing date and counting # of of occurances 1
Excel Dragging countif formula with changing criteria 3
Todays date 3
SUMIF by Week. 8
SUMIF 3
sumifs function 3

Top