reading data from an excel sheet in perl [closed] - excel

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a hash of result messages. Each message has 4-5 different parameters. I want to match parameter values with the values stored in an excel sheet. If they match its pass or fail
Can you help me how to read from an excel sheet and match it line by line with my current message in hash.

The best way to read from an Excel file is using a CPAN module, like Spreadsheet::XLSX

If you are using MS Excel 2003 or earlier, you can use - ParseExcel
If you are using excel 2007 or higher (xlsx), then Spreadsheet::XLSX does the job.
If you want something very quick and simple try - Simple Its an easy to use wrapper around ParseExcel.

Related

In Perl, what is the efficient way to replace a String dynamically with something else? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a file containing many lines like
"resourcename" : "myfile.pdf",
I want to replace everywhere myfile.pdf with an URL like http://somedomain.com/myfile.pdf. But the file name keeps changing. So if myfile.pdf becomes yourfile.pdf, I want to replace it with http://somedomain.com/yourfile.pdf.
What is an efficient way to do global replacement(/g) without affecting the file's encoding like UTF-8?
Thanks

Adding cifres from left excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I have a sheet with some datas in D column. I need to extract the values that have less then 11 characters and adding from left many 0 untill reach 11 characters.. I explain with an example:
12345678912 --> this is correct
123456789 --> this is incorrect and has 9 characters so i need adding from left 2 zeros
result:
00123456789 --> now is correct
Is there a macro or a formula that could be useful for my goal? Thanks
Assuming the data is stored as numbers, you can simply use =TEXT(A1,"00000000000"). If it's stored as text then use =REPT("0",LEN(A1)-11))&A1

Java open source library to generate pivot table out of excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Given an excel file I want to generate a pivot table programmatically. I have heard of Aspose.Cells but it is paid version. Can someone suggest some open source libraries similar to Aspose.Cells or atleast any tutorial link where I can get some help to generate pivot table programmatically.
Please try https://github.com/jbaliuka/x4j-analytic, it is open source and it is designed for pivot reports with huge details sheet.
There are several other open source libraries to achieve the same thing but we developed this library to workaround performance issues, we use temp file to avoid unreasonable memory consumption and write XML to stream as raw bytes to avoid overhead caused by XML API.
See samples https://github.com/jbaliuka/x4j-analytic/blob/master/samples/src/test/java/x4j/samples/X4JEngineTest.java, it needs XLSX template, XML descriptor and several lines of code to implement basic pivot report.

Plotting Lines in Excel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I have data in the following format:
Variable - Value
A 1
B 2
A 3
B 4
and so on.
Notice how the variable is recurring for different values. I want to draw a line for each variable that shows its different values assuming the X-axis is time.
Please any help.
I would start off by creating a Pivot table based on the data that you have and then create the line graph from there.

Automate Excel to fetch data from web url [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
For example lets take imdb(movie rating) website -I have an excel sheet with 10K movie name in column A
I copy a name from sheet-
Search it in url (http://www.imdb.com/) in search box.-
Copy the result(rating / actors) & paste in the sheet at column B,C,D
Is there a way I can automate this process.
Note:the URL I have to use requires login id/password.
Excel can connect to web pages to get data. This can be utilized in your code with VBA, external .qry file, or using the 'get external data' interface. Check this link http://msdn.microsoft.com/en-us/library/aa203721(v=office.11).aspx

Resources