LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
JRod
 
Posts: n/a
Default Sumproduct Function problem

Hi, guys,
I have a Range A1:A10 with the following:
A1 - 01-Jan
A2 - 02 -Jan
A3 - 01-Feb
A4 - 02-Feb
A5 (Blank)
A6(Blank)
A7(Blank)
A8 - 03-Jan
A9(Blank)
A10(Blank)

If I want to count how many cells have "Jan" with the formula:
=SUMPRODUCT(--(TEXT($A$1:$A$5;"mmm")="Jan"))

it gives me the number 8. However, really the number is 3.
But, if the above formula is with "Feb", the number is correct, i.e. - 2.

I understood that for unknown reason to me, the first formula counts the
blank cells as they are with "Jan" too. So, if I write:
=SUMPRODUCT(--(TEXT($A$1:$A$10;"mmm")="Jan"))-SUMPRODUCT(--ISBLANK(A1:A10))
the result is now correct, I mean, number 3.

Any ideas for this? Thanks in advance.

--
JRod


 
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
Vlookup Function Problem Parker Excel Worksheet Functions 3 January 13th 05 06:53 PM
Another Sumproduct & #N/A problem Dave Davis Excel Worksheet Functions 3 January 10th 05 03:59 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
Excel Send To function problem kysiow Excel Discussion (Misc queries) 1 December 10th 04 01:37 AM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM


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