Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How do I put a date range in the criteria of a countif formula?

=COUNTIF('Local Annual Sales'!B4:B19,"=38991") this works to show all
months creater then Oct 2006 how do I limit it to =38991 <=39022 Oct
31, 2006?????
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default How do I put a date range in the criteria of a countif formula?

Try one of these:

Use cells to hold your date range:

A1 = 10/1/2006
B1 = 10/31/2006

=COUNTIF(B4:B19,"="&A1)-COUNTIF(B4:B19,""&B1)

Or, with the dates hardcoded:

=COUNTIF(B4:B19,"=10/1/2006")-COUNTIF(B4:B19,"10/31/2006")

Format the cell as GENERAL or NUMBER

Biff

"hlpmelrn" wrote in message
...
=COUNTIF('Local Annual Sales'!B4:B19,"=38991") this works to show all
months creater then Oct 2006 how do I limit it to =38991 <=39022
Oct
31, 2006?????



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How do I put a date range in the criteria of a countif formula

Thanks Biff I will try that, just to let every one know this can be done
with an formula array by entering this: =SUM(IF('Local Annual
Sales'!B4:B19=38991,IF('Local Annual Sales'!B4:B19<=39022,1,0),0)) then
pressing CRTL+SHFT+ENT which will put curly brackets around it. If you type
the curly brackets it will not work. the =DATEVALUE(01/10/2006) can be use
to determine the values between. Just thought I let you know how I fixed
it that night.

GREAT your =COUNTIF('Local Annual
Sales'!B4:B19,"=10/1/2006")-COUNTIF('Local Annual
Sales'!B4:B19,"10/31/2006") is much better and it works to.



"Biff" wrote:

Try one of these:

Use cells to hold your date range:

A1 = 10/1/2006
B1 = 10/31/2006

=COUNTIF(B4:B19,"="&A1)-COUNTIF(B4:B19,""&B1)

Or, with the dates hardcoded:

=COUNTIF(B4:B19,"=10/1/2006")-COUNTIF(B4:B19,"10/31/2006")

Format the cell as GENERAL or NUMBER

Biff

"hlpmelrn" wrote in message
...
=COUNTIF('Local Annual Sales'!B4:B19,"=38991") this works to show all
months creater then Oct 2006 how do I limit it to =38991 <=39022
Oct
31, 2006?????




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default How do I put a date range in the criteria of a countif formula

You're welcome. Thanks for the feedback!

Biff

"hlpmelrn" wrote in message
...
Thanks Biff I will try that, just to let every one know this can be done
with an formula array by entering this: =SUM(IF('Local Annual
Sales'!B4:B19=38991,IF('Local Annual Sales'!B4:B19<=39022,1,0),0)) then
pressing CRTL+SHFT+ENT which will put curly brackets around it. If you
type
the curly brackets it will not work. the =DATEVALUE(01/10/2006) can be
use
to determine the values between. Just thought I let you know how I
fixed
it that night.

GREAT your =COUNTIF('Local Annual
Sales'!B4:B19,"=10/1/2006")-COUNTIF('Local Annual
Sales'!B4:B19,"10/31/2006") is much better and it works to.



"Biff" wrote:

Try one of these:

Use cells to hold your date range:

A1 = 10/1/2006
B1 = 10/31/2006

=COUNTIF(B4:B19,"="&A1)-COUNTIF(B4:B19,""&B1)

Or, with the dates hardcoded:

=COUNTIF(B4:B19,"=10/1/2006")-COUNTIF(B4:B19,"10/31/2006")

Format the cell as GENERAL or NUMBER

Biff

"hlpmelrn" wrote in message
...
=COUNTIF('Local Annual Sales'!B4:B19,"=38991") this works to show
all
months creater then Oct 2006 how do I limit it to =38991 <=39022
Oct
31, 2006?????






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
COUNTIF: 2 criteria: Date Range Column & Text Column MAC Excel Worksheet Functions 14 September 16th 08 04:39 PM
Bucketing data based on DATE Range criteria sumitk Excel Discussion (Misc queries) 1 May 20th 06 12:16 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
formula to look up and return smallest date from a range of dates BJ Excel Worksheet Functions 5 December 7th 05 10:35 PM
Date range criteria and Pivot tables (again!) DerbyJim1978 Excel Worksheet Functions 3 July 13th 05 10:14 PM


All times are GMT +1. The time now is 02:50 PM.

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"