This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes #REF! error when trying to access cell of another Sheet in same workbook. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "#REF! error when trying to access cell of another Sheet in same workbook." Watch "#REF! error when trying to access cell of another Sheet in same workbook." New topic
Author

#REF! error when trying to access cell of another Sheet in same workbook.

Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
I am using POI 3.7 beta version. When I try to access a cell of another sheet of same workbook like '=Sheet2!B6' . In our code we do not do anything with this formula and let the excel itself handle it. We only do :

As it is required for POI version after 3.0. I have verified that this formula ie. '=Sheet2!B6' is working fine when I am using POI version 2.5. But this problem occurs with POI 3.6 and 3.7.
So do I need to do something explicitly so that #REF! error does not occur.Kindly help!!!
Thanks in advance.
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
One more point that I noticed just now is that the cell number B6 is automatically getting changed(ie.B26 or B36) to some other value that is not valid. in our code we do not touch this formulas. So it is happening automatically.
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Can someone kindly put some light on this.....Or let me know if need to provide more information.
salim chami
Greenhorn

Joined: Nov 16, 2012
Posts: 2
Hello
i have the same problem.
Have you found the solution ?

thank you.
Samir Banerjee
Ranch Hand

Joined: Jun 21, 2010
Posts: 72
Hi Salim,
This happened to me because the reference that the formula were doing got shifted from original position. So I had to recopy those cells to their original position.

~Samir
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: #REF! error when trying to access cell of another Sheet in same workbook.
 
Similar Threads
Creating excel with add-on Bloomberg function using POI
excel
Formula not rendered with POI 3.6
Copying a sheet from an excel file to another excel file using Apache POI
Duplicate PageSettingsBlock record (sid=0x89c) in POI API 3.6.