#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default ISNA Help

Here is a formula that I have working (it is long with lots of IFs and
repeated many times in my spreadsheet):
=IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Remediate",1,IF(VLOOKUP($B10, '[Another
File.xls]R'!$B$2:$W$20,22,0)="Minimum",2,IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Superior",3,IF(VLOOKUP($B10,'[R1 Fitness
2007.xls]R'!$B$2:$W$20,9,0)="Opt - In","|",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,9,0)="Opt - Out","O",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,11,0)<"","M",""))))))

Two Questions:
[1] How would I wrap ISNA around this?
[2] Is there a simpler way of writing the formula?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default ISNA Help

You are looking up B10 in a table on ONE other file
(I assume "[R1 Fitness.xls" should be "AnotherFile.xls")
and returning 1,2,3, I or O
but you want to add: If B10 is not found return a blank

=IF(isna(VLOOKUP($B10,'[Another File.xls]R'!$B$2:$W$20,1,0)), "",
IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Remediate",1,IF(VLOOKUP($B10, '[Another
File.xls]R'!$B$2:$W$20,22,0)="Minimum",2,IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Superior",3,IF(VLOOKUP($B10,'[R1 Fitness
2007.xls]R'!$B$2:$W$20,9,0)="Opt - In","|",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,9,0)="Opt - Out","O",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,11,0)<"","M","")))))) )

I have added another ) at the very end of your formula.

Note that you have now reached the limit of 7 nestings (unless you are using
XL2007).
Could you use a 'helper' column - it could be hidden?

Note my solution is untested.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bigfoot17" wrote in message
...
Here is a formula that I have working (it is long with lots of IFs and
repeated many times in my spreadsheet):
=IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Remediate",1,IF(VLOOKUP($B10, '[Another
File.xls]R'!$B$2:$W$20,22,0)="Minimum",2,IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Superior",3,IF(VLOOKUP($B10,'[R1 Fitness
2007.xls]R'!$B$2:$W$20,9,0)="Opt - In","|",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,9,0)="Opt - Out","O",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,11,0)<"","M",""))))))

Two Questions:
[1] How would I wrap ISNA around this?
[2] Is there a simpler way of writing the formula?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default ISNA Help

Your assumption is correct, I did not change all fo the file name references
as I intended.

Your solution works as well. It is greatly appreciated!

I am using 2003 and am concerned that I at the limit for IF statements that
is why I was interested in another way of writing the formula.


"Bernard Liengme" wrote:

You are looking up B10 in a table on ONE other file
(I assume "[R1 Fitness.xls" should be "AnotherFile.xls")
and returning 1,2,3, I or O
but you want to add: If B10 is not found return a blank

=IF(isna(VLOOKUP($B10,'[Another File.xls]R'!$B$2:$W$20,1,0)), "",
IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Remediate",1,IF(VLOOKUP($B10, '[Another
File.xls]R'!$B$2:$W$20,22,0)="Minimum",2,IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Superior",3,IF(VLOOKUP($B10,'[R1 Fitness
2007.xls]R'!$B$2:$W$20,9,0)="Opt - In","|",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,9,0)="Opt - Out","O",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,11,0)<"","M","")))))) )

I have added another ) at the very end of your formula.

Note that you have now reached the limit of 7 nestings (unless you are using
XL2007).
Could you use a 'helper' column - it could be hidden?

Note my solution is untested.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bigfoot17" wrote in message
...
Here is a formula that I have working (it is long with lots of IFs and
repeated many times in my spreadsheet):
=IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Remediate",1,IF(VLOOKUP($B10, '[Another
File.xls]R'!$B$2:$W$20,22,0)="Minimum",2,IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,22,0)="Superior",3,IF(VLOOKUP($B10,'[R1 Fitness
2007.xls]R'!$B$2:$W$20,9,0)="Opt - In","|",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,9,0)="Opt - Out","O",IF(VLOOKUP($B10,'[Another
File.xls]R'!$B$2:$W$20,11,0)<"","M",""))))))

Two Questions:
[1] How would I wrap ISNA around this?
[2] Is there a simpler way of writing the formula?

Thanks.




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
ISNA help Matt Excel Worksheet Functions 1 October 14th 06 05:56 PM
Using ISNA with OR HBF Excel Worksheet Functions 4 May 1st 06 10:37 PM
How do I use ISNA on this formula amario Excel Worksheet Functions 5 September 1st 05 10:42 PM
ISNA Lomax Excel Worksheet Functions 4 July 24th 05 05:41 PM
example if IF(ISNA()) function Gus Excel Worksheet Functions 8 November 24th 04 05:27 PM


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