Solved

How remove all characters after a period including the period

Posted on 2014-03-31
3
221 Views
Last Modified: 2014-03-31
I several cell in a column I have data that reads for example:

04022.xls
or
05123.xls
or
123456.xls (note six numbers before the dot)
or
1234.xls (note four numbers before the dot)

I want to keep everything BEFORE the dot and paste it in a new column to the right of the existing column.  How can I do this?

--Steve
0
Comment
Question by:SteveL13
[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
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 500 total points
ID: 39967037
Assuming your data starts in cell A2, put this formula in B2, copy down all the way then do a copy / paste values. FIND finds the position of the dot, and left returns the characters left of that position.

=LEFT(a2, find(".",A2)-1)

Thomas
0
 
LVL 13

Expert Comment

by:Santosh Gupta
ID: 39967048
Hi,

select the column and press Ctrl+H

Type in find:     .*               (dot and Star only)
keep replace as blank.

and click on replace All.
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39967057
For Santosh's solution, copy your data to a new column first and select that new column before the Replace (Ctrl+H) if you want the tweaked data in a separate column.

Thomas
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

734 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