Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Wu Wu is offline
external usenet poster
 
Posts: 36
Default replace the content of cell

I have the following data:

A01-2007

A-01-2006

I Would like to replace the right hand side 5 characters, like below result:

A01

A-01

How can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default replace the content of cell

=LEFT(A1,LEN(A1)-5)


"Wu" wrote:

I have the following data:

A01-2007

A-01-2006

I Would like to replace the right hand side 5 characters, like below result:

A01

A-01

How can I do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default replace the content of cell

Hi,

Put this in a helper column and drag down

=LEFT(A1,LEN(A1)-5)

Mike

"Wu" wrote:

I have the following data:

A01-2007

A-01-2006

I Would like to replace the right hand side 5 characters, like below result:

A01

A-01

How can I do this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default replace the content of cell

This might suffice ..
In B1, copied down: =LEFT(A1,LEN(A1)-5)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Wu" wrote:
I have the following data:

A01-2007

A-01-2006

I Would like to replace the right hand side 5 characters, like below result:

A01

A-01

How can I do this?

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
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
Replace all empty or " by the content of the cell above it hccatmo Excel Worksheet Functions 3 November 9th 06 08:52 PM
replace one tag in content of one cell and format not changed replace one tag in content of one cell a Excel Discussion (Misc queries) 1 January 9th 06 03:36 PM
Excel - create button to replace cell content with cell value blackmot Excel Worksheet Functions 3 December 7th 05 05:10 PM


All times are GMT +1. The time now is 08:19 PM.

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"