Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default make "F51668H200AU" into "F5166-8H200AU"

I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default make "F51668H200AU" into "F5166-8H200AU"

Try:

=LEFT(A1,5) & "-" & RIGHT(A1,LEN(A1)-5)
--
Gary's Student


"fitzu" wrote:

I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default make "F51668H200AU" into "F5166-8H200AU"


Hi Fitzu, try this

=REPLACE(A1,6,0,"-")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=570567

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default make "F51668H200AU" into "F5166-8H200AU"



"Gary''s Student" wrote:

Try:

=LEFT(A1,5) & "-" & RIGHT(A1,LEN(A1)-5)
--
Gary's Student


"fitzu" wrote:

I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers


Hey How abt if I want to do the other way round, get rid of the dash"-" in
between?
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default make "F51668H200AU" into "F5166-8H200AU"

EditReplace

What: -
With: nothing


Gord Dibben MS Excel MVP

On Thu, 10 Aug 2006 16:35:02 -0700, Cruz wrote:



"Gary''s Student" wrote:

Try:

=LEFT(A1,5) & "-" & RIGHT(A1,LEN(A1)-5)
--
Gary's Student


"fitzu" wrote:

I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers


Hey How abt if I want to do the other way round, get rid of the dash"-" in
between?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default make "F51668H200AU" into "F5166-8H200AU"



"fitzu" wrote:

I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers


I have tried both sugestion but i could no get it to work if i did as
formula got an error if i tried in formatting did not work . for numbers only
I used #####"-"##### is there a wildcard i could use instead for letters or
am i inputing the formulas in to the wrong area

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default make "F51668H200AU" into "F5166-8H200AU"


I don't think you can achieve this with formatting, my formula
suggestion above involves using that formula in another cell


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=570567

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
How do I make a 3-dimensional plot in Excel? John W. Mordosky Charts and Charting in Excel 6 April 3rd 23 06:58 PM
Make rulers available in excel! MikeLinPA Excel Discussion (Misc queries) 2 December 28th 05 10:18 PM
Can I make formulas more flexible? George Excel Discussion (Misc queries) 3 November 8th 05 05:38 PM
make hidden window or workbook visible without specify the name mango Excel Worksheet Functions 1 December 30th 04 03:05 PM
make cell contents equal to null value - not blank, but empty mpierre Excel Worksheet Functions 1 December 29th 04 06:57 AM


All times are GMT +1. The time now is 03:52 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"