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 a table where I want to count the number of times "*VPN*" appear
in column A where column K is blank, something like:

=SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).

The result should be 14 but is returning 0. The countif formula

=COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
K6:K1000 = "".

What is wrong? TIA

Greg

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

=SUMPRODUCT(--(ISNUMBER(FIND("VPN",$A$6:$A$1000))),--($K$6:$K$1000=""))

If you want it to be non-case sensitive, use SEARCH not FIND.

--
HTH

Bob Phillips

"GregR" wrote in message
ups.com...
I have a table where I want to count the number of times "*VPN*" appear
in column A where column K is blank, something like:

=SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).

The result should be 14 but is returning 0. The countif formula

=COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
K6:K1000 = "".

What is wrong? TIA

Greg



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Sumproduct to count

Since this is the second instance of you saveing the day on the sumproduct
formula I thought it might be helpful to post a cheat sheet of how this stuff
is done...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Example 9 in this case... I know because I had to look it up. In this case
Greg was looking for the literal value *VPN* not containing VPN.
--
HTH...

Jim Thomlinson


"Bob Phillips" wrote:

=SUMPRODUCT(--(ISNUMBER(FIND("VPN",$A$6:$A$1000))),--($K$6:$K$1000=""))

If you want it to be non-case sensitive, use SEARCH not FIND.

--
HTH

Bob Phillips

"GregR" wrote in message
ups.com...
I have a table where I want to count the number of times "*VPN*" appear
in column A where column K is blank, something like:

=SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).

The result should be 14 but is returning 0. The countif formula

=COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
K6:K1000 = "".

What is wrong? TIA

Greg




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Sumproduct to count

I know that page :-)

Bob

"Jim Thomlinson" wrote in message
...
Since this is the second instance of you saveing the day on the sumproduct
formula I thought it might be helpful to post a cheat sheet of how this

stuff
is done...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Example 9 in this case... I know because I had to look it up. In this case
Greg was looking for the literal value *VPN* not containing VPN.
--
HTH...

Jim Thomlinson


"Bob Phillips" wrote:

=SUMPRODUCT(--(ISNUMBER(FIND("VPN",$A$6:$A$1000))),--($K$6:$K$1000=""))

If you want it to be non-case sensitive, use SEARCH not FIND.

--
HTH

Bob Phillips

"GregR" wrote in message
ups.com...
I have a table where I want to count the number of times "*VPN*"

appear
in column A where column K is blank, something like:

=SUMPRODUCT(--($A$6:$A$1000="*VPN*"),--($K$6:$K$1000="")).

The result should be 14 but is returning 0. The countif formula

=COUNTIF($A$6:$A$1000,"*VPN*")=14 and the corresponding rows in
K6:K1000 = "".

What is wrong? TIA

Greg






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

Bob and Jim, once again thank you for your support and astute answers.

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 if or sumproduct? Suddes Excel Discussion (Misc queries) 5 March 15th 07 12:20 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


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"