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

agatha1939

New Member
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
is this assuming that RA means january, RB means Feb, RC means march, etc?

agatha1939

New Member
Yes, RA=january, RB=february and so on...

DonkeyOte

MrExcel MVP
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:

MrKowz

Well-known Member
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!

agatha1939

New Member
Both ways worked, THANKS!!!!

Replies
3
Views
242
Replies
2
Views
632
Replies
5
Views
220
Replies
3
Views
144
Replies
2
Views
232

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?

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

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