Hi Markkim,

I have checked that the answer of the formula =IF(A54=0,1,0) is 1
because A54 is blank in your sample sheet.

If I assume that you will have some value in A54, then the answer will
be 0 and then your below code is working fine :-

If range("A54") <> 0 then
............
Else
.........
End If

Please check if this helps and let us know if you are revisiting your
explanation.
--
Thanks & Regards,

DILIP KUMAR PANDEY, mvp
                     MBA,B.Com(Hons),BCA
Mobile: +91 9810929744
dilipan...@gmail.com
dilipan...@yahoo.com
New Delhi - 62, India



On Jul 14, 1:06 pm, Markkim <mark....@gmail.com> wrote:
> Hi
>
> I have an issue with suming up numbers..
>
> when I sum up, it shows as -1.776E-13   ... not as Zero.
>
> I know I can fix it by simply changing the format cell to number.
>
> But the issue is that excel doesn't think it is Zero.
>
> in the sample worksheet,  Range C54 contains a following formular
>
> =IF(A54=0,1,0)
>
> And the result is 0   meaning it thinks A54 is not zero.
>
> I need Excel to think it is zero otherwise the macro I'm writing will not
> work.
>
> How can I make Excel think it's Zero.? ..   because I need to write like
>
> If range("A54") <> 0 then
> ............
> Else
> .........
> End If
>
> Please help me!!
>
> Thanks
>
>  untitled.xls
> 18KViewDownload

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to