Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am an Access Programmer using automation to Excel
In a Named Range of 12 cells, is there a function to tel how many of those cells have entries greater than Zero I could code that w/ many IF statements, but would lik to know if a function exists TIA - Bob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In a worksheet that would be accomplished with a formula like this:
=COUNTIF(RangeName,"0") So presumably xlApp.CountIf(XL.Range("RangeName"), "0") would return the count via automation. -- Jim Rech Excel MVP "Bob Barnes" wrote in message ... |I am an Access Programmer using automation to Excel. | | In a Named Range of 12 cells, is there a function to tell | how many of those cells have entries greater than Zero? | | I could code that w/ many IF statements, but would like | to know if a function exists. | | TIA - Bob |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Bob Barnes" wrote in message
... |I am an Access Programmer using automation to Excel. | | In a Named Range of 12 cells, is there a function to tell | how many of those cells have entries greater than Zero? | As a MS Access developer you will be please to learn that you don't need automation to access read cell values, you can access the names range as if it were a Jet table. This is how the query would look like from a MS Access query's SQL window: SELECT Count(MyKeyColumn) FROM [Excel 8.0;database=C:\MyWorkbook.xls;].[MyNamedRange] GROUP BY MyKeyColumn HAVING INT(MyKeyColumn) 0 ; -- |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can invoke the CountIF function like this:
=COUNTIF(RangeName,"0") "Bob Barnes" wrote in message ... I am an Access Programmer using automation to Excel. In a Named Range of 12 cells, is there a function to tell how many of those cells have entries greater than Zero? I could code that w/ many IF statements, but would like to know if a function exists. TIA - Bob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
find last populated cell in range of cells | Excel Worksheet Functions | |||
Copy cells from named range | Excel Discussion (Misc queries) | |||
Array as a "named range" - formula ok in cells, but error as "named range" | Excel Discussion (Misc queries) | |||
inserting a named range into new cells based on a named cell | Excel Discussion (Misc queries) | |||
looping cells though a named range | Excel Programming |