?
Solved

How would I automate the deletion of all text except for the date in the Excel file described below?

Posted on 2014-01-29
4
Medium Priority
?
280 Views
Last Modified: 2014-01-29
I have attached an excel file that contains 3 columns.

In column C - DTE column  some of the dates also contain "All labs obtained on (mm/dd/yyyy):"   In front of the date.  I have a much larger file with many of these types of entrees.

How can I automate the deletion of this text in front of the date so there will only be dates in the cells in the DTE column. thanks
eesample.xlsx
0
Comment
Question by:PDSWSS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
bearblack earned 2000 total points
ID: 39819145
=IFERROR(IF(SEARCH(":",C2)>0,RIGHT(C2,LEN(C2)-SEARCH(":",C2)),C2),C2)

This needs to be entered into cell D2 then copied to the least row of your data.
0
 

Author Comment

by:PDSWSS
ID: 39819196
Perfect and thank you.  PDSWSS
0
 

Author Closing Comment

by:PDSWSS
ID: 39819200
Worked as requested.
0
 

Author Comment

by:PDSWSS
ID: 39819524
Hi BearBlack,

I just posted another excel question. Thought you may want to try a solution for this one as well -

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28351724.html
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question