Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello, I am missing something simple here I think. I have some data in column A. I would like to count the data based on criteria; either above some value, below some value or between two values. I started with the simple above some value and used the following code: Sub test() Dim Minv, Maxv Application.Goto reference:="aaa" Minv = 0 MsgBox Application.CountIf(Selection, " & Minv & ") End Sub aaa is the named reference containing the data and is OK. All but one entry is above 0, but the above codes give him 0 for the countif. What am I doing wrong? Thanks Bill *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to set the function - countif? | Excel Discussion (Misc queries) | |||
please help how to combine IF function with Countif function | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
Embed a countif function in subtotal function? | Excel Worksheet Functions | |||
Countif function | Excel Worksheet Functions |