Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default Count Using Multiple Columns

In my worksheet, column B contains text and column J contains either 0,1 or
blank. I am trying to count the rows where the text in column B is a specifc
value AND column J is a 0 or a 1 not a blank. I have tried the following:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0))

but this is counting the blanks as well. Any help would be greatly
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Count Using Multiple Columns

Possibly one way:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333<""))

HTH,
Paul

--

"karen" wrote in message
...
In my worksheet, column B contains text and column J contains either 0,1
or
blank. I am trying to count the rows where the text in column B is a
specifc
value AND column J is a 0 or a 1 not a blank. I have tried the following:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0))

but this is counting the blanks as well. Any help would be greatly
appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Count Using Multiple Columns

Another possible way to only look at ones (1) and zeros (0) and exclude
blanks:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0)+(J2:J333=1)-(J2:J333=""))

Regards,
Paul

--

"PCLIVE" wrote in message
...
Possibly one way:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333<""))

HTH,
Paul

--

"karen" wrote in message
...
In my worksheet, column B contains text and column J contains either 0,1
or
blank. I am trying to count the rows where the text in column B is a
specifc
value AND column J is a 0 or a 1 not a blank. I have tried the
following:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0))

but this is counting the blanks as well. Any help would be greatly
appreciated.





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 447
Default Count Using Multiple Columns

Thanks that works - I was so close! Appreciate the help.

"PCLIVE" wrote:

Possibly one way:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333<""))

HTH,
Paul

--

"karen" wrote in message
...
In my worksheet, column B contains text and column J contains either 0,1
or
blank. I am trying to count the rows where the text in column B is a
specifc
value AND column J is a 0 or a 1 not a blank. I have tried the following:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0))

but this is counting the blanks as well. Any help would be greatly
appreciated.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Count Using Multiple Columns

=SUMPRODUCT((B2:B333="a")*(J2:J333={0,1})*(J2:J333 <""))


"karen" skrev:

In my worksheet, column B contains text and column J contains either 0,1 or
blank. I am trying to count the rows where the text in column B is a specifc
value AND column J is a 0 or a 1 not a blank. I have tried the following:

=SUMPRODUCT(--(B2:B333="Housewares"),--(J2:J333=0))

but this is counting the blanks as well. Any help would be greatly
appreciated.

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
Count if multiple statements in two columns Motaad Excel Worksheet Functions 3 March 15th 07 10:32 PM
Sum/Count Multiple columns Tom Hewitt Excel Discussion (Misc queries) 6 March 14th 06 03:10 PM
Count if Multiple columns Dean Excel Worksheet Functions 2 January 16th 06 12:53 PM
how to count one value or another across multiple columns? MeatLightning Excel Discussion (Misc queries) 10 May 22nd 05 09:23 AM
Count on multiple columns Emece Excel Worksheet Functions 2 March 4th 05 02:52 PM


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