↓ Advertise on Defender2 ↓

Home > Off Topic > Creating a mileage graph/sheet thing in excel?
Post Reply  Down to end
Page 1 of 2 12>
Print this entire topic · 
diesel_jim



Member Since: 13 Oct 2008
Location: hiding
Posts: 6031

United Kingdom 2006 Defender 110 Td5 SW Epsom Green
Creating a mileage graph/sheet thing in excel?
Anyone know how to create a mileage distance chart thing?

like this:

Click image to enlarge


It's for places around Wiltshire (not that it matters where it is)

I know all the places names I need, and can work out the distances between each place, but I gather that when one adds the place names, they need to be in some structured order nearest to furthest kind of thing? what if they're all dotted around the place, not in a nice tangent?

Anyone got any good tips?
Post #776400 6th Jun 2019 7:37pm
View user's profile Send private message View poster's gallery Reply with quote
OsloBlue



Member Since: 14 Jul 2018
Location: Essex
Posts: 822

United Kingdom 2003 Defender 110 Td5 XS CSW Oslo Blue
Yeah sorry its kind of hard to do without using macros unless you want to enter data manually.

Th problem is in excel you can only really sort data by Alphabetical, alpha-numerical or smallest to longest.

The problem is the distance in cell A1 to destination A2 would not consistently be smaller or larger than the distance from say Cell A1 to A2 as would cell C2 to A2

Basically no pattern to data.

What you could do is make a table so
Column A | column B | column C
Location A | Location B | Distance
Jims location | OBs location | Distance



So on so forth but you would need to manually list all the variables...

Then go to Insert tab > insert Pivot chart and it should Group All start locations on one axis and All finish locations and list the distances between the two... I'm on IG: https://www.instagram.com/osloblue42/
Current: TD5 '110 "Lucinda" Thread here: https://www.defender2.net/forum/topic62562.html
Post #776402 6th Jun 2019 7:56pm
View user's profile Send private message View poster's gallery Reply with quote
LandRoverAnorak



Member Since: 17 Jul 2011
Location: Surrey
Posts: 11240

United Kingdom 2013 Defender 110 Puma 2.2 USW Orkney Grey
Given how it's meant to be used, the most obvious structure is to list the places alphabetically, so they're easier to find. The actual distances between places are all discreet facts that don't relate to each other, so it doesn't matter where they're positioned. Exactly like the example you've posted. Darren

110 USW BUILD THREAD - EXPEDITION TRAILER - 200tdi 90 BUILD THREAD - SANKEY TRAILER - IG@landroveranorak

"You came in that thing? You're braver than I thought!" - Princess Leia
Post #776404 6th Jun 2019 8:01pm
View user's profile Send private message View poster's gallery Reply with quote
diesel_jim



Member Since: 13 Oct 2008
Location: hiding
Posts: 6031

United Kingdom 2006 Defender 110 Td5 SW Epsom Green
Thanks both; yes makes sense that they're not related to each other (dstance wise), so i've just alphabetecised my list and will manually add the distances.

There's only 36 places at the moment so that'll take me a while... time for a beer I think.

Thanks again
Post #776406 6th Jun 2019 8:05pm
View user's profile Send private message View poster's gallery Reply with quote
OsloBlue



Member Since: 14 Jul 2018
Location: Essex
Posts: 822

United Kingdom 2003 Defender 110 Td5 XS CSW Oslo Blue
36 Places is 36² pieces of data you need

1296 entries... I'm on IG: https://www.instagram.com/osloblue42/
Current: TD5 '110 "Lucinda" Thread here: https://www.defender2.net/forum/topic62562.html
Post #776407 6th Jun 2019 8:08pm
View user's profile Send private message View poster's gallery Reply with quote
diesel_jim



Member Since: 13 Oct 2008
Location: hiding
Posts: 6031

United Kingdom 2006 Defender 110 Td5 SW Epsom Green
1260 I reckon.... as I'll need to ignore 36 of them (or set as 0).... same places on the vertical & horizontal will have no distance.

Still enough mind! Laughing
Post #776408 6th Jun 2019 8:22pm
View user's profile Send private message View poster's gallery Reply with quote
LandRoverAnorak



Member Since: 17 Jul 2011
Location: Surrey
Posts: 11240

United Kingdom 2013 Defender 110 Puma 2.2 USW Orkney Grey
OsloBlue wrote:
36 Places is 36² pieces of data you need

1296 entries...

The data set is triangular, like the example. Therefore it's only ((36(36+1))/2)-36 = 630 entries.

(Can you tell I'm bored?) Darren

110 USW BUILD THREAD - EXPEDITION TRAILER - 200tdi 90 BUILD THREAD - SANKEY TRAILER - IG@landroveranorak

"You came in that thing? You're braver than I thought!" - Princess Leia
Post #776423 6th Jun 2019 9:18pm
View user's profile Send private message View poster's gallery Reply with quote
diesel_jim



Member Since: 13 Oct 2008
Location: hiding
Posts: 6031

United Kingdom 2006 Defender 110 Td5 SW Epsom Green
Cool, I was only 600 out.....

this rate I'll be finished by 0200....
Post #776427 6th Jun 2019 9:45pm
View user's profile Send private message View poster's gallery Reply with quote
lohr500



Member Since: 14 Sep 2014
Location: Skipton
Posts: 1283

United Kingdom 2013 Defender 110 Puma 2.2 XS CSW Santorini Black
If you can build the data table in three columns so it shows Place A , Place B and Mileage, then you could use the vlookup function in conjunction with creating a unique identifier string (Place A & Place B) to populate the correct mileages for each position in the triangular grid.

If you PM me the basic spreadsheet with the data (in any order) , I'll have a go at setting it up for you and send it back with the formulae in place Smile

There may be a smarter way with Access/Macros/SQL but that's beyond my ability. (And even my idea may not work but I'm happy to give it a go!!!)
Post #776498 7th Jun 2019 12:55pm
View user's profile Send private message View poster's gallery Reply with quote
windy81



Member Since: 14 Mar 2018
Location: North Wales
Posts: 311

Wales 1992 Defender 90 200 Tdi HT Firenze Red
Only way to do that is manually input all the data as the routes are never the same depending where you're going.
A labour of love that would be.

Macros and v lookups are all very clever but they never inspire me with confidence when i need to rely on the data.
Post #776517 7th Jun 2019 4:28pm
View user's profile Send private message View poster's gallery Reply with quote
diesel_jim



Member Since: 13 Oct 2008
Location: hiding
Posts: 6031

United Kingdom 2006 Defender 110 Td5 SW Epsom Green
Thanks all.

I've started manually doing it via waypoints on memory map. I'm about half way through it now.


If anyones interested, myself and a couple of mates are into radios. be it CB, PMR 0.5w and I've got some business spec 5w (with licence, thanks...) VHF's, so when we're out laning or at work, we'll text each other and see who's near a high point, and have a chat, test ranges etc.

So the chart was to measure high points. Plenty around the plain and Devizes, and Swindon, Lambourn and down to Beacon hill south of Newbury

Bit sad I suppose, but other people kick a ball around with 8 or 9 other sweaty blokes, or knock a small ball around a field full of holes so....
Post #776565 7th Jun 2019 8:40pm
View user's profile Send private message View poster's gallery Reply with quote
LandRoverAnorak



Member Since: 17 Jul 2011
Location: Surrey
Posts: 11240

United Kingdom 2013 Defender 110 Puma 2.2 USW Orkney Grey
Not sad at all. Quite interesting, actually. Darren

110 USW BUILD THREAD - EXPEDITION TRAILER - 200tdi 90 BUILD THREAD - SANKEY TRAILER - IG@landroveranorak

"You came in that thing? You're braver than I thought!" - Princess Leia
Post #776607 7th Jun 2019 10:59pm
View user's profile Send private message View poster's gallery Reply with quote
lohr500



Member Since: 14 Sep 2014
Location: Skipton
Posts: 1283

United Kingdom 2013 Defender 110 Puma 2.2 XS CSW Santorini Black
Hi diesel_jim,

I've played around in Excel and built out a spreadsheet that will populate the mileage data into the distance chart grid for you. This will save you manually keying in each cell into the grid.

It will still need a base table with three columns (which is where the hard work will be! ):

Location , Location, Distance.

Also, if you add further locations/distances into the base table in the future, then extending the distance chart grid will be relatively easy. Just a case of adding the full list of locations to the X & Y axis and the vlookup formulae will grab the correct distance value for each combination of locations Smile

As per earlier post, I'll send you my email address so you can send me the spreadsheet once you have some data in it. I'll then end it back with my additions.
Post #776673 8th Jun 2019 12:41pm
View user's profile Send private message View poster's gallery Reply with quote
Sturdaa



Member Since: 14 Jan 2015
Location: West Calder
Posts: 23

United Kingdom 2005 Defender 90 Td5 CSW Alveston Red
I’m fairly sure the vlookup function can be used to do this - I’d need to play around to verify though.
Post #776781 9th Jun 2019 8:35am
View user's profile Send private message View poster's gallery Reply with quote
lohr500



Member Since: 14 Sep 2014
Location: Skipton
Posts: 1283

United Kingdom 2013 Defender 110 Puma 2.2 XS CSW Santorini Black
Yep, I have a model built using the vlookup function. I just need the input data to try it in anger Smile
Post #776782 9th Jun 2019 8:59am
View user's profile Send private message View poster's gallery Reply with quote
Post Reply  Back to top
Page 1 of 2 12>
All times are GMT + 1 Hour

Jump to  
Previous Topic | Next Topic >
Posting Rules
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Site Copyright © 2006-2024 Futuranet Ltd & Martin Lewis
DEFENDER2.NET RSS Feed - All Forums