average

D

dernspiker

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
 
J

Jacob Skaria

Try

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

If this post helps click Yes
 
T

T. Valko

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),""))
 
T

T. Valko

=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)
 
D

dernspiker

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

THANKS!
 
D

dernspiker

I Caught that, and fixed it already...



T. Valko said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top