View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Wright
 
Posts: n/a
Default How do you trim characters?

Is your data all the same length?

If so then just copy your column to the next column, select all the data and
do data / text to columns / fixed width, put in breaks after the 2nd and 4th
characters, hit next and then click on first and last columns in the dialog
box and choose 'do not import'

Hit Ok and you are done.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------




"Tommi" wrote in
message ...

Hi there!

This is my first post, so please have mercy on my soul.

In one cell I have a character string, e.g. 1011-1

I want to extract the 3rd and 4th character to a new cell, i.e. "11"
above, as a number.

I was thinking of using a trim-type function to remove the first two
characters and everything after (and including) the hypen. Problem: the
trim function seems to only remove spaces.

I'd like to do this in the little fx window rather than using anything
fancy like VBA.

Thanks for any help you can provide. :)


--
Tommi
------------------------------------------------------------------------
Tommi's Profile:
http://www.excelforum.com/member.php...o&userid=30942
View this thread: http://www.excelforum.com/showthread...hreadid=506143