Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Whats wrong with this function?

B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a number
in B45?

Thanks ^_^
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Whats wrong with this function?

Give this a try...

=IF(COUNTA(B34:D34)0, AVERAGE(B34:D34),"")

--
Rick (MVP - Excel)


"Angelsnecropolis" wrote in
message ...
B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even
though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a
number
in B45?

Thanks ^_^


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Whats wrong with this function?

I think that you mean

=IF(COUNT(B34:D34)0, AVERAGE(B34:D34),"")

or even

=IF(COUNT(B34:D34), AVERAGE(B34:D34),"")



--
__________________________________
HTH

Bob

"Rick Rothstein" wrote in message
...
Give this a try...

=IF(COUNTA(B34:D34)0, AVERAGE(B34:D34),"")

--
Rick (MVP - Excel)


"Angelsnecropolis" wrote in
message ...
B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even
though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a
number
in B45?

Thanks ^_^




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Whats wrong with this function?

Thanks for the help. That worked.

"Bob Phillips" wrote:

I think that you mean

=IF(COUNT(B34:D34)0, AVERAGE(B34:D34),"")

or even

=IF(COUNT(B34:D34), AVERAGE(B34:D34),"")



--
__________________________________
HTH

Bob

"Rick Rothstein" wrote in message
...
Give this a try...

=IF(COUNTA(B34:D34)0, AVERAGE(B34:D34),"")

--
Rick (MVP - Excel)


"Angelsnecropolis" wrote in
message ...
B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even
though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a
number
in B45?

Thanks ^_^





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Whats wrong with this function?

Thanks for the help!

"Rick Rothstein" wrote:

Give this a try...

=IF(COUNTA(B34:D34)0, AVERAGE(B34:D34),"")

--
Rick (MVP - Excel)


"Angelsnecropolis" wrote in
message ...
B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even
though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a
number
in B45?

Thanks ^_^





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Whats wrong with this function?

Hi,

If you are using 2007 try this

=IFERROR(AVERAGE(B34:D34),"")


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Angelsnecropolis" wrote:

B45 =IF(AVERAGE(B34:D340), AVERAGE(B34:D34),"")

It works fine when there is a number in B34 but if B34 is blank, even though
C34 and D34 are not blank, B45 is still blank.

How can I fix this so a number in any of the 3 fields will produce a number
in B45?

Thanks ^_^

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro - Whats wrong? NPell Excel Worksheet Functions 4 September 1st 08 10:51 AM
whats wrong with this? brownti via OfficeKB.com Excel Discussion (Misc queries) 10 February 12th 07 02:39 PM
whats wrong with my sorting? Trisha New Users to Excel 6 January 17th 06 11:03 AM
Whats wrong with this? LucasBuck Excel Discussion (Misc queries) 3 January 12th 06 08:15 PM
Whats Wrong with this?? drvortex Excel Worksheet Functions 1 October 30th 04 06:48 PM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"