Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default how to format cell to display S("6 digit number here)

Hi guys I need to know how I can format cell such that when I enter a 6 digit
number such as "035891", it will be displayed as "S(035891)" instead.

So basically I want the number I input to be displayed in brackets with a
uppercase "S" placed in front, outside the brackets.

Also, any zeros typed in, be it at the start or end, must be displayed.

Thank you guys for your help.

Regards,
Prem
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default how to format cell to display S("6 digit number here)

On Tue, 30 Dec 2008 03:17:02 -0800, prem
wrote:

Hi guys I need to know how I can format cell such that when I enter a 6 digit
number such as "035891", it will be displayed as "S(035891)" instead.

So basically I want the number I input to be displayed in brackets with a
uppercase "S" placed in front, outside the brackets.

Also, any zeros typed in, be it at the start or end, must be displayed.

Thank you guys for your help.

Regards,
Prem


This custom format seems to work:

\S(000000)

Note that the minimum number of digits that will be displayed is six
(left-padded with leading zero's).

--ron
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 45
Default how to format cell to display S("6 digit number here)



"Ron Rosenfeld" wrote:

On Tue, 30 Dec 2008 03:17:02 -0800, prem
wrote:

Hi guys I need to know how I can format cell such that when I enter a 6 digit
number such as "035891", it will be displayed as "S(035891)" instead.

So basically I want the number I input to be displayed in brackets with a
uppercase "S" placed in front, outside the brackets.

Also, any zeros typed in, be it at the start or end, must be displayed.

Thank you guys for your help.

Regards,
Prem


This custom format seems to work:

\S(000000)

Note that the minimum number of digits that will be displayed is six
(left-padded with leading zero's).

--ron

Thank you Ron That worked as I wanted to. Appreciate the help.

Regards,
Prem
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,651
Default how to format cell to display S("6 digit number here)

On Tue, 30 Dec 2008 03:50:01 -0800, prem
wrote:

Thank you Ron That worked as I wanted to. Appreciate the help.

Regards,
Prem


You're welcome. Thanks for the feedback.
--ron
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 to format cell in excel for 12 digit number starting with a 0 lmattox Excel Discussion (Misc queries) 2 September 6th 07 09:14 PM
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu via OfficeKB.com Excel Worksheet Functions 1 February 21st 07 02:32 PM
How to validate a cell to insert from 9 digit number to 13 digit number. ramulu Excel Worksheet Functions 1 February 21st 07 10:00 AM
Format cell to display "Y" or "N"when entering a 1 or zero Brad Excel Discussion (Misc queries) 7 February 8th 07 06:50 PM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM


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