Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Only extract numbers from a string of text

I am trying to create a list that auto numbers each row. I have to duplicate
one column into another, but change the last letter in the string from an "A"
to a "B". Where I get tripped up, is when the column changes from 1A, 2A,
etc. to a double digit 10A, 11A, etc. I tried using =left(text, 1)&"B", but
when it goes to double digit numbers my solution fails.

Basically I have data in column A and the same thing with the last character
change needs to go into column E. So it should look like this:
A B C D E
Tube MRN ACC Tube
1A 0000 00-000 1B
2A 0000 00-000 2B
3A 0000 00-000 3B

Thanks for any suggestions.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Only extract numbers from a string of text

Try something like this:

=SUBSTITUTE(A1,"A","B")

or this:
=SUBSTITUTE(UPPER(A1),"A","B")

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Lost in Microbiology" wrote in message
...
I am trying to create a list that auto numbers each row. I have to duplicate
one column into another, but change the last letter in the string from an "A"
to a "B". Where I get tripped up, is when the column changes from 1A, 2A,
etc. to a double digit 10A, 11A, etc. I tried using =left(text, 1)&"B", but
when it goes to double digit numbers my solution fails.

Basically I have data in column A and the same thing with the last character
change needs to go into column E. So it should look like this:
A B C D E
Tube MRN ACC Tube
1A 0000 00-000 1B
2A 0000 00-000 2B
3A 0000 00-000 3B

Thanks for any suggestions.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Only extract numbers from a string of text

=LEFT(A1,LEN(A1)-1) & "B"
--
Gary''s Student - gsnu200750


"Lost in Microbiology" wrote:

I am trying to create a list that auto numbers each row. I have to duplicate
one column into another, but change the last letter in the string from an "A"
to a "B". Where I get tripped up, is when the column changes from 1A, 2A,
etc. to a double digit 10A, 11A, etc. I tried using =left(text, 1)&"B", but
when it goes to double digit numbers my solution fails.

Basically I have data in column A and the same thing with the last character
change needs to go into column E. So it should look like this:
A B C D E
Tube MRN ACC Tube
1A 0000 00-000 1B
2A 0000 00-000 2B
3A 0000 00-000 3B

Thanks for any suggestions.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Only extract numbers from a string of text

=LEFT(A1,LEN(A1)-1)&"B"

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Lost in Microbiology" wrote in message
...
|I am trying to create a list that auto numbers each row. I have to duplicate
| one column into another, but change the last letter in the string from an "A"
| to a "B". Where I get tripped up, is when the column changes from 1A, 2A,
| etc. to a double digit 10A, 11A, etc. I tried using =left(text, 1)&"B", but
| when it goes to double digit numbers my solution fails.
|
| Basically I have data in column A and the same thing with the last character
| change needs to go into column E. So it should look like this:
| A B C D E
| Tube MRN ACC Tube
| 1A 0000 00-000 1B
| 2A 0000 00-000 2B
| 3A 0000 00-000 3B
|
| Thanks for any suggestions.


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
extract text from string AskExcel Excel Worksheet Functions 2 October 9th 07 06:54 AM
How to extract decimal numbers e.g. $1.57 from alphanumeric string Lio Excel Discussion (Misc queries) 8 December 12th 06 07:35 PM
EXTRACT NUMBERS FROM TEXT STRING fiber_doc Excel Worksheet Functions 4 November 28th 05 06:40 PM
Extract Numbers from Alpha-Numeric String MrBill Excel Worksheet Functions 1 November 2nd 05 05:44 PM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


All times are GMT +1. The time now is 09:46 PM.

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"