Hello,
I have a table with two columns of airports. Column 1 is the originating, and column 2 is the destination. Each airport is listed multiple times in each column. I have a formula that can find if a direct flight is possible, but I am looking for a formula that can find connections. As an example, I know Madison flies to Chicago, and I know Chicago flies to Little Rock. How can I find that Chicago is the connecting flight between Madison and Little Rock? I know some of these will have multiple connections, which I can try and figure out, but at least the first possible one should populate.
My data is set up as follows:
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Origin[/TD]
[TD]Destination[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]LAS VEGAS[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]CHICAGO[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]ATLANTA[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]BOSTON[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]MADISON[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]LITTLE ROCK[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]PHOENIX[/TD]
[/TR]
[TR]
[TD]LITTLE ROCK[/TD]
[TD]SEATTLE[/TD]
[/TR]
[TR]
[TD]LITTLE ROCK[/TD]
[TD]CHICAGO[/TD]
[/TR]
</TBODY>[/TABLE]
Any help is appreciated.
I have a table with two columns of airports. Column 1 is the originating, and column 2 is the destination. Each airport is listed multiple times in each column. I have a formula that can find if a direct flight is possible, but I am looking for a formula that can find connections. As an example, I know Madison flies to Chicago, and I know Chicago flies to Little Rock. How can I find that Chicago is the connecting flight between Madison and Little Rock? I know some of these will have multiple connections, which I can try and figure out, but at least the first possible one should populate.
My data is set up as follows:
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Origin[/TD]
[TD]Destination[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]LAS VEGAS[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]CHICAGO[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]ATLANTA[/TD]
[/TR]
[TR]
[TD]MADISON[/TD]
[TD]BOSTON[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]MADISON[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]LITTLE ROCK[/TD]
[/TR]
[TR]
[TD]CHICAGO[/TD]
[TD]PHOENIX[/TD]
[/TR]
[TR]
[TD]LITTLE ROCK[/TD]
[TD]SEATTLE[/TD]
[/TR]
[TR]
[TD]LITTLE ROCK[/TD]
[TD]CHICAGO[/TD]
[/TR]
</TBODY>[/TABLE]
Any help is appreciated.