Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 6
Default Delete Text in Multiple Cells

Hello,

I have a column of cells where both a date and time are included in each. For example, "01/17/2007 12:13:14" (everything is in the "mm/dd/yyyy hh:mm:ss" format). I would like to delete the time stamp from each cell but leave the dates. How do I do that?

Thank you
  #2   Report Post  
Member
 
Posts: 93
Default

Hi hbcobra

To extract the data as a date, assuming the data is in A1:
=INT(A1) & format the cell as "dd/mm/yyy" or how ever you require.
To extract the date as a text value:
=TEXT(A1,"dd/mm/yyy") change the format to suit your requirement.

Kevin



Quote:
Originally Posted by hbcobra View Post
Hello,

I have a column of cells where both a date and time are included in each. For example, "01/17/2007 12:13:14" (everything is in the "mm/dd/yyyy hh:mm:ss" format). I would like to delete the time stamp from each cell but leave the dates. How do I do that?

Thank you
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 151
Default Delete Text in Multiple Cells

Hi

Depending on which version of Excel you are using:

< 2010:

Tools | Format Cells | Number Tab

2010:

Format | Format Cells | Number Tab

Choose Date, select whichever Display format you like including a custom
format of your own choosing.

HTH
Mick.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Delete Text in Multiple Cells

Hi,

Am Fri, 22 Mar 2013 20:38:31 +0000 schrieb hbcobra:

I have a column of cells where both a date and time are included in
each. For example, "01/17/2007 12:13:14" (everything is in the
"mm/dd/yyyy hh:mm:ss" format). I would like to delete the time stamp
from each cell but leave the dates. How do I do that?


if formatting as "mm/dd/yyyy" is not that what you want, you can try
TextToColumns = Delimited = Delimiter = Comma = select the column
with the time and choose "Do not import (skip)"
Then your date and time
01/17/2007 12:13:14 changed to
01/17/2007 00:00:00 and you only have to format the column as date


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Rows in A column not Containing multiple text criteria dguest Excel Programming 0 April 17th 12 04:45 PM
HOW TO DELETE MULTIPLE TEXT BOXES FROM A TEMPLATE FILE textbox trouble Excel Discussion (Misc queries) 1 August 28th 06 03:31 PM
macro to select cells containing specific text and delete all cells but these JenIT Excel Programming 3 March 27th 06 10:07 PM
Delete word from multiple cells Leslie Excel Discussion (Misc queries) 2 November 15th 05 05:06 PM
entirerow.delete multiple text conditions Jocelyn[_3_] Excel Programming 3 February 9th 04 05:58 PM


All times are GMT +1. The time now is 07:20 AM.

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

About Us

"It's about Microsoft Excel"