Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

Solved: #value! error in Excel but not in Open Office


(!)

energizamx's Avatar
energizamx energizamx is offline energizamx has a Profile Picture
Computer Specs
Junior Member with 2 posts.
THREAD STARTER
 
Join Date: Jun 2009
26-Jun-2009, 07:19 PM #1
Solved: #value! error in Excel but not in Open Office
Hi, I'm using a Perl package (WriteExcel) to produce spreadsheets in XLS. It works very nice, though this is the situation.

One uses $workbook->write() [in Perl] to write things on the spreadsheets, so I write =VLOOKUP(B2,D5:E10,2), then with the same write() I fill the range with some values, also fill B2 with the searched value and that's all. It's a small 6KB XLS file

  • When I open the file in Open Office-Calc (like excel), it shows all correctly
  • If I open the same file in excel, there is a #value! error where the =VLOOKUP.. is.
  • If I F2+Enter at the cell where VLOOKUP is, the error disappears.
  • If I send -when filling out the XLS file with $workbook->write()- =VLOOKUP(B2&"",D5:E10,2) the error persits as well as if i replace the column number (2) by 1+1 or value(2).
  • If I open and save that file in Open Office and open it in Excel, the error disappears. The thing is I can not rely on this because the XLS file is supposed to be produced on the fly, downloaded from a web site by the user, to finally be opened in either Open Office or Excel.
What could be the reason for the error? The formula just looks the same before and after F2+Enter, It seems of course that Excel "feels" some value is in the wrong format, but so far no luck in putting the values in the expected format. Thanks for the help.

Sample file is at http://energiash.com/samples/ under name "cuanti--ello.xls"

Last edited by energizamx; 26-Jun-2009 at 07:46 PM.. Reason: Adding attachment info
energizamx's Avatar
energizamx energizamx is offline energizamx has a Profile Picture
Computer Specs
Junior Member with 2 posts.
THREAD STARTER
 
Join Date: Jun 2009
27-Jun-2009, 02:45 PM #2
I tried also sending the matrix first and then the other data, ending with the formula. It did not work either.

What did worked was to switch to a similar PHP library by Johann Hanne which is based (most likely debugged also) on the John McNamara's Perl module Spreadsheet::WriteExcel (http://www.bettina-attack.de/jonny/v...hp_writeexcel/).

No "#value!" error is produced for the vlookup function.

Thanks for viewing and for best intentions in helping.

Regards

Last edited by energizamx; 27-Jun-2009 at 02:47 PM.. Reason: correction
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2