From: sony654 on
The below function returns a #value! error. I would like the below function
to return "-" only if every cell in the range is empty. Help is appreciated
writing this.

=IF(B56:af56="","-",AVERAGE(B56:AF56))


--
Sony Luvy
From: T. Valko on
Try this:

=IF(COUNT(B56:AF56),AVERAGE(B56:AF56),"-")


--
Biff
Microsoft Excel MVP


"sony654" <sony654(a)discussions.microsoft.com> wrote in message
news:B7313BBB-0425-438E-96CA-57DAC419DBE8(a)microsoft.com...
> The below function returns a #value! error. I would like the below
> function
> to return "-" only if every cell in the range is empty. Help is
> appreciated
> writing this.
>
> =IF(B56:af56="","-",AVERAGE(B56:AF56))
>
>
> --
> Sony Luvy


From: sony654 on
Biff, Thanks again, this worked great - Tom
--
Sony Luvy


"T. Valko" wrote:

> Try this:
>
> =IF(COUNT(B56:AF56),AVERAGE(B56:AF56),"-")
>
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "sony654" <sony654(a)discussions.microsoft.com> wrote in message
> news:B7313BBB-0425-438E-96CA-57DAC419DBE8(a)microsoft.com...
> > The below function returns a #value! error. I would like the below
> > function
> > to return "-" only if every cell in the range is empty. Help is
> > appreciated
> > writing this.
> >
> > =IF(B56:af56="","-",AVERAGE(B56:AF56))
> >
> >
> > --
> > Sony Luvy
>
>
>
From: T. Valko on
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"sony654" <sony654(a)discussions.microsoft.com> wrote in message
news:D233216E-9BD9-4DFE-AEC2-FB254FECA186(a)microsoft.com...
> Biff, Thanks again, this worked great - Tom
> --
> Sony Luvy
>
>
> "T. Valko" wrote:
>
>> Try this:
>>
>> =IF(COUNT(B56:AF56),AVERAGE(B56:AF56),"-")
>>
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "sony654" <sony654(a)discussions.microsoft.com> wrote in message
>> news:B7313BBB-0425-438E-96CA-57DAC419DBE8(a)microsoft.com...
>> > The below function returns a #value! error. I would like the below
>> > function
>> > to return "-" only if every cell in the range is empty. Help is
>> > appreciated
>> > writing this.
>> >
>> > =IF(B56:af56="","-",AVERAGE(B56:AF56))
>> >
>> >
>> > --
>> > Sony Luvy
>>
>>
>>