How to "convert" part of a value in date?

agatha1939

New Member
Joined
Jun 5, 2008
Messages
13
I want to "convert" one character (part of one value) from one column in date (month) in another column... like, when I have RA08001 (or RA08002, RA08045, RA08126, etc) in column A, I need "Jan" in column B. When I have RB08016 (or other sequencial number strating with RB), I need "Feb" in column B... is that possible?

Thanks!
 
Last edited:

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"

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
is this assuming that RA means january, RB means Feb, RC means march, etc?
 
Upvote 0

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,124
you could create a hard wired lookup but assuming A = Jan and L = Dec then you could use something like (in B1)

=TEXT(DATE(2000,COLUMN(INDIRECT(MID(A1,2,1)&"1")),1),"mmm")
 
Last edited:
Upvote 0

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Lasw10 has a good solution there.

If you are needing only jan, feb, mar, etc... what I would do is make a seperate sheet where you have A through L in column A, and Jan-Dec in column B.

Then put the following formula in B2, assuming your data starts there.

=vlookup(mid(a1,2,1),sheet2!$A$1:$B$12,2,FALSE)

copy it down!
 
Upvote 0

Forum statistics

Threads
1,191,191
Messages
5,985,215
Members
439,947
Latest member
fabiannic

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
Top