I want to insert a new column in between the existing columns of the excel which is in .xls format using Java retaining the existing format. Is there any api to do so?
You can use the Apache POI library to modify an Excel file.
Quick Guide: https://poi.apache.org/components/spreadsheet/quick-guide.html
You'll want to:
Workbook
.Sheet
.Workbook
back to an Excel file.