简体   繁体   中英

How to remove vlookup function but keep the value in pragmatically from perl spreadsheet

I am generating a xl file using perl spreadsheet, it contains 'vlookup' function for one column, the value which generated from the vlookup function is correct but I want to remove this formula and keep its value only,

How to do this?

I'm using

  • Excel 2007 SP2
  • Spreadsheet::WriteExcel: 2.40

=VLOOKUP is an Excel function. That is, Excel knows how to calculate its result. Perl doesn't.

If you want to replace the VLOOKUP function invocation in the Excel worksheet with a value calculated by your Perl program, you are going to have to write a Perl function VLOOKUP whose behavior matches exactly with Excel's VLOOKUP , and invoke it whenever you find a cell containing VLOOKUP .

On the other hand, if, instead of using Spreadsheet::WriteExcel , you use Win32::OLE , you could replace the cell with its value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM