close

I want to Copy the first two or three letters of a cell to another one in Excel

On the face of it ..

Assuming cell A1 contains the text: ABCD
In B1: =LEFT(TRIM(A1),2) will return: AB
In C1: =LEFT(TRIM(A1),3) returns: ABC

The TRIM(..) part is optional, it's just there as a safeguard which removes
any extraneous* white spaces (not readily visible) which may be present
within the text entered in A1
*especially leading spaces in this example
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
quot;Jerryquot; gt; wrote in message
...
gt; I want to Copy the first two or three letters of a cell to another one in
Excel
Hi Jerry,

Try:

=LEFT(A1,2)---
Regards,
Norman
quot;Jerryquot; gt; wrote in message
...
gt;I want to Copy the first two or three letters of a cell to another one in
gt;Excel


quot;Jerryquot; wrote:

gt; Thanks a lot for this post.
I wanted to work on a huge volume of data and your suggestion was very
helpful and valuable

You're welcome, Jerry (from us) !
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
quot;Jerryquot; gt; wrote in message
...
gt; Thanks a lot for this post.
gt; I wanted to work on a huge volume of data
gt; and your suggestion was very helpful and valuable

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()