Change output of text

wmunsey81

New Member
Joined
Nov 30, 2017
Messages
29
I know this is probably an easy fix, but I have a vlookup on an excel worksheet that is a form view of some data I have. One of the lookups is a Boolean Y/N and displays 'Y' or 'N'. Unfortunately, I want the data on the worksheet to say 'Yes' when it finds 'Y' and 'N' when it says 'No'.

=IF(ISNA(VLOOKUP(E5,RepairDataBase,36,FALSE)=TRUE),"",VLOOKUP(E5,RepairDataBase,36,FALSE))

Above is my present formula... what would I add to make it say yes or no.

Thank you, my brain is mush today so I could use the extra help.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you can use a "helper" cell, it is pretty easy, i.e.
Code:
=IF(G1="Y","Yes",IF(G1="N","No",""))

Also, note that if you have a version of Excel that has the IFERROR function, you can simplify your original formula to:
Code:
=IFERROR([COLOR=#333333]VLOOKUP(E5,RepairDataBase,36,FALSE),"")
[/COLOR]
 
Upvote 0
Just plug the whole function in wherever you see the "Y" and "N", i.e.
Code:
=IF(IFERROR([COLOR=#333333][FONT=Verdana]VLOOKUP(E5,RepairDataBase,36,FALSE),"")="Y"[/FONT][/COLOR],"Yes",IF(IFERROR([COLOR=#333333][FONT=Verdana]VLOOKUP(E5,RepairDataBase,36,FALSE),"")[/FONT][/COLOR]="N","No",""))
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,189
Members
449,213
Latest member
Kirbito

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