Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif formula accross two columns
I have two coulumns with values. i want to count number of records which are
more than 0 in both columns. E.g: Column A Coulumn B 0 0 5 6 0 1 3 2 Therefore I want the answer to come back as 2 as two rows have both columns with a value of more than 0. thanks Afsha |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif formula accross two columns
Hi,
Perfect for a sumproduct function: =SUMPRODUCT((A1:A100)*(B1:B100)) Cheers! Jean-Guy "Afsha" wrote: I have two coulumns with values. i want to count number of records which are more than 0 in both columns. E.g: Column A Coulumn B 0 0 5 6 0 1 3 2 Therefore I want the answer to come back as 2 as two rows have both columns with a value of more than 0. thanks Afsha |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif formula accross two columns
Another way to write it:
=SUMPRODUCT(--(A1:A40), --(B1:B40)) but pinmaster's is shorter and both give the same result. "Afsha" wrote: I have two coulumns with values. i want to count number of records which are more than 0 in both columns. E.g: Column A Coulumn B 0 0 5 6 0 1 3 2 Therefore I want the answer to come back as 2 as two rows have both columns with a value of more than 0. thanks Afsha |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif formula accross two columns
thank you both!
"JLatham" wrote: Another way to write it: =SUMPRODUCT(--(A1:A40), --(B1:B40)) but pinmaster's is shorter and both give the same result. "Afsha" wrote: I have two coulumns with values. i want to count number of records which are more than 0 in both columns. E.g: Column A Coulumn B 0 0 5 6 0 1 3 2 Therefore I want the answer to come back as 2 as two rows have both columns with a value of more than 0. thanks Afsha |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Locking all cells accross when sorting columns | New Users to Excel | |||
CountIf formula results in the formula itself being displayed. | Excel Worksheet Functions | |||
Match then lookup | Excel Worksheet Functions | |||
I have a question regarding countif formula. | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions |