Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Add text to cell formulas?

Hello. I have a tape label spreadsheet where the cells are laid out as:

CS2_A001
CS2_A001
CS2_A002
CS2_A002
CS2_A003
CS2_A003
etc.. etc....


So basically each cell is doubled. I'd like to setup a template where if I
manually type in the first cell (or assign an arbitrary number such as 020),
all the other cells will automatically change. How do I do this?

I tried doing "=A1+1" but I just get the value error :(. The formula doesn't
need to automatically double (in fact it shouldn't for customization
reasons). Just a formula where it would do something like: 'TEXT + 1', so
'CS2_A' would be the standard text, three number placeholders standard (000).

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Add text to cell formulas?

One way:

=LEFT(A1,LEN(A1)-3) & TEXT(RIGHT(A1,3)+1,"000")

In article ,
phillr wrote:

Hello. I have a tape label spreadsheet where the cells are laid out as:

CS2_A001
CS2_A001
CS2_A002
CS2_A002
CS2_A003
CS2_A003
etc.. etc....


So basically each cell is doubled. I'd like to setup a template where if I
manually type in the first cell (or assign an arbitrary number such as 020),
all the other cells will automatically change. How do I do this?

I tried doing "=A1+1" but I just get the value error :(. The formula doesn't
need to automatically double (in fact it shouldn't for customization
reasons). Just a formula where it would do something like: 'TEXT + 1', so
'CS2_A' would be the standard text, three number placeholders standard (000).

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Add text to cell formulas?

In A2 use

=A1+1

then format all cells as "CS2_"000

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"phillr" wrote in message
...
Hello. I have a tape label spreadsheet where the cells are laid out as:

CS2_A001
CS2_A001
CS2_A002
CS2_A002
CS2_A003
CS2_A003
etc.. etc....


So basically each cell is doubled. I'd like to setup a template where if I
manually type in the first cell (or assign an arbitrary number such as
020),
all the other cells will automatically change. How do I do this?

I tried doing "=A1+1" but I just get the value error :(. The formula
doesn't
need to automatically double (in fact it shouldn't for customization
reasons). Just a formula where it would do something like: 'TEXT + 1', so
'CS2_A' would be the standard text, three number placeholders standard
(000).



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 863
Default Add text to cell formulas?

Hi, Bob and JE:

The OP's list showed 2 copies of each number. If that's in fact what he wants,
I would use this approach:

in A2: =A1,
in A3: =A1+1

Copy the formula in A3 down. The result is that A2 is the 2nd copy of A1, and
from there on, the cell increments the value from 2 rows above.

Similarly, JE's formulas would be

in A2: =A1
in A3: =LEFT(A1,LEN(A1)-3) & TEXT(RIGHT(A1,3)+1,"000")

Again, copy A3 down (or select A2 and A3 and drag down with the fill handle).


On Tue, 30 Oct 2007 16:26:52 -0000, "Bob Phillips"
wrote:

In A2 use

=A1+1

then format all cells as "CS2_"000

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Add text to cell formulas?

In article ,
Myrna Larson wrote:

The OP's list showed 2 copies of each number. If that's in fact what he wants,
I would use this approach:


From the OP:

The formula doesn't need to automatically double
(in fact it shouldn't for customization reasons).


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 863
Default Add text to cell formulas?

I missed that. I wonder why he showed that as his example if it isn't what he
wants :(

On Tue, 30 Oct 2007 13:36:12 -0600, JE McGimpsey wrote:

In article ,
Myrna Larson wrote:

The OP's list showed 2 copies of each number. If that's in fact what he

wants,
I would use this approach:


From the OP:

The formula doesn't need to automatically double
(in fact it shouldn't for customization reasons).

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Add text to cell formulas?

Yes it's odd isn't it. I wasn't sure exactly what he meant (it was ambiguous
to say the least), but I interpreted as JE did.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

BTW Good to see you treading the boards again.


"Myrna Larson" wrote in message
...
I missed that. I wonder why he showed that as his example if it isn't what
he
wants :(

On Tue, 30 Oct 2007 13:36:12 -0600, JE McGimpsey
wrote:

In article ,
Myrna Larson wrote:

The OP's list showed 2 copies of each number. If that's in fact what he

wants,
I would use this approach:


From the OP:

The formula doesn't need to automatically double
(in fact it shouldn't for customization reasons).



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
if then formulas with text? K Excel Worksheet Functions 3 July 28th 06 08:14 PM
Cell references in formulas become text David E. Jones Excel Discussion (Misc queries) 3 November 4th 05 05:58 PM
formulas using text bob Excel Worksheet Functions 6 August 23rd 05 04:23 AM
text and numbers same cell and formulas still work (like lotus) rmoore Excel Worksheet Functions 4 July 20th 05 07:02 PM
text formulas Rus Excel Worksheet Functions 4 July 19th 05 12:33 AM


All times are GMT +1. The time now is 08:31 AM.

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"