PHPExcel 1.8 VLOOKUP "#N/A" -


i have excel sheet , need print 1 cell contain vlookup screen in html table. have following code:

$test = $objphpexcel->getsheetbyname('test')->toarray(null,true,false,true); $cell = $test[1][b]; echo $cell; 

result always: #n/a

im using excel 2013, xlsx , xlsm extensions. if try other formula work fine. vlookup giving error me. can ?

i dont know if possible debugging, in own testing before found thread discovered have same problem when returning strings, can return integers fine.

some of code testing with:

$objphpexcel->getactivesheet()->setcellvalue('a150', '=vlookup(100,event!a30:b130,2,false)'); $test = $objphpexcel->getactivesheet()->getcell('a150')->getcalculatedvalue(); echo $test; 

in excel sheet columns , b both formatted 'general.' column list of integers in ascending order, , column b has mix of strings , integers. found when column b cell has integer in it, vlookup function works fine , returns value of column b cell. when column b cell has string in it, end #n/a


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -