calx.js icon indicating copy to clipboard operation
calx.js copied to clipboard

VLOOKUP does not work in IE

Open yavisht opened this issue 7 years ago • 10 comments

!ERROR is shown in IE when VLOOKUP is used. Is there a way to fix this?

yavisht avatar Aug 22 '16 07:08 yavisht

Hi @yavisht

which IE version, and what error do you get?

ikhsan017 avatar Aug 22 '16 10:08 ikhsan017

I tested it in IE 11.. If we have a VLOOKUP formula in data-formula the value shown is !ERROR .. works fine in chrome and firefox. I tested the vlookup sample html as well.. same issues.

yavisht avatar Aug 22 '16 11:08 yavisht

screen shot 2016-08-23 at 9 10 29 am

yavisht avatar Aug 22 '16 23:08 yavisht

Any ideas for a quick fix? Is it possible to set it to a javascript variable and display that? Or is just not able to do the lookup?

bwente avatar Feb 17 '17 18:02 bwente

I calculated figures in a hidden div and stole the values using jQuery using .value() as a workaround.

yavisht avatar Feb 20 '17 01:02 yavisht

That's fantastic. Could you post a link to see how it is done?

bwente avatar Feb 21 '17 01:02 bwente

Check the 2 examples. one with VLOOKUP and one without

custom-calc-example.zip

yavisht avatar Feb 21 '17 02:02 yavisht

Thanks so much for the examples. It now illustrates how much I need to get have VLOOKUP to work in IE.

Here is one of 80 rows I have to "convert".

<tr><td data-cell="F1" data-format="0.0000" data-formula="S1">S1</td><td data-cell="G1" data-formula="ABS(PMT(F1/12,360,J1))">G1</td><td data-cell="H1" data-formula="SUM(G1,L1,N1,O1)">H1</td><td data-cell="I1" data-format="0.00" data-formula="ROUNDUP(H1,-1)">260</td><td data-cell="J1" data-format="$0,0">25000</td><td data-cell="L1">58</td><td data-cell="N1">63</td><td data-cell="O1" data-formula="VLOOKUP(F1, P1:Q5, 2, TRUE)*J1/12">O1</td></tr>

bwente avatar Feb 21 '17 18:02 bwente

Sorry for late step in, I'll try to find the root cause of why it resulting error on IE (usually IE specific quirks)

ikhsan017 avatar Feb 22 '17 15:02 ikhsan017

Maybe I can use the SERVER function to call a PHP version of VLOOKUP?

bwente avatar Mar 03 '17 21:03 bwente