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  

IF with #N/A



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2009, 04:50 PM posted to microsoft.public.excel.worksheet.functions
Rahim
external usenet poster
 
Posts: 11
Default IF with #N/A

I want to tell excel that IF A2 has "#N/A", AVERAGE (A1,A3), A2
but it don't work, any help is highly appreciated, thanks
  #2  
Old June 11th, 2009, 04:56 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default IF with #N/A

Try one of these:

This is an array formula** :

=AVERAGE(IF(ISNUMBER(A1:A3),A1:A3))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Or, this normally entered formula:

=SUMIF(A1:A3,"1E100")/COUNT(A1:A3)

--
Biff
Microsoft Excel MVP


"Rahim" wrote in message
...
I want to tell excel that IF A2 has "#N/A", AVERAGE (A1,A3), A2
but it don't work, any help is highly appreciated, thanks



  #3  
Old June 11th, 2009, 05:01 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default IF with #N/A

Handle that using ISNA() as below

=IF(ISNA(A2),AVERAGE(A1,A3),A2)

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


"Rahim" wrote:

I want to tell excel that IF A2 has "#N/A", AVERAGE (A1,A3), A2
but it don't work, any help is highly appreciated, thanks

  #4  
Old June 11th, 2009, 05:21 PM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default IF with #N/A

Hi,

You haven't told us what you want to do if A2 is not NA? One solution based
on your question as written is:

=IF(ISNA(A2),AVERAGE(A1,A3),"")


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

Cheers,
Shane Devenshire


"Rahim" wrote:

I want to tell excel that IF A2 has "#N/A", AVERAGE (A1,A3), A2
but it don't work, any help is highly appreciated, thanks

 




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:37 AM.


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