Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
was
 
Posts: n/a
Default Formula counts incorrectly


Help please.
Column K contains dates and blank cells. I would like to count how many
of these dates fall within a given date range. For example, in the
first week in May. Column K contains these dates. 5/2/2005, 5/3/2005,
5/5/2005, 5/5/2005. I would like to count this as 4 dates within the
first week of May. I created this formula but the output is 3.

=SUMPRODUCT(--(ECNT!F2:F515=DATE(2005,5,2)),--(ECNT!F2:F515<=DATE(2005,5,6)),--(ISNUMBER(ECNT!K2:K515)))

I assume that it is only counting 5/5/2005 one time?

I changed the dates in the formula to check a second 2nd date range
(5/9 to 5/13). Column K contains only one date within that range
5/13/2005. However this formula returns 2.

Could someone please modify this formula to work the way I want it to?


--
was
------------------------------------------------------------------------
was's Profile: http://www.excelforum.com/member.php...o&userid=20211
View this thread: http://www.excelforum.com/showthread...hreadid=379171

  #2   Report Post  
olasa
 
Posts: n/a
Default


It workes fine for me:.

=SUMPRODUCT((A2:A10=DATE(2005,5,2))*(A2:A10<=DATE (2005,5,6))*(ISNUMBER(B2:B10)))
--- 4

Hope it helped
Ola Sandström


Pictu
http://www.excelforum.com/attachment...tid=3501&stc=1


+-------------------------------------------------------------------+
|Filename: Clipboard01.jpg |
|Download: http://www.excelforum.com/attachment.php?postid=3501 |
+-------------------------------------------------------------------+

--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=379171

  #3   Report Post  
bj
 
Posts: n/a
Default

Quick question your write up talks about column K only
your equation shows Column F
What is the is number section for?

"was" wrote:


Help please.
Column K contains dates and blank cells. I would like to count how many
of these dates fall within a given date range. For example, in the
first week in May. Column K contains these dates. 5/2/2005, 5/3/2005,
5/5/2005, 5/5/2005. I would like to count this as 4 dates within the
first week of May. I created this formula but the output is 3.

=SUMPRODUCT(--(ECNT!F2:F515=DATE(2005,5,2)),--(ECNT!F2:F515<=DATE(2005,5,6)),--(ISNUMBER(ECNT!K2:K515)))

I assume that it is only counting 5/5/2005 one time?

I changed the dates in the formula to check a second 2nd date range
(5/9 to 5/13). Column K contains only one date within that range
5/13/2005. However this formula returns 2.

Could someone please modify this formula to work the way I want it to?


--
was
------------------------------------------------------------------------
was's Profile: http://www.excelforum.com/member.php...o&userid=20211
View this thread: http://www.excelforum.com/showthread...hreadid=379171


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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 04:44 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"