Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Automatically prefix cell entry

Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Automatically prefix cell entry

Use a custom format of

"ABC"#

This will only change how the cell is displayed, not the cell value. The
cell will display as ABC123 (in your example), but when you click on the cell
you will notice the value of the cell is only 123.

"rossinvrland" wrote:

Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Automatically prefix cell entry

Thanks, Sloth! It works like a charm! And it's as easy as I hoped it might be.

"Sloth" wrote:

Use a custom format of

"ABC"#

This will only change how the cell is displayed, not the cell value. The
cell will display as ABC123 (in your example), but when you click on the cell
you will notice the value of the cell is only 123.

"rossinvrland" wrote:

Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Automatically prefix cell entry

Try a custom format of:

"ABC"General

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"rossinvrland" wrote in message
...
Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Automatically prefix cell entry

On Thu, 4 Jan 2007 08:54:00 -0800, rossinvrland
wrote:

Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross


Format/Cells/Number/Custom Type: "ABC"General

For General you can substitute any valid number format.
--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Automatically prefix cell entry

THANKS TO ALL! :-)

"Ron Rosenfeld" wrote:

On Thu, 4 Jan 2007 08:54:00 -0800, rossinvrland
wrote:

Hi,
I'm looking to have a function or format or macro to take a user entry into
a cell and then automatically prefix that entry and display the result. For
example, if the prefix is set to ABC & the user enters 123 in cell A1, then
as soon as the user goes to another cell, then A1 will display ABC123.
I tried CONCATENATE, but that doesn't do quite what I am looking for because
it keeps changing every time the worksheet is refreshed. There's got to be
something simple to make a function out of a simple 'find & replace' task.
Thanks in advance!
Ross


Format/Cells/Number/Custom Type: "ABC"General

For General you can substitute any valid number format.
--ron

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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
automatically add borders to a cell after entry is complete BKD Excel Discussion (Misc queries) 2 January 5th 06 01:09 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"