Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count if cetain text is in another column, same row.

Excel 2003,

Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Count if cetain text is in another column, same row.

Try this:

=SUMPRODUCT((A1:A100="X")*(B1:B100="Bob"))

=SUMPRODUCT((A1:A100="X")*(B1:B100="John"))

Adjust the ranges to suit your data.

Hope this helps.

Pete

On Mar 28, 6:36*pm, bhammer wrote:
Excel 2003,

Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Count if cetain text is in another column, same row.

On Fri, 28 Mar 2008 11:36:41 -0700 (PDT), bhammer
wrote:

Excel 2003,

Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad


Try this:

=SUMPRODUCT((A:A="X")*(B:B="John"))

Hope this helps / Lars-Åke

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count if cetain text is in another column, same row.

Here is a formula for John...

=SUMPRODUCT((A1:A100="X")*(B1:B100="John"))

and for Bob...

=SUMPRODUCT((A1:A100="X")*(B1:B100="Bob"))

Rick


"bhammer" wrote in message
...
Excel 2003,

Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Count if cetain text is in another column, same row.

For Bob:
=SUMPRODUCT(--(A2:A100="X"),--(B2:B100="Bob"))

For John
=SUMPRODUCT(--(A2:A100="X"),--(B2:B100="John"))

HTH,
Paul

--

"bhammer" wrote in message
...
Excel 2003,

Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Count if cetain text is in another column, same row.

Lars,

you can only use full-column references in XL2007 - the OP stated
XL2003.

Pete

On Mar 28, 6:41*pm, Lars-Åke Aspelin
wrote:
On Fri, 28 Mar 2008 11:36:41 -0700 (PDT), bhammer

wrote:
Excel 2003,


Simple, I hope. Column A has "X"s here and there (like checkmarks).
Some are blank. Column B has either "Bob" or "John". I want a cell to
total the number of X's for Bob, and another cell to total the X's for
John.
-Brad


Try this:

=SUMPRODUCT((A:A="X")*(B:B="John"))

Hope this helps / Lars-Åke


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Count if cetain text is in another column, same row.

On Fri, 28 Mar 2008 11:47:31 -0700 (PDT), Pete_UK
wrote:

Lars,

you can only use full-column references in XL2007 - the OP stated
XL2003.

Pete

OK, thanks for telling.

Lars-Åke

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
lookup text in one column, count in another column dmshurley Excel Worksheet Functions 1 August 17th 07 11:32 PM
Protecting Cetain Cells in Excel CharlieS Excel Worksheet Functions 5 September 27th 06 06:06 PM
Count Text in Column? nastech Excel Discussion (Misc queries) 2 March 22nd 06 12:22 PM
how do I count the number of times text in column A matches text i Sheila Excel Worksheet Functions 2 November 16th 05 10:20 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 05:26 PM.

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"