If errors

Harvey12

Board Regular
Joined
Feb 23, 2015
Messages
130
Hi all,

I have recently been doing a formula which looks at an external file. This vlookup brings back whether a particular language is 'Available' or not for our service manuals to be written in.

There are two outcome the Vlookup can return 'Available' or 'No'.

I am currently trying to write and IF formula to look at the outcome and pull the part number from the first cell if the answer is available.

I have written it correctly: =IF(C20="Available",A20,"N/a")

But for some reason they all show as 'N/a', the formula doesn't seem to recognise the 'Available'

Can someone please assist!!!

Many thanks
Harvey
 
Try this formula on one of the VLOOKLUPs that returns "Available" (let's say it is C20):
=LEN(C20)

Does it return 9? If not, it sounds like you have some extra spaces/characters in there, and that is what is causing your formula to not work as you expect.
 
Upvote 0
you may try

=IF(TRIM(C20)="Available",A20,"N/a")
TRIM will work on "normal" spaces, but not on special characters like "non-breaking" spaces, or other special characters that you sometimes get from things off of the web. I have run into that situation a few times before. There are ways of getting around that too, once you identify what they are/where they are.
 
Upvote 0

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