Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Combining ISNA and IF formulas

I am trying to write a formula that returns a value of blank if the contents
of field All Audit Compilation 1'!K3584 is either NA or P and the value of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank and true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P",,"1") which works fine on its own but do not know how to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Combining ISNA and IF formulas

Hi,

Try something like

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",'All Audit Compilation 1'!K3584)

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

Cheers,
Shane Devenshire


"ottodesque" wrote:

I am trying to write a formula that returns a value of blank if the contents
of field All Audit Compilation 1'!K3584 is either NA or P and the value of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank and true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P",,"1") which works fine on its own but do not know how to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Combining ISNA and IF formulas

Returns value NA

"Shane Devenshire" wrote:

Hi,

Try something like

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",'All Audit Compilation 1'!K3584)

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

Cheers,
Shane Devenshire


"ottodesque" wrote:

I am trying to write a formula that returns a value of blank if the contents
of field All Audit Compilation 1'!K3584 is either NA or P and the value of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank and true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P",,"1") which works fine on its own but do not know how to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Combining ISNA and IF formulas

That won't work. When the cell contains an error then the test for K3584="P"
returns the error and blows up the OR condition.

You have to first test for the error:

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P",'All Audit Compilation 1'!K3584,""))


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Try something like

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",'All Audit Compilation 1'!K3584)

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

Cheers,
Shane Devenshire


"ottodesque" wrote:

I am trying to write a formula that returns a value of blank if the
contents
of field All Audit Compilation 1'!K3584 is either NA or P and the value
of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank and
true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P","","1") which works fine on its own but do not know how to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Combining ISNA and IF formulas

I think we are getting closer. Here is what I have found.

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P","",1)) STILL COUNTS NA AS 1

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P",'All Audit Compilation 1'!K3584,"")) COUNTS P AS P AND DOES NOT
RETURN THE VALUE OF 1 FOR ALL CELL CONTENTS OTHER THAN P OR NA


"T. Valko" wrote:

That won't work. When the cell contains an error then the test for K3584="P"
returns the error and blows up the OR condition.

You have to first test for the error:

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P",'All Audit Compilation 1'!K3584,""))


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Try something like

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",'All Audit Compilation 1'!K3584)

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

Cheers,
Shane Devenshire


"ottodesque" wrote:

I am trying to write a formula that returns a value of blank if the
contents
of field All Audit Compilation 1'!K3584 is either NA or P and the value
of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank and
true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P","","1") which works fine on its own but do not know how to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Combining ISNA and IF formulas

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P","",1)) STILL COUNTS NA AS 1


Ok, we need to clarify something.

Are you wanting to test for the specific *ERROR* #N/A or the *TEXT* value
NA?

#N/A and NA are not the same. The ISNA function tests for the specific #N/A
error.

See if this is what you want. Testing for the *TEXT* value "NA" then you can
use OR:

=IF(OR('All Audit Compilation 1'!K3584={"NA","P"},"",1)

Note that an empty cell will return 1. Is that what you want? If not:

=IF(OR('All Audit Compilation 1'!K3584={"","NA","P"},"",1)

--
Biff
Microsoft Excel MVP


"ottodesque" wrote in message
...
I think we are getting closer. Here is what I have found.

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P","",1)) STILL COUNTS NA AS 1

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P",'All Audit Compilation 1'!K3584,"")) COUNTS P AS P AND DOES
NOT
RETURN THE VALUE OF 1 FOR ALL CELL CONTENTS OTHER THAN P OR NA


"T. Valko" wrote:

That won't work. When the cell contains an error then the test for
K3584="P"
returns the error and blows up the OR condition.

You have to first test for the error:

=IF(ISNA('All Audit Compilation 1'!K3584),"",IF('All Audit Compilation
1'!K3584="P",'All Audit Compilation 1'!K3584,""))


--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
Hi,

Try something like

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",'All Audit Compilation 1'!K3584)

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

Cheers,
Shane Devenshire


"ottodesque" wrote:

I am trying to write a formula that returns a value of blank if the
contents
of field All Audit Compilation 1'!K3584 is either NA or P and the
value
of 1
if it is not NA or P. I started with =IF(ISNA('All Audit Compilation
1'!K3584),"") but still get the value of false if the field is blank
and
true
if it contains NA. I have the formula IF('All Audit Compilation
1'!K3585="P","","1") which works fine on its own but do not know how
to
combine the two formulas and have =IF(ISNA('All Audit Compilation
1'!K3584),"") return a value other than true or false






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
combining formulas benny29 Excel Worksheet Functions 0 January 23rd 09 03:14 PM
combining formulas Rene Excel Discussion (Misc queries) 4 November 13th 08 12:13 AM
Help with combining 2 formulas Ilse Excel Discussion (Misc queries) 5 August 20th 07 05:05 PM
combining formulas Sherri Excel Discussion (Misc queries) 3 July 19th 06 10:29 PM
combining two formulas edwardpestian Excel Worksheet Functions 1 May 16th 06 02:36 AM


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