Countif Formula

Quinton

Board Regular
Joined
Nov 6, 2008
Messages
125
Hello, I have 2 seperate excel files & I would like to do the following if possible.

I have a date of "16.03.11" in one excel Spreadsheet. I would like to be able to count that date in another excel spreadsheet (show result as 1) if it sits within a range of dates. So basically as "16.03.11" sits within a range of March 11 (or 01.03.11 to 31.03.11) it produces a count of "1".

Is this possible?

ps - sorry it was a hard one to explain!

Cheers in advance
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Thanks, but I don't know how to select the range of dates. This was my original question?

Cheers,
 
Upvote 0
ok in A2 type =countif(

then click on the sheet where your dates are select the top cell and scroll down to the last date

click back on the sheet you are typiing the formula in and type the comma

then click on the cell that has the date you need to find

close bracket )
 
Upvote 0
Many thanks - I have obviously not explained myself properly. Let me try again. The range of dates are not in different cells (range was probably not the best word). I have 1 date in 1 cell that I am trying to "Count" providing it fits certain criteria.

Say for example I have a date of 16.03.11 in a cell. I want to count that as "1" in another cell, providing the date is between 01.03.11 - 31.03.11 i.e. in this case the month of March in 2011.

Hope this helps!

Cheers,
 
Upvote 0
Hi

I think I understand what you mean, basically you want to count dates between two points?

Using your example your formula should be something like...

Code:
=COUNTIF(A:A,">01/03/2011")-COUNTIF(A:A,">01/04/2011")

Amend the range of cells to suit :)

HTH :)
 
Upvote 0
Hi Quinton,

You haven't said which version of Excel you're using, but for 2007 you can use a formula like this:

=COUNTIFS(A1:A50,">28/02/2011",A1:A50,"<01/04/2011")

Assuming A1:A50 is the range you want counted.

______________________________________________
Excel Training
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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