Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif in VB
Hi,
Can this be done shorter, without using cell B1 Range("B1").Formula = "=COUNTIF(A:A,""*Stock*"")" Stock = Range("B1").Value Range("B1").Clear Cheers, Harold |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
countif in VB
Dim Stock As Long
Stock = Application.CountIf(ActiveSheet.Range("a:a"), "*stock*") MsgBox Stock mohavv wrote: Hi, Can this be done shorter, without using cell B1 Range("B1").Formula = "=COUNTIF(A:A,""*Stock*"")" Stock = Range("B1").Value Range("B1").Clear Cheers, Harold -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Countif ? | Excel Discussion (Misc queries) | |||
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 |