#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default date to character

Hi everyone,
i have in a acolumn a series of dates:
09.15.2007
04.09.2008
12.24.2007
09.22.2007
06.05.2006
11.30.2006
i want to make them like:
september fifteenth 2007
etc..
for the month part i did text(a2,"mmmm") it gives me the month, for
the last mart i ll use year(a2)
ok but for the middle part like first, second, third, twenity
second ..... how will i be able to switch them? i tried of making a
table and use index-match combinations but it seems too much to me,
any ideas?
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default date to character

On Sun, 16 Nov 2008 15:16:54 -0800 (PST), Totti
wrote:

Hi everyone,
i have in a acolumn a series of dates:
09.15.2007
04.09.2008
12.24.2007
09.22.2007
06.05.2006
11.30.2006
i want to make them like:
september fifteenth 2007
etc..
for the month part i did text(a2,"mmmm") it gives me the month, for
the last mart i ll use year(a2)
ok but for the middle part like first, second, third, twenity
second ..... how will i be able to switch them? i tried of making a
table and use index-match combinations but it seems too much to me,
any ideas?
Thanks in advance


Since your range of values will only be 1-31, setting up a table should be
relatively simple; then use VLOOKUP.

For example, assuming your dates are real Excel dates (and not text strings),
then the formula might be:

=TEXT(A1,"mmmm ") & VLOOKUP(DAY(A1),DayTable,2) & " " &YEAR(A1)

Where DayTable is a table looking like:

1 First
2 Second
3 Third
4 Fourth
5 Fifth
6 Sixth
7 Seventh
8 Eigth
9 Ninth
10 Tenth
11 Eleventh
12 Twelfth
13 Thirteenth
14 Fourteenth
15 Fifteenth
16 Sixteenth
17 Seventeenth
18 Eighteenth
19 Nineteenth
20 Twentieth
21 Twenty-First
22 Twenty-Second
23 Twenty-Third
24 Twenty-Fourth
25 Twenty-Fifth
26 Twenty-Sixth
27 Twenty-Seventh
28 Twenty-Eighth
29 Twenty-Ninth
30 Thirtieth
31 Thirty-First
--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default date to character

Thats it Ron, a VLOOKUP, was what i needed indeed thank you
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default date to character

On Sun, 16 Nov 2008 18:59:54 -0800 (PST), Totti
wrote:

Thats it Ron, a VLOOKUP, was what i needed indeed thank you


You're welcome. Glad to help. Thanks for the feedback.
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
character map bushy Excel Discussion (Misc queries) 1 May 29th 08 09:27 AM
Character Map k f h Charts and Charting in Excel 6 February 21st 08 05:27 PM
Date Formating and building character strings C Brandt Excel Discussion (Misc queries) 5 August 18th 07 03:39 AM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Can I create a special character for the Character Map? JohnP Excel Discussion (Misc queries) 3 December 24th 06 01:10 AM


All times are GMT +1. The time now is 07:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"