how to convert letter to number and vice versa

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
843
Office Version
  1. 2013
Platform
  1. Windows
Hi guys, how do I convert 4 to April or vice versa?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
4 to April
A1 = 4
=TEXT(DATE(1,A1,1),"mmmm")

April to 4
B1 = April
=MONTH(1&B1)
 
Last edited:
Upvote 0
With 4 in cell A1, in B1 enter:

Code:
=DATE(2000,A1,1)
and format that cell as "mmmm"

with April in cell A1, in B1 enter:
Code:
=MONTH(DATEVALUE("1" & A1 & 1965))
 
Upvote 0
Oh I'm sorry guys I asked the wrong question! Though this isnt a waste, I needed to ask this as well.

But the one I wanted to know was how to convert a letter to a number and vice versa. So E = 5, 26 = Z etc


Btw how do you guys put up an avatar? I cant see a way.
 
Last edited:
Upvote 0
Oh I'm sorry guys I asked the wrong question! Though this isnt a waste, I needed to ask this as well.

But the one I wanted to know was how to convert a letter to a number and vice versa. So E = 5, 26 = Z etc
Letter to Number
-------------------------------
=CODE(A1)-64


Number to Letter
-------------------------------
=CHAR(A1+64)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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