Need a suggestion on how to process XLS files
Hello.
I need to process XLS files: compare 2 files and add in the first one lines from the second one. If some columns are the same, I need to add just amount (summarize numbers) and if some columns in second file are not in the first one, I need to add them to first one.
I need a tool suggestion. First I thought it will be easily done with Python and I prefer Python but after some search I'm not so sure anymore... Seems like Python won't do it smoothly as from here it looks rather foggy how to do it.
Please suggest something. XLS files contain tabs and I need to be able to read/write/modify inside of different tabs.
graysky wrote:If this is a one-off
It's not and those documents will have several thousand items each. So even one time I couldn't do it manually. Plus I'll have to do it weekly. Probably even more than once a week.
The idea is this.
Suppose we have "1.xls" with contects:
+----+-------------+-----------+
| ID | Name | Amount |
+----+-------------+-----------+
| 1 | apple | 2 |
| 2 | potato | 3 |
| 3 | cherry | 10 |
| 4 | water-melon | 1 |
+----+-------------+-----------+
Then we have "2.xls":
+----+-------------+-----------+
| ID | Name | Amount |
+----+-------------+-----------+
| 4 | water-melon | 1 |
| 5 | pumpkin | 1 |
+----+-------------+-----------+
And the script must sum them up basing on ID so the result must look like:
+----+-------------+-----------+
| ID | Name | Amount |
+----+-------------+-----------+
| 1 | apple | 2 |
| 2 | potato | 3 |
| 3 | cherry | 10 |
| 4 | water-melon | 2 |
| 5 | pumpkin | 1 |
+----+-------------+-----------+
We had 1 new element with ID 5 and it's now at the bottom. And we had 1 similar, with ID 4 — they were summed up to amount == 2.
All this is xls and with tabs.
Can I do it with php? “R” is just too new to me at the moment and this job will need to be done soon.
Last edited by Mr. Alex (2013-04-03 18:19:39)
Similar Messages
-
I used a partitioned HDD for time machine, using a partition already containing other data files. I am now no longer able to view that partition in Finder. Disk Utility shows it in grey and "not mounted". Any suggestions of how to access the files? Does using time machine mean that that partition is no longer able to be used as it used to be?
HDD is a Toshiba 1TB, partitioned into two 500GB partitions.
OS X version 10.9.2Yes, sharing a TM disk is a bad idea, and disks are cheap enough so that you don't need to.
Now
Have you tried to repair the disk yet -
How to process a file with out any CSV, Delimitaor, fixed length or Copybok
Hi Team,
i need to process below file in OSB and need to send mails to the concerns ids...
this file will have either 1 mail or multiple mails.
sample.txt file with 1 mail content
======================================
START
[email protected]
[email protected], [email protected],
END
Subject : CAL IND Renege #00424523 Hse580 CTH580
BODY:
User_ID: LARRY014
XXX Hse/Customer # : 580/1196310
X12 Order Number: 580094624
Customer E-Mail: [email protected]
Customer E-Mail 2: [email protected]
Customer Phone : 909312345
Dear Salesperson,
mysupply.com Order # : 00424523
mysupply.com User ID : LARRY014
Customer CALIFORNIA STEEL IND has entered order 00424523
through mysupply.com.
THIS ORDER HAS RENEGED for the following reason(S):
I. ORDER LEVEL
NOTE SEGMENTS FOUND IN INPUT - SENTRY
CDF REQUIRED CUSTOMER - ORDER RENEGED
II. ITEM/LINE LEVEL
LINE # ECOM LINE NAED QTY STATUS ALLOW SUBS
Please resolve the renege and release the order in Sentry
01 as soon as possible. Thank you.
EMAIL-END
====================================
Please help me ,how to process this file and send mail to the concern people, as its do not have neither CSV, nor Fixed lengthn or its not Cobol copybook nor its not DTD to convert it.
Thanks
Reddy
Edited by: KiranReddy on Feb 3, 2012 9:52 PMyou shouldn't need a csv if you want a fixed file you need some thing like
read:
<xsd:element name="C1" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1" nxsd:paddedBy=" " nxsd:padStyle="tail" />
<xsd:element name="C2" type="xsd:string" nxsd:style="fixedLength" nxsd:length="xx" nxsd:paddedBy=" " nxsd:padStyle="tail" />
write:
<xsd:element name="C1" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1" nxsd:paddedBy=" " nxsd:padStyle="tail" />
<xsd:element name="C2" type="xsd:string" nxsd:style="fixedLength" nxsd:length="xx" nxsd:paddedBy=" " nxsd:padStyle="tail" />
<xsd:element name="C3" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5" nxsd:paddedBy=" " nxsd:padStyle="tail" />xx stands for the length of your line
hope this makes sense
cheers
James -
How to process pdf file in clower ETL
Hi,
I want process pdf document in clower ETL dataintegartor. I have created sample project and created ETL garph universal data reader, data i have imported pdf file, while openning the metta data information it's show encoding data format and invalid delimiter and while running error in the console
Please assist me how to process pdf file with unstructured data format.
I am getting below the error,
ERROR [WatchDog] - Graph execution finished with error
ERROR [WatchDog] - Node DATA_READER0 finished with status: ERROR caused by: Parsing error: Unexpected record delimiter, probably record has too few fields. in field # 1 of record # 2, value: '<Raw record data is not available, please turn on verbose mode.>'
ERROR [WatchDog] - Node DATA_READER0 error details:
org.jetel.exception.BadDataFormatException: Parsing error: Unexpected record delimiter, probably record has too few fields. in field # 1 of record # 2, value: '<Raw record data is not available, please turn on verbose mode.>'
at org.jetel.data.parser.DataParser.parsingErrorFound(DataParser.java:527)
at org.jetel.data.parser.DataParser.parseNext(DataParser.java:437)
at org.jetel.data.parser.DataParser.getNext(DataParser.java:168)
at org.jetel.util.MultiFileReader.getNext(MultiFileReader.java:415)
at org.jetel.component.DataReader.execute(DataReader.java:261)
at org.jetel.graph.Node.run(Node.java:425)
at java.lang.Thread.run(Thread.java:619)
please can any one help me.
Thanks
Rajini C
Edited by: 954486 on Sep 19, 2012 11:19 PMThere is a separate forum for the BI/Information Discovery application of Endeca software: Endeca Information Discovery You should post your message there.
Thanks.
Sean -
How to repair xls file? Microsoft Excel report me what file is not Excel format.
When an Excel file is corrupted, then you can try several methods to recover it:
1. First of all, you can try to repair the file manually in Excel, as follows:
(1) On the File menu, click Open.
(2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
(3) Click Open and Repair, and then choose which method you want to use to recover your workbook.
You may find more information about this at:
http://office.microsoft.com/en-us/excel-help/repairing-corrupted-files-in-excel-HA001034656.aspx (for Excel 2003)
http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010097017.aspx?CTT=1 (for Excel 2007)
http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010342840.aspx?CTT=1 (for Excel 2010)
http://office.microsoft.com/en-us/excel-help/repair-a-corrupted-workbook-HA102749554.aspx?CTT=1 (for Excel 2013)
2. Second, since Excel 2003, it provides a "Document Recovery" mechanism so that when Excel is shutdown abnormally, the Excel file being edited will be recovered when Excel is launched next time, which makes the file recovery possible.
See below:
http://office.microsoft.com/en-us/excel-help/recover-your-office-files-HP010354299.aspx?CTT=1
for more detailed information.
3. If 1 and 2 does not work, then you may try third-party tools such as DataNumen Excel Repair at
http://www.datanumen.com/excel-repair/
It provides a free demo version so that you can try to see if the data you want can be recovered or not.
Good luck! -
How convert pdf,xls file format into swf
Hi friends
i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
Thanks And Regards
Vineet OshoQuickTime cannot do this of iteslf: you need to add Flip4Mac:
http://www.telestream.net/flip4mac-wmv/overview.htm -
How to open XLS file without Authentication
Hi All,
We are using SRM and we use SAP EP for accessing the SRM Screens. When we are creating a shopping cart there is a option for uploading files and we upload xls file there. The issue we are facing here is whenwe view the shopping cart, there is a link for the uploaded XLS file. When we click on this file the portal ask for user id and password, when we click on the cancel button the xls file gets opened. But whereas the userid and password screen is not appearing for the word document.
Is there any settings which needs to be done for bypass the userid, password screen to open the xls file.
Thanks and Regards,
Saravanan
Edited by: Saravanan Sugumar on Aug 1, 2011 12:45 PMI think the only way you're going to be able to do this in
Flex is to process the file on the server side using something like
the Perl Win32::OLE module to open the file from a Perl script, and
access the data, place it in an XML structure, and deliver it to
Flex, all via HTTPService.
Here is a little sample code to get you started: -
How to save .xls file through portal
Currently i have a .xls file uploaded in my oracle portal. The idea is to enable all user to read only the .xls file and to enable only authorized user to read-write and save the changes made to the .xls file. How am i able to do this? Please give me a step-by-step solution since I'm very new to oracle portal 10g.
TQ
Edited by: user10869241 on Jan 28, 2009 4:44 PMIf the Excel spreadsheet is published as a File Item, grant Manage access on the item (requires Item Level Access to be enabled on the page) to the authorized user (or group) that makes the updates to the spreadsheet so that s/he can upload the updated spreadsheet whenever needed. Then just grant View access on that same file item to the group(s) or individual(s) that just need to view the spreadsheet. They'll still be able to save off the spreadsheet to their pc, so utilize the protection settings in Excel, if needed.
-
How to import xls file to BPA11gR1
I got business flow from customer,one xml and one xls file.
I imported xml file as following:
New a database.
Run BPA(11gR1) and open above database.
Right-click on the group and select Evaluate/Start macro. The Macro Wizard opens.
Select the "Import Process Generator table (XML)" macro in the Macros field and click on Next.
Specify the output settings.
Click on Finish. The Open dialog opens.
Select the XML file and click on Open. The data is imported.
I can not found ProcessGenerator import(EXCEL)" in the macro filed.
so that I try to import xls file with above method,however I do not see any result.
I would like to know if any of you could help me,thanks.
Edited by: user780419 on Mar 5, 2012 9:02 PM
Edited by: user780419 on Mar 5, 2012 9:14 PMstep1:save the xls file as .csv format to your oracle dir path.
step2:create external table using below command
CREATE TABLE EXT_TABLE(+col1 datatype,col2 datatype.....+)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER DEFAULT DIRECTORY directoryname
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
MISSING FIELD VALUES ARE NULL
LOCATION('+filename.CSV+')
REJECT LIMIT 0; -
How to Process flat File in Oracle Apps through Concurrent Program
Hello Everyone,
My client has a request, to process a bank file (Lockbox) which is a flat file that will be copied on UNIX box and I will have to create a new concurrent request that will process this flat file and will update receipt information in Oracle Apps database tables.
Could you please suggest, if there are any other standard Oracle Apps functions (Example FND) available which can be used through Concurrent program that can be used to open a file from a particular directory and can be read from the flat file and after processing this file can be closed.
Please let me know, if you have a small example, that would help me a lot.
ThanksThere are base concurrent programs in Accts Receivable that do consume lockbox flat files. Pl see the AR Setup/User Guides at
http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
Srini -
How to repair xls file? Microsoft Excel report me what file is not Excel format.
I need help again(( i have .xls file that cannot be opened by Excel. It reports that this file is not excel format. Can i recover it?
When an Excel file is corrupted, then you can try several methods to recover it:
1. First of all, you can try to repair the file manually in Excel, as follows:
(1) On the File menu, click Open.
(2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
(3) Click Open and Repair, and then choose which method you want to use to recover your workbook.
You may find more information about this at:
http://office.microsoft.com/en-us/excel-help/repairing-corrupted-files-in-excel-HA001034656.aspx (for Excel 2003)
http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010097017.aspx?CTT=1 (for Excel 2007)
http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010342840.aspx?CTT=1 (for Excel 2010)
http://office.microsoft.com/en-us/excel-help/repair-a-corrupted-workbook-HA102749554.aspx?CTT=1 (for Excel 2013)
2. Second, since Excel 2003, it provides a "Document Recovery" mechanism so that when Excel is shutdown abnormally, the Excel file being edited will be recovered when Excel is launched next time, which makes the file recovery possible.
See below:
http://office.microsoft.com/en-us/excel-help/recover-your-office-files-HP010354299.aspx?CTT=1
for more detailed information.
3. If 1 and 2 does not work, then you may try third-party tools such as DataNumen Excel Repair at
http://www.datanumen.com/excel-repair/
It provides a free demo version so that you can try to see if the data you want can be recovered or not.
Good luck! -
How to convert xls files into xml
hi all,
please tell me how to convert the xls files into xmlHey Sayee,
This gives you step by step procedure to start up
saptechnical com/Tutorials/XI/Adapter/Index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
Regards
Pothana -
How to generate .xls file on a button click in Forms 10g
Hi
I am using forms 10g.
On a button click I want to generate a .csv or .xls file (data in these file should be fetched form database).
Could you please tell me how can I do this?
RegardsHello 576726,
where do you want to store the file?
On the client? If it uses Windows as OS and has Excel installed you can use CLIENT_OLE2, otherwise you can write files using CLIENT_TEXT_IO.
On the server? You can use utl_file or a package that allowes to write formatted/multiple worksheets like
https://xml-spreadsheet.samplecode.oracle.com/ or
https://exceldocumenttype.samplecode.oracle.com/
Another solution by Friedhold Matz is linked at Re: Gride in Oracle Formns 6i
Regards
Marcus
Edited by: Marwim on 17.11.2010 07:18 -
How to read .xls file from FTP server t oInternal table
Hi
am using the FTP_SERVER_TO_R3 to read xls file from FTP server to internal table
but the data i get in LT_TEXT is special characters.
CALL FUNCTION 'FTP_SERVER_TO_R3'
EXPORTING
handle = hdl
fname = f_name "ProdDataFromCRM.xls.
* CHARACTER_MODE = 'X'
* IMPORTING
* BLOB_LENGTH =
TABLES
BLOB = lt_text
* TEXT = lt_text
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4
can any one help me out to get the exact data..
Really appreciate your quick response..
Thank YouHi, if you really retrieve an excel file, you can not see the data in ABAP. You may see them in Excel. For this you may use
CALL METHOD document->open_document_from_table
of the interface i_oi_document_proxy for OLE objects. You can access the data with reference to the interface i_oi_spreadsheet.
Please check [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf] for details.
But, who knows, perhaps you want "And Now For Something Completely Different".
Regards
Clemens -
How to open xls files in Mountain Lion
I upgraded to Mountain Lion and now cannot open xls files. xlsx files open fine. Is there a way to convert the xls files?
I think I have the same issue. I had xls associated with Openoffice but after upgrading xls opens with Preview. I tried to change it using CMD+I but when I select Openoffice it returns to Preview.... And yes I also tried to change the extention into xlsx but that also didn't solve the issue
Maybe you are looking for
-
"created by" in SAP transactions and CE BPM
Dear all, In most of the transaction e.g. create Purchase Order - "created by" is field available in BAPI. In case of Investment approval processes "created by" is popultaed by the ID assigned to logical destination "BASIC" authorisation. How is this
-
Image Meta Data in the PSE 10 Organizer
Is is possible to get image meta data from an photo in the PSE 10 organizer or the full edit histogram? I thought is was but can't find where to check that option in the organizer. Otherwise, I have to write the image numbers down and put the card
-
After running the download i get a mesage error from windows
I get a message from windows saying i have to verify this program? i just downloaded other things and it worked? what is going wrong?
-
My mouse cursor disappears and does not come back when the mouse is moved.
Ocassionally my cursor disappears, usually when the display has gone to sleep. The mouse is still working because I can "mouse over" places on the screen, they are highlighted, and click on items, but there is no cursor. Fortunately, I can usually
-
How to save data in oracle9i in binary form and how to retrieve it
Hello, Kindly tell me how can i save my data in binary form(UTF8) in oracle9i through developer6i Forms and how to retrieve it. Kindly tell me step by step procedure. Regards, Shahzaib