Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help parsing a excel doc to create separate tables.

New Here ,
Jan 08, 2020 Jan 08, 2020

First time posting here so any help would be greatly apprecaited. 

 

I have an excel doc that has over 7000 lines of data. The excel sheet contains data from multiple districts that need to be grouped together and placed inside a table in InDesign. Manually selecting each districts data (which ranges anywhere between 2 - 12 lines of data) and importing the data into InDesign is taking forever. 

 

I know scripts are a powerful way to automate a task like this, but I am not very JavaScript savvy and have no idea where to start. Does anybody know what I should do?

TOPICS
How to , Import and export , Scripting
668
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020

Can you post an example of the spreadsheet with varying districts? Have you looked into using DataMerge? Are all the columns the same across the districts, or do some districts have different columns? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2020 Jan 08, 2020

Hi!

 

I tried DataMerge but it inputs everything. I'm creating a separate table for each district. The naming convention for districts isn't uniform.

 

excel-data.jpg

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020

I would just Filter by store in your Excel doc, get a Table Style setup the way you want it, hide the name/copy it intot the region section, and copy them in that way. I assume each table is on its own page? Creating the whole set of tables could be done by scripting, but it's not really a trivial task. I'd be happy to help for a nominal fee. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2020 Jan 08, 2020

I wish I had a budget to ask for help, but I don't. I am right now copying and pasting like you said but there's over 7000 lines which is just taking forever. I wish there some kind of script I could write to tell it to grap data with district number # and leave the others alone.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2020 Jan 08, 2020

Untested, on this indesignsecrets article, in the comments section (5th from bottom), David posts a link to a script that splits tables.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2020 Jan 08, 2020
LATEST

Thank you I'm gonna give it a try.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines