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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
is this assuming that RA means january, RB means Feb, RC means march, etc?
 
Upvote 0
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
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,214,525
Messages
6,120,052
Members
448,940
Latest member
mdusw

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