Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
access audio black screen blue screen bsod connection crash desktop drivers dvd email error excel excel 2003 firefox google hard drive hardware hdmi hijackthis internet itunes keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router screen slow sound spyware tdlwsp.dll trojan vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: #value! error in Excel but not in Open Office

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
energizamx's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Jun 2009
26-Jun-2009, 08: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 08:46 PM. Reason: Adding attachment info
energizamx's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Jun 2009
27-Jun-2009, 03: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 03:47 PM. Reason: correction
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:35 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.