#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default average

In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default average

Try

=SUMPRODUCT(AVERAGE(INDIRECT({"D4","G4","J4","M4"} )))

If this post helps click Yes
---------------
Jacob Skaria


"dernspiker" wrote:

In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default average

This gives me a #div/0! reply....

"Jacob Skaria" wrote:

Try

=SUMPRODUCT(AVERAGE(INDIRECT({"D4","G4","J4","M4"} )))

If this post helps click Yes
---------------
Jacob Skaria


"dernspiker" wrote:

In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default average

They may or may not cotain N/A

Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default average

=IF(D4&G4&J4&M4="NANANANA"

Ooops!

I forgot to include the slash in the N/A string:

Change to:

=IF(D4&G4&J4&M4="N/AN/AN/AN/A"

Or:

=IF(D4&G4&J4&M4=REPT("N/A",4)


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
They may or may not cotain N/A


Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default average

I Caught that, and fixed it already...



"T. Valko" wrote:

=IF(D4&G4&J4&M4="NANANANA"


Ooops!

I forgot to include the slash in the N/A string:

Change to:

=IF(D4&G4&J4&M4="N/AN/AN/AN/A"

Or:

=IF(D4&G4&J4&M4=REPT("N/A",4)


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
They may or may not cotain N/A


Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default average

Good deal!

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
I Caught that, and fixed it already...



"T. Valko" wrote:

=IF(D4&G4&J4&M4="NANANANA"


Ooops!

I forgot to include the slash in the N/A string:

Change to:

=IF(D4&G4&J4&M4="N/AN/AN/AN/A"

Or:

=IF(D4&G4&J4&M4=REPT("N/A",4)


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
They may or may not cotain N/A

Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default average

Oh my GOSH!!! Thats it!!! Thank you sooooo much... I have been trying to
find this formula for quite a while.

THANKS!

"T. Valko" wrote:

They may or may not cotain N/A


Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default average

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
Oh my GOSH!!! Thats it!!! Thank you sooooo much... I have been trying
to
find this formula for quite a while.

THANKS!

"T. Valko" wrote:

They may or may not cotain N/A


Is that the TEXT string N/A or the Excel error value #N/A?

If it's the text string N/A try this:

=IF(D4&G4&J4&M4="NANANANA","NA",IF(COUNT(D4,G4,J4, M4),AVERAGE(D4,G4,J4,M4),""))

--
Biff
Microsoft Excel MVP


"dernspiker" wrote in message
...
In Cell N4 I need to average:

D4 G4 J4 M4

They may or may not cotain N/A

If they ALL contain N/A I need it to return and N/A

I will have more questions later today.

Thank you,
Dana






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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 12:33 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"