I just realised a better way of doing the same thing. I just discovered excel can filter tables.
Using the filter function you can specify the element of interest, or L-value range etc...
In the screen shot attached I have a filter for LIF between 124-144 mm. AND Z bettween 5-26.
I've also added a field where you specify x-ray of interest (Fe Ka1) and xtal (LIF) [the green box] - and it calculates the difference in L-value between interfering element and the element of interest
Ben
Just updated "Lvale Table complete.xlsx" complete table from calczaf and LDE's