Read text file and get value to excel

I want to read text file and send value to excel.

Example.

IN
AARTFSEFTRE01881 waiting for 4 days
Count: 1
Error: Client
AARTFSEERRE01881 waiting for 2 days
Count: 1
Error: TYPE

If find error = Client
read before row and get word before waiting for (AARTFSEFTRE01881)

Please guide me about it.

@fairymemay How do you want the output in Excel to appear ?

Hi please check how to get that Word and make changes as per your need
test.txt (124 Bytes)
textfile.xaml (9.8 KB)

I have more question.
If I want to change condition from Error: Client to except Error : Client

Please guide me about it.

change it in condition then
Is it worked above one?

I want to change condition from Error: Client to other error (except Error: Client)

image

image

is “except Error: Client” or you want other than “Error: Client”

except Error: Client

means which does not contains this Error: Client ryt ?
if yes then use Not before condition

right?
image

Yes this will check for txt data which not contains that string