simak29 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Perl Monks,
I've been playing around with Spreadsheet::ParseExcel and have had success extracting info from a vertical table. I am now looking at extracting info from a horizontal table which is not completely bound. So was hoping someone here has some advice for me:
My scenario is:
I have an excel spreadsheet with 3 sheets. Sheet1,Salary has the below:
Name, Salary in columns B & C. Extending 10 rows.
Name, Mon-DD Monica 104,000 Meredith 110,000 Brian 92,000 Madeline 112,0000 Averie 140,0000
The above is pretty straightforward to extract
The same spreadsheet has the below data
Col E through J Row 6 Col E ColF ColG ColH ColI Col J Row 7 Monica Meredith Brian Madeline Averie Row 8 104,000 110,000 92,000 112,000 140,000 Row9 Row 10 Salary 100,000 105,000 85,000 110,000 125,000 Row 11 Salary% 75% 71% 80% 81% 69% Row 12 Row 13 Bonus 4,000 5,000 7,000 2,000 15,000 Row 14 Bonus% 10% 20% 10% 2% 14%
Now my questions, what is the best way I can parse this data using SpreadSheet::ParseExcel and store the results in a table of the below structure. How do I make sure that the Salary, Salary%, Bonus, Bonus% are tying to the same name?
Name Total_Salary Salary Salary% Bonus Bonus% Monica Meredith Brian Madeline Averie
I'm hoping to do this without using any VBA or Excel specific tools. Any guidance using this library will be greatly appreciated. I apologize in advance if the formatting seems off or if the question itself sounds vague. Thanks for your help in advance
Regards, Simak
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing horizontal table in Excel & loading it into a database
by ww (Archbishop) on Jun 10, 2015 at 03:25 UTC | |
|
Re: Parsing horizontal table in Excel & loading it into a database
by marinersk (Priest) on Jun 10, 2015 at 03:39 UTC | |
|
Re: Parsing horizontal table in Excel & loading it into a database
by locked_user sundialsvc4 (Abbot) on Jun 10, 2015 at 13:41 UTC | |
by marinersk (Priest) on Jun 10, 2015 at 17:39 UTC |