How to validate data of excel


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to validate data of excel
# 1  
Old 12-29-2011
How to validate data of excel

I have a software which generates excel report with some specific data. The excel file format is .xls (old 2003 format)
The data are in the forms like differenct cells contains numeric, string and alphanumeric data.
The data per cell for specific input data is fixed.
I need to retrive specific cell data using shell or perl script.
Any one have any such script available or help me create one if has the idea about?
# 2  
Old 12-29-2011
So, you are genearting the xls in windows and wants to validate in unix?
Does your xls contain multiple sheets or a sheet?
# 3  
Old 12-29-2011
ya its generated in windows and I have to create a script or module to verify it. It contain single sheet but this sheet is produced by implementing formulae.
# 4  
Old 12-29-2011
ok.Please post the result of
Code:
sed '10q' xls_filename

and explain what you want to validate in that.
# 5  
Old 12-29-2011
after doing sed '10q' asd.xls I'm getting :
ࡱ; `\p Ba=
Ӻ
ThisWorkbook=hKL,8>@"1A_ia+1A_ia+1A_ia+1A_ia+1A_ia+1 A_ia+1A_ia+1A_ia+1 A_ia+1 A_ia+1A_ia+15A_ia+15A_ia+1
A_ia+1
A_ia+1
A_ia+1 A_ia+"$"#,##0_);\("$"#,##0\)!"$"#,##0_);[Red]\("$"#,##0\)""$"#,##0.00_);\("$"#,##0.00\)""$"#,##0.00_);[Red]\("$"#,##0.00\)7*2_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_).))_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)?,:_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)6+1_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_) + ) , *
X
X
X
X |@ @ 8 | h@ @ h@ @ h!@ @ |!@ @ h!@ @ h!@ @ h!!@ @ H H |@ @ 8 |!@ @ 8 (@ @ 8@ @ 8!@ @ (!@ @ | | ( h""@ @ | @ h"@@
"| H,
H, "X, H
H
H H H
H H
H |@ @ (|@ @ `@ @ (@ @ !X, X l@ @ "<@ @ p@ @


I dont think its wat u thot..
I want to validate value at a particular (row,column)
ie there is a value 1000 at (48,5)
# 6  
Old 12-29-2011
it seems we are not able to view the content properly. if view it properly as like in windows,then we can proceed with the logic.
How you are doing the export from windows to unix?
# 7  
Old 12-29-2011
@PratLinux,

you need to use perl and use this module

Spreadsheet::WriteExcel - search.cpan.org
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash to verify and validate file header and data type

The below bash is a file validation check executed that will verify the correct header count of 10 and the correct data type in each field of the tab-delimited file. The key has the data type of each field in it. My real data has 58 headers in it but only the header and next row need to be... (6 Replies)
Discussion started by: cmccabe
6 Replies

2. Shell Programming and Scripting

Script to ingest a csv, validate data and insert into Oracle

Hi all i would appreciate your help... I am looking for a set of unix commands which i can use to 1) ingest a csv file with a known format 2) validate the filename 3) validate the data/datatypes 4) Insert into an oracle db Can you help get me started? yogz888 (1 Reply)
Discussion started by: yogz888
1 Replies

3. Shell Programming and Scripting

Script to generate Excel file or to SQL output data to Excel format/tabular format

Hi , i am generating some data by firing sql query with connecting to the database by my solaris box. The below one should be the header line of my excel ,here its coming in separate row. TO_CHAR(C. CURR_EMP_NO ---------- --------------- LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies

4. Shell Programming and Scripting

Summing up the data from different excel sheet into one excel sheet

Hi Folks, Can you please advise for any script in unix such that for example , i have 3 different excel sheet at the location /ppt/gfr/exc so the name s of the excel sheet are 1excel.xslx 2excel.xslx 3excel.xslx now in these 3 different excel sheet there is lot of data for example each... (3 Replies)
Discussion started by: punpun66
3 Replies

5. Shell Programming and Scripting

Need a ready Shell script to validate a high volume data file

Hi, I am looking for a ready shell script that can help in loading and validating a high volume (around 4 GB) .Dat file . The data in the file has to be validated at each of its column, like the data constraint on each of the data type on each of its 60 columns and also a few other constraints... (2 Replies)
Discussion started by: Guruprasad
2 Replies

6. Shell Programming and Scripting

how to validate data of excel using perl or shell

I have a software which generates excel report with some specific data. The excel file format is .xls (old 2003 format) The data are in the forms like differenct cells contains numeric, string and alphanumeric data. The data per cell for specific input data is fixed. I need to retrive specific... (5 Replies)
Discussion started by: PratLinux
5 Replies

7. UNIX for Dummies Questions & Answers

Data transfer to excel

i have two excel sheets with cpu uasge and memory usage in the follwing format: sheet 1: 22,33 sheet 2: 55,66 i need to display in the below format: servername cpu mem ser1 22 33 ser2 55 66 am using UNIX os. can anyone help me... (2 Replies)
Discussion started by: arunmanas
2 Replies

8. UNIX for Dummies Questions & Answers

Excel data manipulate

All, I have the following format of data in a spreadsheet A 1 2 3 4 B 1 2 3 4 where 'A' is value of 'A1', '1 2 3 4' is value of cell B1, 'B' is value of cell A2, and '1 2 3 4' is value of cell B2. There... (12 Replies)
Discussion started by: rahulrathod
12 Replies

9. UNIX for Advanced & Expert Users

how to read the data from an excel sheet and use those data as variable in the unix c

I have 3 columns in an excel sheet. c1 c2 c3 EIP_ACCOUNT SMALL_TS_01 select A.* from acc; All the above 3 col shoud be passed a variable in the unix code. 1.How to read an excel file 2.How to pass these data as variable to the unic script (1 Reply)
Discussion started by: Anne Grace
1 Replies

10. Shell Programming and Scripting

Better way to Validate column data in file.

I am trying to validate the third column in a pipe delimited file. The column must be 10 char long and all digits 0-9. I am writing out two new files from the existing file, if it would be quicker, I could leave the bad rows in the file and ignore them in the next process. What I have is... (12 Replies)
Discussion started by: barry1
12 Replies
Login or Register to Ask a Question