First of all, thank you in advance for looking at this question because I feel silly posting it because I have done thousands of If statements in excel and this time I have had an error that is bizarre to me.
The following is a copied from the spreadsheet.
=IF($B8="","",IF(OR((C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8<($AM$4-3*$AM$1),(C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8>($AM$4+3*$AM$1)),$AM$4,(C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8))
When I step through the statement through Evaluate Formula, I get the anticipated false statements for the first two conditions and the evaluated True statement is 1.61371126062468. The weird thing is as I continue to step through I get the following:
IF(FALSE,#N/A,IF(FALSE,#N/A,1.61371126062468))
Continuing
IF(FALSE,#N/A,1.61371126062468)
And finally
0
Why when I run the script would it be "0" instead of "1.61371126062468".
Thanks all!
The following is a copied from the spreadsheet.
=IF($B8="","",IF(OR((C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8<($AM$4-3*$AM$1),(C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8>($AM$4+3*$AM$1)),$AM$4,(C8-E8+(E8+D8-G8-F8)*(H8/I8)+(G8+F8)+AL8)/J8))
When I step through the statement through Evaluate Formula, I get the anticipated false statements for the first two conditions and the evaluated True statement is 1.61371126062468. The weird thing is as I continue to step through I get the following:
IF(FALSE,#N/A,IF(FALSE,#N/A,1.61371126062468))
Continuing
IF(FALSE,#N/A,1.61371126062468)
And finally
0
Why when I run the script would it be "0" instead of "1.61371126062468".
Thanks all!