IF, ISNA, VLOOKUP - Nested

ArchieV

New Member
Joined
May 31, 2018
Messages
5
I have this formula below which works only on a single IF, ISNA & VLOOKUP statement:

=IF(ISNA(VLOOKUP(G770670,Aircrafts!$A$2:$A$1000,1,FALSE)),"Others","CL650")

However, when I expanded it to use multiple ISNA & VLOOKUP, it doesn't work.

=IF(ISNA(VLOOKUP(G770670,Aircrafts!$A$2:$A$1000,1,FALSE)),"Others","CL650",ISNA(VLOOKUP(G770670,Aircrafts!$B$2:$B$1000,1,FALSE)),"Others","G5000",ISNA(VLOOKUP(G770670,Aircrafts!$C$2:$C$1000,1,FALSE)),"Others","G6000",ISNA(VLOOKUP(G770670,Aircrafts!$D$2:$D$1000,1,FALSE)),"Others","G7000",ISNA(VLOOKUP(G770670,Aircrafts!$E$2:$E$1000,1,FALSE)),"Others","AIRBUS")

Would appreciate any help I can get.

Thanks!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
try this one out


=IF(ISNA(VLOOKUP(G770670,Aircrafts!$A$2:$A$1000,1,FALSE))=FALSE,"CL650",IF(ISNA(VLOOKUP(G770670,Aircrafts!$B$2:$B$1000,1,FALSE))=FALSE,"G5000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$C$2:$C$1000,1,FALSE))=FALSE,"G6000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$D$2:$D$1000,1,FALSE))=FALSE,"G7000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$E$2:$E$1000,1,FALSE))=FALSE,"AIRBUS","Others")))))
 
Upvote 0
try this one out


=IF(ISNA(VLOOKUP(G770670,Aircrafts!$A$2:$A$1000,1,FALSE))=FALSE,"CL650",IF(ISNA(VLOOKUP(G770670,Aircrafts!$B$2:$B$1000,1,FALSE))=FALSE,"G5000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$C$2:$C$1000,1,FALSE))=FALSE,"G6000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$D$2:$D$1000,1,FALSE))=FALSE,"G7000",IF(ISNA(VLOOKUP(G770670,Aircrafts!$E$2:$E$1000,1,FALSE))=FALSE,"AIRBUS","Others")))))

Thank you so much for the help Nine Zero.
Appreciate it. If only you live here in Montréal, I will treat you for a dinner!
Again, thanks you!!!!
 
Upvote 0
HAHA
No problem,

Just so you are aware of the issue, when nesting IF statements, you need to set the false condition to the following IF statements until your reach your final false condition so for example:

=IF(anything here,if the anything is true,next if statement,if the next one is true,next if statement,if the next one is true,whatever you want if they are all false (in your case "Others"))))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top