Mod Function

L

Lizz45ie

The Mod function returns #Num! error value. Here is my formula:

=MOD(H3*100,2)>0.5

The above formula is used in my net value column. If the Net value is above
$3 million I get the #Num! error.
 
L

Lizz45ie

I modified by formula from the suggestion: I got a Run Time error '5':
Invalid procedure call argument. "=MOD(MOD(H3,134217728*100,2))"
 
L

Lizz45ie

Thanks for your suggestion. It didn't work.

smartin said:
If you were following this work-around:
=MOD(MOD(number,134217728*divisor),divisor)

then your formula should look like
=MOD(MOD(H3*100,134217728*2),2)
 
L

Lizz45ie

I have four columns in a Excel 20007 macro that uses Visual Basic. The
columns should sum in the Net value column of the report with a value of
3,304,384. Here is the formula a I put in my macro:
"=MOD(MOD(H3*100,134217728*2),2)"

Instead of the formula summing the values I get #NUM! in the Net value.
 
G

Glenn

Lizz45ie said:
The Mod function returns #Num! error value. Here is my formula:

=MOD(H3*100,2)>0.5

The above formula is used in my net value column. If the Net value is above
$3 million I get the #Num! error.


You could eliminate the MOD() function:

=((H3-INT(H3*50)/50)*100)>0.5
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top