I got beat to the bunch, but here's a slight variation. My Scottish geography is quite poor, so the numbers were made up.
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 70px"><COL style="WIDTH: 70px"><COL style="WIDTH: 70px"><COL style="WIDTH: 70px"><COL style="WIDTH: 70px"><COL style="WIDTH: 70px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="FONT-WEIGHT: bold"> </TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Aberdeen</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Dundee</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Edinburgh</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Glasgow</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Paisley</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Aberdeen</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #000000">-</TD><TD style="TEXT-ALIGN: center">50</TD><TD style="TEXT-ALIGN: center">75</TD><TD style="TEXT-ALIGN: center">100</TD><TD style="TEXT-ALIGN: center">125</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Dundee</TD><TD style="TEXT-ALIGN: center">50</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #000000">-</TD><TD style="TEXT-ALIGN: center">60</TD><TD style="TEXT-ALIGN: center">80</TD><TD style="TEXT-ALIGN: center">90</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Edinburgh</TD><TD style="TEXT-ALIGN: center">75</TD><TD style="TEXT-ALIGN: center">60</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #000000">-</TD><TD style="TEXT-ALIGN: center">62</TD><TD style="TEXT-ALIGN: center">150</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Glasgow</TD><TD style="TEXT-ALIGN: center">100</TD><TD style="TEXT-ALIGN: center">80</TD><TD style="TEXT-ALIGN: center">62</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #000000">-</TD><TD style="TEXT-ALIGN: center">12</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Paisley</TD><TD style="TEXT-ALIGN: center">125</TD><TD style="TEXT-ALIGN: center">90</TD><TD style="TEXT-ALIGN: center">150</TD><TD style="TEXT-ALIGN: center">12</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #000000">-</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD> </TD><TD>Start</TD><TD>Leg 1</TD><TD>Leg 2</TD><TD>Leg 3</TD><TD style="TEXT-ALIGN: center">Total</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD style="TEXT-ALIGN: center">Employee 1</TD><TD>Aberdeen</TD><TD>Dundee</TD><TD>Edinburgh</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD> </TD><TD> </TD><TD style="TEXT-ALIGN: center">50</TD><TD style="TEXT-ALIGN: center">60</TD><TD style="TEXT-ALIGN: center">-</TD><TD style="TEXT-ALIGN: center">110</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD style="TEXT-ALIGN: center">Employee 2</TD><TD>Dundee</TD><TD>Paisley</TD><TD>Dundee</TD><TD>Glasgow</TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD> </TD><TD> </TD><TD style="TEXT-ALIGN: center">90</TD><TD style="TEXT-ALIGN: center">90</TD><TD style="TEXT-ALIGN: center">80</TD><TD style="TEXT-ALIGN: center">260</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD style="TEXT-ALIGN: center">Employee 3</TD><TD>Dundee</TD><TD>Edinburgh</TD><TD>Aberdeen</TD><TD>Dundee</TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD> </TD><TD> </TD><TD style="TEXT-ALIGN: center">60</TD><TD style="TEXT-ALIGN: center">75</TD><TD style="TEXT-ALIGN: center">50</TD><TD style="TEXT-ALIGN: center">185</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>
Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>C10</TD><TD>=IFERROR(VLOOKUP
(B9,$A$1:$F$6,MATCH(C9,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>D10</TD><TD>=IFERROR(VLOOKUP
(C9,$A$1:$F$6,MATCH(D9,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>E10</TD><TD>=IFERROR(VLOOKUP
(D9,$A$1:$F$6,MATCH(E9,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>F10</TD><TD>=SUM(C10:E10)</TD></TR><TR><TD>C12</TD><TD>=IFERROR(VLOOKUP
(B11,$A$1:$F$6,MATCH(C11,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>D12</TD><TD>=IFERROR(VLOOKUP
(C11,$A$1:$F$6,MATCH(D11,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>E12</TD><TD>=IFERROR(VLOOKUP
(D11,$A$1:$F$6,MATCH(E11,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>F12</TD><TD>=SUM(C12:E12)</TD></TR><TR><TD>C14</TD><TD>=IFERROR(VLOOKUP
(B13,$A$1:$F$6,MATCH(C13,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>D14</TD><TD>=IFERROR(VLOOKUP
(C13,$A$1:$F$6,MATCH(D13,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>E14</TD><TD>=IFERROR(VLOOKUP
(D13,$A$1:$F$6,MATCH(E13,$B$1:$F$1,0)+1,FALSE),"-")</TD></TR><TR><TD>F14</TD><TD>=SUM(C14:E14)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>