PC Review


Reply
 
 
Khalil Handal
Guest
Posts: n/a
 
      17th Feb 2007
Is there a VBA code to check all the sheets in a workbook so as to give an
empty cell (nothing seen in the cell) instead of the error values like
#DVD/0 (division over zero).

Khalil


 
Reply With Quote
 
 
 
 
Khalil Handal
Guest
Posts: n/a
 
      17th Feb 2007
My formula is:
=IF(COUNT(AVERAGE(Marks!T15:V15))="","",AVERAGE(Marks!T15:V15))
The range T15:V15 has either numeric values or average from other cell in
the sheet.

Khalil

"JE McGimpsey" <(E-Mail Removed)> wrote in message
news:jemcgimpsey-(E-Mail Removed)...
> If your formula is
>
> =A1/B1
>
> then use
>
> =IF(B1=0,"",A1/B1)
>
> In article <#(E-Mail Removed)>,
> "Khalil Handal" <(E-Mail Removed)> wrote:
>
>> Is there a VBA code to check all the sheets in a workbook so as to give
>> an
>> empty cell (nothing seen in the cell) instead of the error values like
>> #DVD/0 (division over zero).
>>
>> Khalil



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      17th Feb 2007
=IF(COUNT(AVERAGE(Marks!T15:V15))=0,"",AVERAGE(Marks!T15:V15))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Khalil Handal" <(E-Mail Removed)> wrote in message
news:%23M$(E-Mail Removed)...
> My formula is:
> =IF(COUNT(AVERAGE(Marks!T15:V15))="","",AVERAGE(Marks!T15:V15))
> The range T15:V15 has either numeric values or average from other cell in
> the sheet.
>
> Khalil
>
> "JE McGimpsey" <(E-Mail Removed)> wrote in message
> news:jemcgimpsey-(E-Mail Removed)...
>> If your formula is
>>
>> =A1/B1
>>
>> then use
>>
>> =IF(B1=0,"",A1/B1)
>>
>> In article <#(E-Mail Removed)>,
>> "Khalil Handal" <(E-Mail Removed)> wrote:
>>
>>> Is there a VBA code to check all the sheets in a workbook so as to give
>>> an
>>> empty cell (nothing seen in the cell) instead of the error values like
>>> #DVD/0 (division over zero).
>>>
>>> Khalil

>
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      17th Feb 2007
Or just count the numbers in the original range:

=IF(COUNT(Marks!T15:V15)=0,"",AVERAGE(Marks!T15:V15))

Khalil Handal wrote:
>
> My formula is:
> =IF(COUNT(AVERAGE(Marks!T15:V15))="","",AVERAGE(Marks!T15:V15))
> The range T15:V15 has either numeric values or average from other cell in
> the sheet.
>
> Khalil
>
> "JE McGimpsey" <(E-Mail Removed)> wrote in message
> news:jemcgimpsey-(E-Mail Removed)...
> > If your formula is
> >
> > =A1/B1
> >
> > then use
> >
> > =IF(B1=0,"",A1/B1)
> >
> > In article <#(E-Mail Removed)>,
> > "Khalil Handal" <(E-Mail Removed)> wrote:
> >
> >> Is there a VBA code to check all the sheets in a workbook so as to give
> >> an
> >> empty cell (nothing seen in the cell) instead of the error values like
> >> #DVD/0 (division over zero).
> >>
> >> Khalil


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.