Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default automatically copy first 12 characters in one field to another?

I am trying to write a formula that will automatically copy just the first 12
characters of a field into another field. I'm trying to isolate some
information.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default automatically copy first 12 characters in one field to another?

if a1 contains your text, put this formula in e.g. in b2:
=left(a1,12)

Wolf

"JFletcher" wrote:

I am trying to write a formula that will automatically copy just the first 12
characters of a field into another field. I'm trying to isolate some
information.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default automatically copy first 12 characters in one field to another?

You can use the worksheet function:
=Left(A1,12)
where A1 is the field you want...

You can also build this into code
Range("D1")=Left(Range("A1"),12)

The code leaves the result without the formula.

--
steveB

Remove "AYN" from email to respond
"JFletcher" wrote in message
...
I am trying to write a formula that will automatically copy just the first
12
characters of a field into another field. I'm trying to isolate some
information.



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
how do I use only 2 characters in a field in a formula rgarner Excel Worksheet Functions 2 December 1st 09 03:15 PM
How to delete first three characters in all rows of a field No Name Excel Discussion (Misc queries) 2 March 9th 09 04:43 PM
Looking for alpha characters in a field fgwiii[_2_] Excel Worksheet Functions 1 September 17th 08 12:41 PM
copy field settings of a field to other fields in same pivot tbl new22007 Excel Worksheet Functions 0 May 8th 08 10:22 PM
How do I remove the 1st 4 characters of a field in Excel? MFreeman Excel Worksheet Functions 8 June 12th 05 01:54 PM


All times are GMT +1. The time now is 12:31 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"