Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6973265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:05:10+00:00 2026-05-27T17:05:10+00:00

XSSFWorkbook workbook07 = new XSSFWorkbook(xlname); XSSFSheet sheet1 = workbook07.getSheet(sheetname); CellReference cvalue = new CellReference(E11);

  • 0
XSSFWorkbook workbook07 = new XSSFWorkbook(xlname);                     
XSSFSheet sheet1 = workbook07.getSheet(sheetname);
CellReference cvalue = new CellReference("E11"); 
Row nrow = sheet1.getRow(cvalue.getRow());
Cell cell = (nrow.getCell(cvalue.getCol());

when am trying to get a date value of 1/9/2009 from a cell means, its returning it in some format like 1-oct-2009. i need to get the exact format of the date what ever in the cell, and print it as a output ..that means i need out put as 1/9/2009.

and i have to ask one more, using this if am trying to get a blankcell values its returning null.pointer exception ..
its returning exception while getting the values itself so i cont able to handle it

Cell cell = (nrow.getCell(cvalue.getCol());

so i can’t able handle it like this

if {cell.Cell_TYPE_}

can any one plz help me out..!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:05:10+00:00Added an answer on May 27, 2026 at 5:05 pm

    If you know the cell is really a Date cell (and not a String cell where someone has typed in a date by hand as a String), just call Cell.getDateCellValue() and you’ll get back a Java Date object

    You can also use DateUtil.isCellDateFormatted(cell) if you want to check if a cell is a date one or not (Excel doesn’t have a specific type for date cells, they’re just number cells with special formatting rules)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

InputStream inp = new FileInputStream(workbook.xls); HSSFWorkbook wb = new HSSFWorkbook(inp); String text=; Sheet sheet1
Here is what I'm doing : Create a workbook in memory (book = new
This part of my code was creating xls file successfuly FileOutputStream fileOut = new
right now whenever i call this function the value in B3 cell of excel
i'm getting a syntax error on row.createCell line Multiple markers at this line -
I'm looking for a cell in a spreadsheet that has the string 'Total' and
I'm very new in this blog and also in IT field. I've a problem
I'm using apache poi to create an excel document. To create new sheet in
Somehow I manage to create new rows between two rows in an existing excel
I'm using following lines to work with Office 2010 Excel file: XSSFWorkbook myWorkBook =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.