A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#value! Error



 
 
Thread Tools Display Modes
  #1  
Old July 4th, 2008, 05:43 AM posted to microsoft.public.excel.worksheet.functions
sony654
external usenet poster
 
Posts: 26
Default #value! Error

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
  #2  
Old July 4th, 2008, 06:00 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default #value! Error

Try this:

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


--
Biff
Microsoft Excel MVP


"sony654" wrote in message
...
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



  #3  
Old July 5th, 2008, 03:40 AM posted to microsoft.public.excel.worksheet.functions
sony654
external usenet poster
 
Posts: 26
Default #value! Error

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" wrote in message
...
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




  #4  
Old July 5th, 2008, 05:05 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default #value! Error

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"sony654" wrote in message
news
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" wrote in message
...
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






 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.