Hi
Following on from the formula in C2 try
Theoretical Data!D2: =CHOOSE(C2+1,"No Result",INDEX('Experimental Data'!A:A,SUMPRODUCT(--('Experimental Data'!$B$2:$B$9>='Theoretical Data'!B2-0.5),--('Experimental Data'!$B$2:$B$9<='Theoretical Data'!B2+0.5),ROW('Experimental Data'!$B$2:$B$9))),"More Than 1")
Copy down.
This will give you:
1) No Result - when the count is 0
2) The CMD number when there is 1 match or
3) More Than 1 - when there is a count of 2
4) An error message if there is a count of >2
Another way would be to create your own function.
Put that function into a general module in the workbook, then
theoretical data!E2: =myfunc(B2,'Experimental Data'!$B$2:$B$9)
rylo
Bookmarks