Thanks for your posting and using Aspose.Cells.
//Load both of your workbooks
Workbook wb1 = new Workbook(“NamesandLocations.xlsx”);
Workbook wb2 = new Workbook(“NamesandSales.xlsx”);
//Access both of your worksheets
Worksheet ws1 = wb1.Worksheets[0];
Worksheet ws2 = wb2.Worksheets[0];
//Insert new column B
ws2.Cells.InsertColumn(1);
//Specify find options, we want to find entire content
//and we want to search cell values
FindOptions opts = new FindOptions();
opts.LookAtType = LookAtType.EntireContent;
opts.LookInType = LookInType.Values;
//loop all values in column A
for(int i=0; i<=ws1.Cells.MaxDataRow; i++)
{
//Access column A cell in first worksheet
Cell cell1 = ws1.Cells[i, 0];
//Find the cell value in second worksheet
Cell cell2 = ws2.Cells.Find(cell1.StringValue, null, opts);
//Print both of the cell names
Debug.WriteLine(cell1.Name + “-” + cell2.Name);
//Get the region cell
Cell cellR = ws1.Cells[i, 1];
//Add the regiion cell value in second worksheet
ws2.Cells[cell2.Row, 1].PutValue(cellR.StringValue);
}
//Save the workbook in xlsx format
wb2.Save(“output.xlsx”);