#1   Report Post  
Posted to microsoft.public.excel.misc
PK PK is offline
external usenet poster
 
Posts: 69
Default Split cell content

I have a large spreadsheet which contains a list of equipment, the equipment
format is K-XX-ABCD-12, I want to remove the prefix K- from the cell, the
issue I have is within the 2nd part of the equipment ID there are some that
have XK-, so I can't just do a find & replace K-

Has anyone got any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Split cell content

If the part id ALWAYS starts with K-, then:

=MID(A1,3,256) will remove the first two characters.
--
Gary''s Student - gsnu201001


"PK" wrote:

I have a large spreadsheet which contains a list of equipment, the equipment
format is K-XX-ABCD-12, I want to remove the prefix K- from the cell, the
issue I have is within the 2nd part of the equipment ID there are some that
have XK-, so I can't just do a find & replace K-

Has anyone got any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Split cell content

To avoid the use of VBA Macro - try this:
Assuming the P/N is in Column "A" from cell A1,
in B1 type: =REPLACE(A1,1,2,"") and copy down.
Micky


"PK" wrote:

I have a large spreadsheet which contains a list of equipment, the equipment
format is K-XX-ABCD-12, I want to remove the prefix K- from the cell, the
issue I have is within the 2nd part of the equipment ID there are some that
have XK-, so I can't just do a find & replace K-

Has anyone got any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Split cell content

....and if the P/N format is the same along the range - you may try this:
=RIGHT(A1,10)
Micky


"PK" wrote:

I have a large spreadsheet which contains a list of equipment, the equipment
format is K-XX-ABCD-12, I want to remove the prefix K- from the cell, the
issue I have is within the 2nd part of the equipment ID there are some that
have XK-, so I can't just do a find & replace K-

Has anyone got any suggestions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 - Split Content of Cell w/Text Separator (Return) DeeW Excel Worksheet Functions 3 April 3rd 08 12:11 AM
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
How to split Cell content into two resulting cells [email protected] Excel Worksheet Functions 1 October 23rd 06 12:30 PM
Split One Work book into several based on content Rich Excel Worksheet Functions 2 May 21st 06 06:24 PM
Split cell values based on content mel Excel Worksheet Functions 4 March 30th 05 04:03 PM


All times are GMT +1. The time now is 11:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"