Afternoon All,
I have a table in sheet 1 that lists 25 "Routes" in column A and columns B to E have Grid References "Max Latitude"; "Min Latitude"; "Max Longtitude"; "Min Longtitude" respectively. In my second sheet I have a list of 30000 entries each with a Latitude and Lontitude grid reference. My aim is to put in a formula that says if the grid reference is between the parameters laid out in sheet 1 then to display the "Route" number. I have tried the following:
IF(AND(G2<=Sheet1!$B$2:$B$28,G2>=Sheet1!$C$2:$C$28,H2<=Sheet1!$D$2:$D$28,H2>=Sheet1!$E$2:$E$28),Sheet1!$A$2:$A$28,"Error")
But this doesn't want to work. Does anyone have any ideas?
Cheers
Jay
I have a table in sheet 1 that lists 25 "Routes" in column A and columns B to E have Grid References "Max Latitude"; "Min Latitude"; "Max Longtitude"; "Min Longtitude" respectively. In my second sheet I have a list of 30000 entries each with a Latitude and Lontitude grid reference. My aim is to put in a formula that says if the grid reference is between the parameters laid out in sheet 1 then to display the "Route" number. I have tried the following:
IF(AND(G2<=Sheet1!$B$2:$B$28,G2>=Sheet1!$C$2:$C$28,H2<=Sheet1!$D$2:$D$28,H2>=Sheet1!$E$2:$E$28),Sheet1!$A$2:$A$28,"Error")
But this doesn't want to work. Does anyone have any ideas?
Cheers
Jay