| [reply] |

Although I'm not entirely sure what you are trying to accomplish, as olus mentioned, you might want to use Spreadsheet::ParseExcel to read the files. However, you should look into Spreadsheet::WriteExcel if you want to generate an Excel formula and write out the Excel binary file format. However, please note that this module does not store results with the formula (in other words, it behaves as if autocalculate is off). | [reply] |

Hi sorry if it is a bot confusing, I have a script made in perl that generates a bunch of XLS files, but now I need to add some data on them but these data is store in another xls file call customs.xls, so I in excel create a formula using vlookup to get the data (just a customer number and the name of the customer) so I need to put the formula in the script and I just dont know how to do that add to a cell the formula and make the formula work.
this is the formula that I need to put in my script but I have no Idea on how to do it
`=VLOOKUP(A9,PATENTES.xls!$A$2:$C$82,2,FALSO)
`
| [reply] [d/l] |

Ah, I think I understand better now. You are getting the data from Excel files and you want to replicate the effect of `=VLOOKUP(A9,PATENTES.xls!$A$2:$C$82,2,FALSO)` on the data in a perl script. Rather than trying to sort out how `VLOOKUP` works on your worksheets, it would be much easier to help if you can post the perl code you are using to read the data, a small example of the data, and a description of the result you want. It seems like you may be able to read data into a hash using "customer number" as a key and the name as the value, but I'm just guessing at this point.
| [reply] [d/l] [select] |

Comment onHow to use a formula in perl