Solved

how can i remove a Z letter in a string

Posted on 2012-12-20
5
158 Views
Last Modified: 2012-12-20
hi

someone know a function to remove letter Z from 3th clolumn
so , by example, string NF114Z must change to NF114,    NF102Z must change to NF102

01NAEB      NC31      NF114Z            SYSGERMX02      19/12/2012      111400
13IMBC      NC31      NF102Z            SYSGERMX02      19/12/2012      111400
20NAGB      NC31      NF90Z            SYSGERMX02      19/12/2012      111400
21NACA      NC31      NF100Z            SYSGERMX02      19/12/2012      111400
23NADA      NC31      NF116Z            SYSGERMX02      19/12/2012      111400
23NAEB      NC31      NF115Z            SYSGERMX02      19/12/2012      111400
27NAEN      NC31      NF82Z            SYSGERMX02      19/12/2012      111400
29NACA      NC31      NF92Z            SYSGERMX02      19/12/2012      111400
29NAFB      NC31      NF93Z            SYSGERMX02      19/12/2012      111400
31IMBL      NC31      NF103Z            SYSGERMX02      19/12/2012      111400
44NABD      NC31      NF95Z            SYSGERMX02      19/12/2012      111400

thanks a lot
EXPORTNC31.csv
0
Comment
Question by:tenriquez39
5 Comments
 
LVL 23

Assisted Solution

by:NBVC
NBVC earned 125 total points
ID: 38710458
If that is the only Z in the column, you can select the column, the hold CTRL key, and hit H key (CTRL+H) , then replace Z with nothing in the replace with box.

Click Replace ALL.

if there are other possible Z's, then use a formula in another column like:

=LEFT(C2,LEN(C2)-1)  copied down.

Then you can copy this column and go to column C and paste Special > Values over the original.  Then delete the formula column.
0
 
LVL 7

Assisted Solution

by:Beneford
Beneford earned 125 total points
ID: 38710460
Since the 'Z' is always there and is alway the final character, you can use the following formula in column D: (put this in D1 and copy down the column).

=LEFT(C1,LEN(C1)-1)

If the 'Z' is not always at the end, you can remove the first Z with this formula:

=LEFT(C1,FIND("Z",C1)-1)&MID(C1,FIND("Z",C1)+1,9999)
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 125 total points
ID: 38710461
You could simply use Edit > Replace for a range of cells, replace "Z" with nothing.....

or you could use a formula in another column, e.g. with data in C2 put this formula in an empty cell in row 2 and copy down

=SUBSTITUTE(C2,"Z","")

regards, barry
0
 
LVL 13

Accepted Solution

by:
Shanan212 earned 125 total points
ID: 38710462
If Z is at the end of the letter (always) then use this

=LEFT(C1,FIND("Z",C1)-1)
0
 

Author Closing Comment

by:tenriquez39
ID: 38711144
thanks all
all was fine
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now