Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to add a - after the first 5 digits can get it to work with numbers
but not with letters & numbers |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() "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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make a 3-dimensional plot in Excel? | Charts and Charting in Excel | |||
Make rulers available in excel! | Excel Discussion (Misc queries) | |||
Can I make formulas more flexible? | Excel Discussion (Misc queries) | |||
make hidden window or workbook visible without specify the name | Excel Worksheet Functions | |||
make cell contents equal to null value - not blank, but empty | Excel Worksheet Functions |