Month?

D

Dave Peterson

=TEXT(A1,"mmm")

or
=A1
and give that cell a custom format of: MMM

The value in the top formula will be the string Nov. The value in the bottom
formula will be the date--just formatted to show as Nov.
 
P

Paul B

sungen99, in B2 put =A1 and format the cell as custom mmm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
S

sungen99

Great works..... sort of... this is my situation.

b21 is actually the month now i want to do a lookup with. the prob is
that its taking the whats in b1 and then formating to be mmm. i get a
#N/A from this but if i actualy enter Nov in b21 is works just fine.
But thats not what i want it to do. is there some way to just take the
data from b21 without causing the error?
 
D

Dave Peterson

You could even combine the formulas:

=vlookup(text(b1,"mmm"),sheet2!a:e,2,false)
(or something like that)
 
Top