Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Countifs
I am having problems with a formula. I have a worksheet with 9
columns (A thur I) that contain various numbers. I need to create a formula that if any cell in row 1 contains either a {1,2,3,4,6,20} input 1 and if not input 0. I tried the following but it only seems to be counting the cells with a 1. =COUNTIF(A14:I14,{1,2,3,4,6,20}) Countifs seems to be doing the same thing in Excel 2007. Thanks CD |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Countifs
In article
, CD27 wrote: I am having problems with a formula. I have a worksheet with 9 columns (A thur I) that contain various numbers. I need to create a formula that if any cell in row 1 contains either a {1,2,3,4,6,20} input 1 and if not input 0. I tried the following but it only seems to be counting the cells with a 1. =COUNTIF(A14:I14,{1,2,3,4,6,20}) Countifs seems to be doing the same thing in Excel 2007. Thanks CD Try... =(SUM(COUNTIF(A14:I14,{1,2,3,4,6,20}))0)+0 or =(SUMPRODUCT(--ISNUMBER(MATCH(A14:I14,{1,2,3,4,6,20},0)))0)+0 -- Domenic http://www.xl-central.com |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Countifs
Thanks Domenic, works perfectly.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr | Excel Worksheet Functions | |||
COUNTIFS | Excel Worksheet Functions | |||
Countifs | Excel Worksheet Functions | |||
Two COUNTIFs | Excel Discussion (Misc queries) | |||
Countifs Fx in 07 how in 03? | Excel Discussion (Misc queries) |