OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED]Turning Month Names into Numeric equivelant

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
qaz1qaz1qa
Power User
Power User


Joined: 21 Jan 2012
Posts: 68

PostPosted: Fri Feb 03, 2012 10:44 pm    Post subject: [SOLVED]Turning Month Names into Numeric equivelant Reply with quote

I have a drop down list of the Months by name. Is there a way to turn these into the numeric equivalent?

I suppose I could use a Vlookup or some kind of chart comparison. But for some reason in the back of my head I think this exists already as a function.


Last edited by qaz1qaz1qa on Sun Feb 12, 2012 9:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2560
Location: Chonburi Thailand Asia

PostPosted: Sat Feb 04, 2012 12:52 am    Post subject: Reply with quote

If the name of the month is in D1

=MONTH( VALUE( "1. " & D1 ) )

to get the numeric equivalent
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
qaz1qaz1qa
Power User
Power User


Joined: 21 Jan 2012
Posts: 68

PostPosted: Fri Feb 10, 2012 5:45 am    Post subject: Reply with quote

I got an answer on the other board. Close to the one you gave.
However I guess it depends on where I live as I needed to keep a different format
=MONTH( VALUE( "1. " & D1 ) ) had to be changed to
=MONTH( VALUE( "01-"&D1&"-01" ) )

See
http://user.services.openoffice.org/en/forum/viewtopic.php?f=9&t=47516
_________________
OO 3.3 XP
Back to top
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2560
Location: Chonburi Thailand Asia

PostPosted: Fri Feb 10, 2012 8:27 am    Post subject: Reply with quote

Thanks for cross-posting in other forums - and not mentioning it Sad


This is rude.
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
qaz1qaz1qa
Power User
Power User


Joined: 21 Jan 2012
Posts: 68

PostPosted: Fri Feb 10, 2012 8:44 am    Post subject: Reply with quote

Laughing
_________________
OO 3.3 XP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group