wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: #REF! error when trying to access cell of another Sheet in same workbook.