#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel Help

I imported data that came back erroneously in a date format (ex. 01-01-01). I
actually need the data as it appears with the dashes inserted. When I copy
and paste special as a value, it gives me the whole number that is equivalent
to the date (ex. 36892). How can I convert the cell to a text as it appears?
I need to concatenate it with another cell.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Excel Help

G'day Keith

I'm assuming your importing as PasteSpecial.Value. Which means it pastes the
actual Time.Value, which in this case is 36892.

Highlight the entire column in question.
Goto: FormatCell | Number | Custom
Enter: mm-dd-yy

or if you prefer dd-mm-yy

HTH
Mark.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Excel Help

If you want the pasted cell to look pretty, you can format the cell (like Mark
wrote).

But you don't need to format that cell to see a date in the concatenation
formula. In fact, it won't help either way. You'll still need a formula like:

="this is a formula that includes a date: " & text(a1,"mm/dd/yyyy")
& char(10) & "and some money cells, too: " & text(b1,"$#,##0.00")



Keith X. Terrell wrote:

I imported data that came back erroneously in a date format (ex. 01-01-01). I
actually need the data as it appears with the dashes inserted. When I copy
and paste special as a value, it gives me the whole number that is equivalent
to the date (ex. 36892). How can I convert the cell to a text as it appears?
I need to concatenate it with another cell.


--

Dave Peterson
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



All times are GMT +1. The time now is 01:55 PM.

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

About Us

"It's about Microsoft Excel"