I started to do this using a great circle formula. I got stumped on need the lat and long. I started recording the position for all my common airports, i.e. australian domestic, but gave up. I can send you a excel spreadsheet that does the calculation and shows the formula if you wish. But I think I found it originally by googling great circle distance calculation excel (or something like that).
I've been meaning to investigate online location data sources of airport location from either that open source flight log website (my open flights?) or by asking the creator of the Frequent Flyer Calculator App their data source (damn and now I'm really showing bad memory because I can't remember their name either)