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
252 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
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
bearblack earned 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

810 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