Problems with IF formula

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Sandra
Posts: 2
Joined: Thu Nov 30, 2006 11:33 am
Location: Scotland

Problems with IF formula

Post by Sandra »

I'm having problems with some formula which worked well with version 2.0 but are now behaving differently with 3.0. The following formula now doesn't work :

'IF(NStar>=100,((Ntwo-100)/nthree),((Nstar-Nzero)/None))'

but when I removed the = it worked ( it kept choosing the true option before ).

Can't suss this one out however :-

IF(((None*Ntwo)+(Nthree*Nzero))/(Nthree+None)>100,100,((None*Ntwo)+(Nthree*Nzero))/(Nthree+None))

When I export to excel, this works fine, but in my app, with Nzero=80, None=30, Ntwo=150 and Nthree=40, the answer I'm getting is 110, whereas it should be 100. This is quite critical as the effects of it are hidden and it's only by chance that we came across the incorrect data after doing some re-testing elsewhere.

Help would be much appreciated.

Sandra
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

I can't reproduce this. Have you downloaded the latest update of the component?


Lars Arvidsson
Post Reply