#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andy the yeti
 
Posts: n/a
Default replace formula

Hi, thanks in advance for any help...

I have a series of 8 number codes (eg 12771497) that starts with one of the
numbers from 1 to 26, I would lile to replace for example 1 with A, 2 with B,
3 with C, 26 with Z etc

so it would change from 12771497 L771497

I tried writting a if =, but after 10 statements it failed to work, any
idea's ??

Thanks again


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default replace formula

Hi Andy,

If it's always 8 digits, how do we now whether to take 1 or 2 start digits?

iow, why is your example not A2771497?

For your example:

=CHAR(LEFT(A1,2)+64)&RIGHT(A1,6)

--
Kind regards,

Niek Otten

"Andy the yeti" <Andy the wrote in message
...
Hi, thanks in advance for any help...

I have a series of 8 number codes (eg 12771497) that starts with one of
the
numbers from 1 to 26, I would lile to replace for example 1 with A, 2 with
B,
3 with C, 26 with Z etc

so it would change from 12771497 L771497

I tried writting a if =, but after 10 statements it failed to work, any
idea's ??

Thanks again




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay
 
Posts: n/a
Default replace formula

I have a series of 8 number codes (eg 12771497) that starts with one
of the numbers from 1 to 26, I would lile to replace for example 1
with A, 2 with B, 3 with C, 26 with Z etc

so it would change from 12771497 L771497


One way:
=CHAR(CODE("A")+INT(A1/1000000)-1)&MOD(A1,1000000)
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
Can you Find and Replace values with in a formula? rascall Excel Discussion (Misc queries) 2 June 22nd 05 11:55 PM
Find and Replace Formula Links Werner Rohrmoser Excel Worksheet Functions 0 June 9th 05 12:13 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Replace worksheet name in formula linked to a different workbook Jen and Debra Excel Discussion (Misc queries) 1 February 10th 05 11:02 PM
How do I replace a negative number at the end of a formula with a. dealn2 Excel Discussion (Misc queries) 5 December 23rd 04 07:47 PM


All times are GMT +1. The time now is 04:40 AM.

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"