• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone kindly put some light on this.....Or let me know if need to provide more information.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
i have the same problem.
Have you found the solution ?

thank you.
 
Samir Banerjee
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
permaculture is largely about replacing oil with people. And one tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic