|
|
 |
| Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Java Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 5th, 2009, 02:56 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Compare two excel sheets row wise
Hi i am new to this forum...i want to compare two excel sheets row wise..here i want to take one row from first excel sheet and compare with all rows in another excel sheet.if any of the row from first sheet completely matches with any of the rows in second excel sheet then it shoud give report like yes or matching with this row like that in any one of the excel sheet...can anyone help me in this
thanks in advance.....
|

July 7th, 2009, 10:40 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
|
|
I am not aware of existing tools/code to do that. But if you are using apache POI and want to do it on your own, you can do like as follows
1. Extends HSSFRow class and override equals() method and implement your code to compare two rows. OR write a utility method in your existing class which take two HSSFRow object and compares two rows, returns true if they are equal else false.
2. Use HSSFSheet.rowIterator() to get the rows and loop through the rows of your document and call the equals() OR the utility method to compare
Hope it gives some start to solve your problem.
|

July 7th, 2009, 11:06 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thank you for the response...will try in that way
|

July 7th, 2009, 11:09 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
do i need any jar file for using poi
if in case i have to use where can i get that jar files?????
thanks in advance
|

July 7th, 2009, 11:11 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |