#1   Report Post  
Kay
 
Posts: n/a
Default SUMIF vs COUNTIF

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?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=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)


"Kay" wrote in message
...
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?



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

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.

Kay wrote:

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?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forget SUMIF, COUNTIF and VLOOKUP Pierre Leclerc Excel Worksheet Functions 16 April 27th 23 11:51 AM
problems with sumif and countif Simon Shaw Excel Discussion (Misc queries) 6 July 23rd 05 10:02 PM
Reference Cells with Sumif or Countif GK New Users to Excel 1 May 3rd 05 06:21 PM
Modify SUMIF and COUNTIF to work with SUBTOTALS SSHO_99 Excel Worksheet Functions 2 November 12th 04 11:36 PM
Countif, Sumif, If - help! Angel160 Excel Worksheet Functions 2 November 3rd 04 05:23 PM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"