Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Using ISNA on more than one column within an If Function

Hi All,

I'm trying to construct a formula that looks at the following section of data:

A B C D
#N/A less than 12mnths Not On List
12 to 18mnths #N/A 1

Essentially I want to show in Column D a value based on the following:
Where the value in column C shows anything other than "not On List" is
assigns "1"
If however, the value shown is Not On List then it needs to lookup the value
in Column A and return the corresponding value in the associated lookup table.

The catch comes when the value in Column A is #N/A...if that's the case it
should then look in Column B on the same basis as it looked in Column A.

Does any of that make sense...I hope so! I've tried the following...but have
got stuck.

=IF(ISNA(VLOOKUP(O5,'Ref Tables'!$K$3:$L$12,3,FALSE)),"1",VLOOKUP(M5,'Ref
Tables'!$K$3:$L$12,3,FALSE))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Using ISNA on more than one column within an If Function

Part A:
=IF(C1<"Not on list",1, VLOOKUP(A1,table,column,FALSE))

Part B
=IF(C1<"Not on list",1, IF(ISNA(VLOOKUP(A1,table,column,FALSE)),
VLOOKUP(B1,table,column,FALSE) ,VLOOKUP(A1,table,column,FALSE)) )

Neater formula if using Excel 2007
=IF(C1<"Not on list",1, IFERROR(VLOOKUP(A1,table,column,FALSE),
VLOOKUP(B1,table,column,FALSE) ))

best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP


"Lyons550" wrote in message
...
Hi All,

I'm trying to construct a formula that looks at the following section of
data:

A B C D
#N/A less than 12mnths Not On List
12 to 18mnths #N/A 1

Essentially I want to show in Column D a value based on the following:
Where the value in column C shows anything other than "not On List" is
assigns "1"
If however, the value shown is Not On List then it needs to lookup the
value
in Column A and return the corresponding value in the associated lookup
table.

The catch comes when the value in Column A is #N/A...if that's the case it
should then look in Column B on the same basis as it looked in Column A.

Does any of that make sense...I hope so! I've tried the following...but
have
got stuck.

=IF(ISNA(VLOOKUP(O5,'Ref Tables'!$K$3:$L$12,3,FALSE)),"1",VLOOKUP(M5,'Ref
Tables'!$K$3:$L$12,3,FALSE))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Using ISNA on more than one column within an If Function

Try this:

=IF(C2<"Not On List",1,VLOOKUP(IF(ISERROR(A2),B2,A2),'Ref
Tables'!$K$3:$L$12,2,FALSE))

--
Regards!
Stefi



€˛Lyons550€¯ ezt Ć*rta:

Hi All,

I'm trying to construct a formula that looks at the following section of data:

A B C D
#N/A less than 12mnths Not On List
12 to 18mnths #N/A 1

Essentially I want to show in Column D a value based on the following:
Where the value in column C shows anything other than "not On List" is
assigns "1"
If however, the value shown is Not On List then it needs to lookup the value
in Column A and return the corresponding value in the associated lookup table.

The catch comes when the value in Column A is #N/A...if that's the case it
should then look in Column B on the same basis as it looked in Column A.

Does any of that make sense...I hope so! I've tried the following...but have
got stuck.

=IF(ISNA(VLOOKUP(O5,'Ref Tables'!$K$3:$L$12,3,FALSE)),"1",VLOOKUP(M5,'Ref
Tables'!$K$3:$L$12,3,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
ISNA Function Walley Excel Worksheet Functions 4 November 19th 08 09:20 PM
IF?ISNA?MATCH? Function? handyaccountant Excel Discussion (Misc queries) 2 October 2nd 08 06:33 PM
ISNA match function help Adam Excel Worksheet Functions 9 March 8th 08 03:24 AM
ISNA function [email protected] Excel Discussion (Misc queries) 3 August 16th 07 01:24 AM
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 05:50 AM.

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"