Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to use if statement for a #N/A cell


I have three cells A1 A2 and A3
In one or two of them there will be a value and in the third there will be a
"not available" value. Iwant a fourth cell which will read the maximum of the
two values, but should also take into account NA cell.
(max)
A1 A2 A3 A4
23 NA NA 23
24 36 NA 36
12 NA NA 12
14 24 12 24

  #2   Report Post  
Posted to microsoft.public.excel.misc
Cin Cin is offline
external usenet poster
 
Posts: 19
Default How to use if statement for a #N/A cell

This should work for you

=MAX(IF(ISERROR(A1),0,A1),IF(ISERROR(B1),0,B1),IF( ISERROR(C1),0,C1))

You need the ISERROR forumal to think N/A = 0

"noyau" wrote:


I have three cells A1 A2 and A3
In one or two of them there will be a value and in the third there will be a
"not available" value. Iwant a fourth cell which will read the maximum of the
two values, but should also take into account NA cell.
(max)
A1 A2 A3 A4
23 NA NA 23
24 36 NA 36
12 NA NA 12
14 24 12 24

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default How to use if statement for a #N/A cell

That is working, thank you.

"Cin" wrote:

This should work for you

=MAX(IF(ISERROR(A1),0,A1),IF(ISERROR(B1),0,B1),IF( ISERROR(C1),0,C1))

You need the ISERROR forumal to think N/A = 0

"noyau" wrote:


I have three cells A1 A2 and A3
In one or two of them there will be a value and in the third there will be a
"not available" value. Iwant a fourth cell which will read the maximum of the
two values, but should also take into account NA cell.
(max)
A1 A2 A3 A4
23 NA NA 23
24 36 NA 36
12 NA NA 12
14 24 12 24

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default How to use if statement for a #N/A cell

=MAX(IF(ISNA(A1:C1),"",A1:C1))

ctrl+shift+enter, not just enter


"noyau" wrote:


I have three cells A1 A2 and A3
In one or two of them there will be a value and in the third there will be a
"not available" value. Iwant a fourth cell which will read the maximum of the
two values, but should also take into account NA cell.
(max)
A1 A2 A3 A4
23 NA NA 23
24 36 NA 36
12 NA NA 12
14 24 12 24

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
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Need help with an embedded IF statement Lari Excel Worksheet Functions 8 June 17th 06 04:59 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM


All times are GMT +1. The time now is 02:40 PM.

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

About Us

"It's about Microsoft Excel"