In my Excel sheet, I have the following formula:
=IF($F6=0,"",IF(I6=0,"",$F6/I6))
where F6=7000 and I6 is empty.
The Excel result is displaying no data for the formula. Now, I need to convert this formula into JavaScript.
function AB6(F6)
{
var AB6="";
if(F6==0)
{
AB6='data';
alert("Data: "+AB6);
}
if(I6==0)
{
AB6="";
AB6=F6/I6;
alert(AB6);
}
return AB6;
}
Is this the correct function in JavaScript for the formula mentioned above?