Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Sumproduct to count

I have the following formula:
=SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
where I am trying to count the number of items in Col AE that are true,
the month in Col C =C1 or Jan in the year 2005 Col B. The expected
result is 0,but the returned value is 2, the correct count for 2006.
Help! TIA

Greg

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sumproduct to count

I'd apply data|filter|autofilter

Then filter to show Jan 2005 and Trues.

I bet you have 2.

GregR wrote:

I have the following formula:
=SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
where I am trying to count the number of items in Col AE that are true,
the month in Col C =C1 or Jan in the year 2005 Col B. The expected
result is 0,but the returned value is 2, the correct count for 2006.
Help! TIA

Greg


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sumproduct to count

ps watch out for hidden rows!

GregR wrote:

I have the following formula:
=SUMPRODUCT(--($C$6:$C$2000=C$1),--(YEAR($B$6:$B$2000)=2005),--(AE$6:$AE$2000=TRUE))
where I am trying to count the number of items in Col AE that are true,
the month in Col C =C1 or Jan in the year 2005 Col B. The expected
result is 0,but the returned value is 2, the correct count for 2006.
Help! TIA

Greg


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default Sumproduct to count

Dave, thanks. I figured it out. Had a problem with my True/False Col ,
which was hidden. When I fixed it, the problem went away. Your
suggestion of "hidden rows" pointed me in the right direction.

Greg

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
SUMProduct / Count Anto111 Excel Discussion (Misc queries) 8 June 3rd 08 03:10 PM
SUMPRODUCT, count & sum Tasha Excel Worksheet Functions 2 August 24th 07 05:32 PM
Count without SUMPRODUCT Mossi Excel Worksheet Functions 2 December 11th 06 09:22 PM
Count if and Sumproduct Brento Excel Discussion (Misc queries) 2 June 20th 06 09:05 PM
Sumproduct to count GregR Excel Programming 4 September 23rd 05 06:08 PM


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