ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I enter a formula in a cell so that letters= a number i.e.. (https://www.excelbanter.com/excel-worksheet-functions/14565-how-do-i-enter-formula-cell-so-letters%3D-number-i-e.html)

Alex

How do I enter a formula in a cell so that letters= a number i.e..
 
How do I enter a formula in a cell so that letters= a number i.e Y=5, N=2.

Jason Morin

=IF(A1="Y",5,IF(A1="N",2,""))

If you have a lot of letters you need to convert, then
I'd suggest creating a table and using VLOOKUP. See here
for a tutorial:

http://www.contextures.com/xlFunctions02.html

HTH
Jason
Atlanta, GA

-----Original Message-----
How do I enter a formula in a cell so that letters= a

number i.e Y=5, N=2.
.



All times are GMT +1. The time now is 05:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com