Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Before I start, I'd like to express the fact that I am a beginner at coding, so I will take any and all suggestions/criticism.

I have an Excel spreadsheet with some 40,000 rows, each stating the name of a city. In each row there are two other columns, each stating the latitude and longitude of the city. I need to figure out how to create a Javascript program that reads the Excel spreadsheet and saves the coordinates into variables when the user prompts the city.

Can anybody give me tips or advice as to what I should do?

Thanks in advance.
Posted
Comments
virusstorm 6-Jul-15 17:46pm    
First, JavaScript isn't a program per say. It doesn't compiled down to a traditional executable (there are some tools out there that will let you do this). It is a run time language that the browser interprets and executes commands based on it. If you are looking to write an actual program and not a web application, you will want to look at a language like C# or VB.NET.

If you are looking to build a web application, try this link out:
http://codetheory.in/parse-read-excel-files-xls-xlsx-javascript/

A few other tips, Google is your friend. Try typing various phrases of what you are trying to accomplish into the search engine and see what comes back. You will be shocked to find how often you don't find something related to what you are looking for.

Happy coding!

1 solution

Some scripts that do this already exist -
Parse and read excel files[^]
Parsing excel workbooks[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900