The result didn't agree with the condition

image

In this scenario, the sequence determines and counts if there is a word “Absent” in the column. However, in the given column there is a word “Absent” but the output is still zero. How can I solve this? Has it something to do with the data types of the variables?

can you show the regex which you are matching

1 Like

System.Text.RegularExpressions.Regex.Matches(AttenString,“Absent” ).Count

Are you converting the whole column into string?

1 Like

I want to count the number of absences in the column.

Try this by giving your column name and the string which you want to search

1 Like

Thank you so much and I will work on it.

1 Like

:slight_smile:

1 Like