Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

java codes for uploading excel datas and comparing variance of the names and there grand total

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want tutorial on writing a java application that can upload two different excel data file ".xls"' compare the name column and the amount column to give variance in the two.

Format:

SN. NAME. RANK AMOUNT
1. John C. 7/2. 1,000,000.00


Thanks
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use plug-in :poi.jar
 
Buraimoh Abolore
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I use plugin poi.jar? please direct me.
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Ranch is NotACodeMill so there is no point in expecting "codes"

What have you tried so far and where are you stuck?
Your requirement can roughly be broken into
1) Upload a file (Check out the File upload FAQ for options on how to achieve this https://coderanch.com/how-to/java/FileUpload)
2) Parsing the xls file (You can use poi as suggested by Li above, or JExcel
3) Compare the contents (You will need to write your own logic for this one)
 
Li Qiangqiang
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Buraimoh Abolore wrote:How do I use plugin poi.jar? please direct me.


it is a little not easy。 just google it .and learn it . my dear friend.
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!