So if I understand the situation correctly, you have already read the data from Excel into a data table. If that is the case, one way is to use
SELECT[
^] method of the datatable. Something like
foreach (DataRow dr in mydatatable.Select("MyColumn = '" + stringVariable"'") ...
Of course the exact format depends on your datatable structure and the type of your input.