Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following cells are only important to me: A1, B5, J20 and M6
I would like to use the above four cells with the Excel countif() function as follows, but this does NOT work: countif (A1,B5,J20,M6, 0) ' Does NOT work! This does not work because countif() only accepts 2 parameters, a range and a criteria. How can I make this work?? I already tried the following: countif(Range(A1,B5,J20,M6), 0 ) but that didn't seem to work either. Please let me know what I'm missing. thankx |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Look at this: MyVar = WorksheetFunction.CountIf(Range("A1,B5,J20,M6"), 0) Regards, Per "Robert Crandal" skrev i meddelelsen ... The following cells are only important to me: A1, B5, J20 and M6 I would like to use the above four cells with the Excel countif() function as follows, but this does NOT work: countif (A1,B5,J20,M6, 0) ' Does NOT work! This does not work because countif() only accepts 2 parameters, a range and a criteria. How can I make this work?? I already tried the following: countif(Range(A1,B5,J20,M6), 0 ) but that didn't seem to work either. Please let me know what I'm missing. thankx |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Whilst not 100% certain, I think that you will find what you are trying to do
is a weakness in Excel. You can use the functions on ranges that are contiguous only. A solution to this is that you add multiple formulas together that have each of the contiguous ranges separated something like this: =SUM(COUNTIF(A1,0),COUNTIF(B5,0),COUNTIF(J20,0),CO UNTIF(M6,0)) Hope helps -- jb "Robert Crandal" wrote: The following cells are only important to me: A1, B5, J20 and M6 I would like to use the above four cells with the Excel countif() function as follows, but this does NOT work: countif (A1,B5,J20,M6, 0) ' Does NOT work! This does not work because countif() only accepts 2 parameters, a range and a criteria. How can I make this work?? I already tried the following: countif(Range(A1,B5,J20,M6), 0 ) but that didn't seem to work either. Please let me know what I'm missing. thankx . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use a new column (say column "N") to insert references to your cells like:
N1 : =A1 N2 : =B5 N3 : =J20 N4 : =M6 Then you can use COUNTIF() for this column ( column "N") to count zero values. Ο χρήστης "Robert Crandal" *γγραψε: The following cells are only important to me: A1, B5, J20 and M6 I would like to use the above four cells with the Excel countif() function as follows, but this does NOT work: countif (A1,B5,J20,M6, 0) ' Does NOT work! This does not work because countif() only accepts 2 parameters, a range and a criteria. How can I make this work?? I already tried the following: countif(Range(A1,B5,J20,M6), 0 ) but that didn't seem to work either. Please let me know what I'm missing. thankx . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple: how to express this named-range reference? | Excel Discussion (Misc queries) | |||
How to express range of Percentages | Excel Discussion (Misc queries) | |||
How to express range of Percentages | Excel Discussion (Misc queries) | |||
is there anyone that has successfully sent a page or a copied range using outlook express? | Excel Programming | |||
Send a range in Excel as the body of an Outlook Express message | Excel Programming |