Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Adding hyphen within a set of numbers

Hi all,

I usually face set of numbers that consists of 9 numbers. E.g
123456789, 987654321.

I'm figuring how to add a hyphen between the 8th and 9th character
which will enable the numbers to look something like 12345678-9,
98765432-1. The set of numbers of cos varies day to day.

Pls help. Appreciate if anyone could enlighten me. =))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Adding hyphen within a set of numbers

=LEFT(A1,8)&"-"&RIGHT(A1)
--
David Biddulph

Jacqueline wrote:
Hi all,

I usually face set of numbers that consists of 9 numbers. E.g
123456789, 987654321.

I'm figuring how to add a hyphen between the 8th and 9th character
which will enable the numbers to look something like 12345678-9,
98765432-1. The set of numbers of cos varies day to day.

Pls help. Appreciate if anyone could enlighten me. =))



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Adding hyphen within a set of numbers

Do you need to physically change the values to include the hyphen or would
simply leaving the number as is and displaying it with the hyphen be okay
(that is, the cell value would still be 123456789, but it would display as
12345678-9)? If this would be alright, then just Custom Format
(Format/Cells/Custom from the menu bar) using 00000000-0 as the custom
format Type pattern.

--
Rick (MVP - Excel)


"Jacqueline" wrote in message
...
Hi all,

I usually face set of numbers that consists of 9 numbers. E.g
123456789, 987654321.

I'm figuring how to add a hyphen between the 8th and 9th character
which will enable the numbers to look something like 12345678-9,
98765432-1. The set of numbers of cos varies day to day.

Pls help. Appreciate if anyone could enlighten me. =))


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
Adding hyphen to text in cell Penny[_2_] Excel Discussion (Misc queries) 6 March 25th 09 02:08 AM
Adding numbers or characters to existing numbers Jannie Excel Worksheet Functions 9 February 20th 07 03:08 PM
How to insert hyphen "-" in between two numbers Big Cat Excel Worksheet Functions 3 August 6th 06 07:18 PM
Adding numbers to current numbers mk Excel Worksheet Functions 2 May 16th 05 11:25 PM
many numbers in one cell separated by hyphen. baju Excel Discussion (Misc queries) 6 February 9th 05 02:15 PM


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