Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Month Name from single number? 1

Status
Not open for further replies.

jazminecat23

Programmer
Mar 16, 2007
103
US
Hi everyone -

I have a user who has a spreadsheet with exported data. The month is listed as a single number ,1 through 12. She wants to show these on another sheet as the month name
(i.e. 1 = Jan, 2 = Feb, etc). Anyone know an way to do this? Thanks!
 



Hi,

Use a lookup table
[tt]
Jan
Feb
...
[/tt]
[tt]
=index(LookupTableRange,MonthNumber,1)
[/tt]


Skip,

[glasses] [red][/red]
[tongue]
 
Is the rest of the date included in other columns? If so, you can reconstitute the date via formula.

If not, I'd use a formula like this:
[tab]=DATE(YEAR(NOW()),A1,1)
in another column. Then format that column as mmm.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 

Or, you could use the formula
[tt]
=DATE(2007,Sheet1!A1,1)
[/tt]
and use custom format
[tt]
mmm
[/tt]

 
Woo Hoo! I beat someone to the submit button!!

This is a rarity....

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Man, y'all are the best. I think just the help I've gotten here this week has saved my sanity, not to mention all the help I've found over the years here. Zathras, yours worked just the way I needed, so have a star, and thank you!
 
Not for nuthin', but my suggestion is the exact same thing but it always uses the current year.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 

Just in case some year they decide to change the names of the months. [lol]

 
Hey, you never know.... [wink]

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top