Save your file as comma separated value (cvs or txt file) use a textarea to paste the file and work with javascript (use a split(/[\r\n]+/g) to get an array of lines and an other split in a loop for the three fields).
I am able to search a single column using the below code.
How to extend this as to search two columns and give the corresponding 3rd column as output
function searchExcel()
{
var searchPhrase = document.getElementById('searchPhrase').value;
var Worksheet = 'C:\\example.xls';
var Excel = new ActiveXObject('Excel.Application');
var range = Excel_file.ActiveSheet.Range('A:A');
var jsRangeArray = new VBArray(range.Value).toArray();
var found = false;
for(cells in jsRangeArray)
{
if(jsRangeArray[cells] == searchPhrase)
{
document.getElementById("results").innerHTML = "Found";
found = true;
}
}
Bookmarks