I have a prepared dictionary in c# and xlsx file with filled columns. I need to find the column's and row's indexes if the cell contains the value provided from a dictionary.
I am using ExcelPackage and ExcelWorksheet. Dictionary:
public static Dictionary<string, string> ExcelColumnsMapping = new Dictionary<string, string>()
{
{"property name", "column name"}
}
XLS
var excelFile = new FileInfo(importFileFullPath);
using (ExcelPackage package = new ExcelPackage(excelFile))
{
ExcelWorksheet worksheet = package.Workbook.Worksheets[1];
}
And here I wonder how can i find the cell indexes with provided data. I'd like to see an example with any string or something. Thank you for help!