Searching 20k+ lines for certain text

theover

New Member
Joined
Oct 24, 2017
Messages
5
Hi Team

I hope someone can assist me. I'm trying to get a vba or function going to search through 20k+ lines (only column A) for results like "Event" or "Event Management" and would like to know how many times it occurs (typically a Work note)

the line of column A looks something like this:
[TABLE="width: 161"]
<tbody>[TR]
[TD="class: xl63, width: 161, align: left"]23-10-2017 15:52:39 - Event Management (Work notes)
Server: Servername01
Date: 23/10/2017
Time: 15:52:30
UID: 623717e5-fc92-4d96-a3e9-c1c4e5d45c0d
Dest: 10.220.6.10
ESM Tool: SCOM2007
Agent Instance: Client32
Agent Class: SCOM2007
State: Error
Source: ESM
Client: Client32
Header: X-CALL
Instance Detail: Failed to Connect to Computer
User Data: The computer Servername01.01.com was not accessible.

[/TD]
[/TR]
</tbody>[/TABLE]


suggestions welcome please? I have been working through some code and even tried countif but not after a hole bunch of modifications on the data. I'm convinced that after the data modifications some of the data disappear as the results are not consistent

thanks in advance
Theover
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Or, if you don't want to change your formula for each new search term, you could keep the quoted asterics and point to a cell for the search term:

=COUNTIF(A:A,"*"& B1 & "*")
 
Upvote 0
Solved, mistake on my side. had the separator set as ; instead of , thus the formula was incorrect. thanks for the help guys
 
Upvote 0
Glad you got it sorted & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top