ISNA not compatible with CONCATENATE?

excel.vba

New Member
Joined
May 26, 2011
Messages
30
I have formula which returns a #NA which is fine since sometimes the value i am looking up may not be found.

=IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)="","not started",IF(AND(NOT(ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE))),ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$L,8,FALSE))),"started","completed"))

For presentation sake i want it to return "NA" instead of "#NA" when this happens. I tried using ISNA and IF to give me what i want. When i add the ISNA to the above formula i get the value "TRUE". However, when i include the IF function it gives me the error "The formula u typed in contains an error" message and highlights the second CONCATENATE in the formula. I am not sure whether it is a simple brackets error or something else.

What i have been trying(left the if statement is false blank for easier reading):
=IF(ISNA(IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)="","not started",IF(AND(NOT(ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE))),ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$L,8,FALSE))),"started","completed"))),"NA",)

Thank You!
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I have formula which returns a #NA which is fine since sometimes the value i am looking up may not be found.

=IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)="","not started",IF(AND(NOT(ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE))),ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$L,8,FALSE))),"started","completed"))

For presentation sake i want it to return "NA" instead of "#NA" when this happens. I tried using ISNA and IF to give me what i want. When i add the ISNA to the above formula i get the value "TRUE". However, when i include the IF function it gives me the error "The formula u typed in contains an error" message and highlights the second CONCATENATE in the formula. I am not sure whether it is a simple brackets error or something else.

What i have been trying(left the if statement is false blank for easier reading):
=IF(ISNA(IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)="","not started",IF(AND(NOT(ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE))),ISBLANK(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$L,8,FALSE))),"started","completed"))),"NA",)

Thank You!
What version of Excel are you using?
 
Upvote 0
2007 & up has the IFERROR() function, otherwise you'll need to double nest you formula, first in an IF(ISNA(formula), NA resultant, formula)
 
Upvote 0
Try something like this...
Code:
=IF(ISNA(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)), "NA",
  IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$H,4,FALSE)="","not started",
  IF(VLOOKUP(CONCATENATE($B6,G$1),'3a. Tier1 Msg'!$E:$L,8,FALSE)="","started","completed")))
 
Upvote 0
Thank you so much. It works perfectly fine, but i was wondering why is it not possible to put the entire if statement into the ISNA instead of only the first vlookup which causes the NA.
 
Upvote 0
Excel 2003.

Thanks for the quick reply
Try this...

=IF(ISNA(MATCH($B6&G$1,'3a. Tier1 Msg'!$E:$E,0)),"N/A",
IF(VLOOKUP($B6&G$1,'3a. Tier1 Msg'!$E:$H,4,0)="","not started",
IF(AND(VLOOKUP($B6&G$1,'3a. Tier1 Msg'!$E:$H,4,0)<>"",
VLOOKUP($B6&G$1,'3a. Tier1 Msg'!$E:$L,8,0)=""),"started","completed")))
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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