index and match return custom message if #NA

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
672
Office Version
  1. 365
Platform
  1. Windows
hi
i got as far as to realize that index and match shouldnt have empty rows. i used power query to trim and clean so values are the same
index and match works but leaves me a messy sheet full of #NA
=INDEX('Vendors with Addresses'!A:A,MATCH([@[Tabs ID]],'Vendors with Addresses'!M:M,0))
how do i add custom message that if result is #NA instead "choose another method"
 
Maybe
=IF([@[Tabs ID]]="","",IFERROR(INDEX('Vendors with Addresses'!A:A,MATCH([@[Tabs ID]],'Vendors with Addresses'!M:M,0)),"Choose override"))
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
wow
that was perfect.
works amazing
suddenly all the override disappeared
can you explain the formula, i dont understand this part =IF([@[Tabs ID]]="","",
 
Upvote 0
It's just looking to see if there is anything in that cell, if not it returns nothing "", otherwise it runs the index/match formula.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
new question based on previous response
=IF([@[Tabs ID]]="","",IFERROR(INDEX('Vendors with Addresses'!A:A,MATCH([@[Tabs ID]],'Vendors with Addresses'!N:N,0)),"Choose override"))
now i have 2 columns
M with payee that sometimes says choose payee and N that is the override payee
O has a W( that needs to be an index match off the previous question - to look at BOTH M and N and give me the w9
Vendors with Addresses'!K:K
obviously i only want to look at results and not "Choose overrride"
is that possible?
 
Upvote 0
Yes, but as it's now a totally different question, it needs a new thread.
 
Upvote 0
thanks
i am so unsure when its new question or old
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,037
Members
448,543
Latest member
MartinLarkin

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