Text search with custom answer

MrsFixIt

New Member
Joined
Apr 15, 2016
Messages
18
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
My formula is almost working...please help!
From Column Z use LEFT to pull the first character from a text string in column R
If the text string in R begins with N = answer "not applicable"
if the text string in R begins with F, use vlookup and look for the value in another sheet column A
if the value is found, bring the match to column Z, if the text string is not found, answer "not in data"

my formula keeps kicking out #VALUE!
=OR((LEFT(R5517,1)="N"),"Not Applicable",IFERROR9VLOOKUP((R5517,SHEET3A:A,1FALSE)"Not in Data'))
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You need IF, not OR.
Excel Formula:
=IF(LEFT(R5517,1)="N","Not Applicable",IFERROR(VLOOKUP(R5517,SHEET3!A:A,1,FALSE),"Not in Data"))
A couple of missing commas and stray brackets, but other than that you had the right idea.
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,674
Members
448,977
Latest member
moonlight6

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