Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup text in one column, count in another column | Excel Worksheet Functions | |||
Protecting Cetain Cells in Excel | Excel Worksheet Functions | |||
Count Text in Column? | Excel Discussion (Misc queries) | |||
how do I count the number of times text in column A matches text i | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions |