Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Countif
Hi
I need to count unique items in a list of indices for example: 13.1 13.2 13.3 14.1 15.1 16.1 16.2 The answer would be 4 as the only count I need is the outer index. The indices are compiled as strings and are in named ranges on several sheets. I am looking for something like: lastorderID = 12.1 For i = 1 to sheets .count-1 res(i) = Application.CountIf(Sheets(i).Range("NOrderID"), "< CInt(lastorderID)") Next or: res(i) = Application.CountIf(Sheets(i).Range("NOrderID"), "< Left((lastorderID),2)") But they do not work. Can someone please help? T.I.A. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
COUNTIF | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |