Solved

how can i remove a Z letter in a string

Posted on 2012-12-20
5
161 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Formula 6 46
Highlighting cells in Excel 9 17
Freeze Panes Solution 6 28
Converting An Excel IF statement formula to   VBA 10 23
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 article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

920 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

12 Experts available now in Live!

Get 1:1 Help Now