Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In column B of my spreadsheet i have descriptions that are about twent
or so words long. I want to count the one's that contain specific tex such as "Gate 4" contained in the text. I listed the code that i hav made so far. Could somebody tell me what is wrong with my code. Sub Count_Gate() Dim Gate1 As Integer Dim Gate2 As Integer Dim Gate4 As Integer Gate1 = 0 Gate2 = 0 Gate4 = 0 Do If Columns("B:B") = "Gate 1" Then Gate1 = Gate1 + 1 End If Loop Until Range("B:B").End(xlUp).Row Thank you Morr -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
FIND / SEARCH text compare cell to string in 3rd cell | Excel Discussion (Misc queries) | |||
Search text in a cell | Excel Discussion (Misc queries) | |||
How to search for text within a cell? | Excel Discussion (Misc queries) | |||
Search text within cell | Excel Worksheet Functions | |||
How do I search for specific text and sum the cell to the right? | Excel Worksheet Functions |