ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF with #N/A (https://www.excelbanter.com/excel-worksheet-functions/233582-if-n.html)

Rahim

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

T. Valko

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




Jacob Skaria

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


Shane Devenshire[_2_]

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



All times are GMT +1. The time now is 05:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com