PC Review


Reply
Thread Tools Rate Thread

Append character to cell

 
 
glenn
Guest
Posts: n/a
 
      27th Sep 2007
Hi all

is there a function i can use to append some character to a cell

Example:

cell contains ABC

i am looking for something the can add a Y harcter either at the
beginning or at the end of the content like in YABC or ABCY

thank u
 
Reply With Quote
 
 
 
 
Steve Yandl
Guest
Posts: n/a
 
      27th Sep 2007
If ABC is in A1,
=A1&"Y"
delivers ABCY

Steve


"glenn" <(E-Mail Removed)> wrote in message
news:fdh3qa$ser$(E-Mail Removed)...
> Hi all
>
> is there a function i can use to append some character to a cell
>
> Example:
>
> cell contains ABC
>
> i am looking for something the can add a Y harcter either at the beginning
> or at the end of the content like in YABC or ABCY
>
> thank u



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Sep 2007
A formula in Excel:

=a1&"Y"
or
="Y"&a1

In code:

with activesheet.range("a1")
.value = "Y" & .value
'or
.value = .value & "Y"
end with

glenn wrote:
>
> Hi all
>
> is there a function i can use to append some character to a cell
>
> Example:
>
> cell contains ABC
>
> i am looking for something the can add a Y harcter either at the
> beginning or at the end of the content like in YABC or ABCY
>
> thank u


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
append character to string mp Microsoft C# .NET 1 8th Nov 2010 03:41 AM
Need to append a character to cell data Mark Microsoft Excel Discussion 1 13th Sep 2010 11:56 PM
Excel 2007 - Formatting text in cell (character by character) TomC Microsoft Excel Misc 0 29th Jan 2010 07:25 PM
If cell has any character typed in it cell curser moves to next c =?Utf-8?B?Rm9ybSBtYWtlcg==?= Microsoft Excel Misc 1 18th Dec 2006 03:15 AM
Append Selected Cell in another Cell's Formula craigjl Microsoft Excel Programming 4 7th Apr 2006 03:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.