TechRepublic : A ZDNet Tech Community

Microsoft Office

Host: Susan Harkins
Contact

How to combine text and dates in the same cell

If you want to display both text and date data in one cell, you’ll need to include an extra formatting step. See how to use the TEXT function to get the desired results.


Excel does not normally let you combine text and dates together in the same cell. For example, suppose you have entered the formulas shown in Figure A.

Figure A

dates

Figure B shows the results.

Figure B

display

While the value in A2 displayed correctly, the value in A1 did not. This is because Excel displays the actual date data entered into the cell until it’s formatted. Thus, to show the data in A1 as a true date, we need add the TEXT function to change the format to text. When we replace the formula in B1 with

="Today is"&" "&TEXT(A1,"MM/DD/YYYY")

we get the results shown in Figure C.

Figure C

text function


Miss an Excel tip?

Check out the Microsoft Excel archive and catch up on other Excel tips.

Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.

Print/View all Posts Comments on this blog

Fixed texts can be concatenated using a format string as well P∆UL L∆M∆N | 09/17/08
Don't understand. simon.freeman@... | 09/17/08
There's probably a more elegant way of doing this graham_wickens@... | 09/17/08
I like the Formatting solution fractalzoom | 09/17/08
the result is no longer calculated as a number. clifforde | 09/17/08
Simple Static Date Arcturus16a | 09/17/08
Thank you for the truly useful tip ToR24 | 09/19/08
Insert the space simon.freeman@... | 09/17/08
RE: How to combine text and dates in the same cell sarcher@... | 09/17/08
RE: How to combine text and dates in the same cell LightVelocity | 09/17/08
RE: How to combine text and dates in the same cell carlos.barba@... | 09/17/08
TEXT or FORMAT? Thanks, MS info@... | 09/17/08
RE: How to combine text and dates in the same cell Brian.Morrison@... | 09/24/08

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

SmartPlanet

Click Here