I have two tables,
one table (TABLE1) contains the name and a mile point a
the other table (TABLE2) contains name, mile point 1, mile point 2, and other data
I want to be able to pull data from TABLE2, based on TABLE1's name and MP. I want to be able to select data from TABLE2 whose name and mile point's fit with the data from TABLE1
Line MP A SYS 100 8 ?
TABLE2
SYS Line MP1 MP2 DATA A 100 0 5 BOB A 100 5 10 KON B 100 10 15 B
i want to be able to replace the ? from table1 with the correct SYS from table2 based on the MP given
i started with something like
=if(and(name=name,mpa=>mp1,mpa=<mp2)),vlookup...
the problem is this doesnt work because im comparing one to many.
Bookmarks