Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Custom Number Formatting

I am trying to set up a custom number format. I need it to be able to show
one decimal place, but only if there is a decimal in the data I enter. I
would use the standard format except that I want to have "lbs" after the
figure.

I've used "# 'lbs'" and "#.# 'lbs'" but they don't give me what I want. The
first will round off data with a decimal, and the second will place a decimal
after the number even if there is no decimal in the data entered. I need a
single format that when "75" and "87.5" are entered, it will yeild "75 lbs"
and "87.5 lbs" respectively.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Custom Number Formatting

Use:
General "lbs"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Custom Number Formatting

Thank you, Claud! That worked perfect.

"Claud Balls" wrote:

Use:
General "lbs"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Custom Number Formatting

I have run into another problem with the custom number formatting. Same basic
idea as the original post, except the data being entered comes from a formula
and sometimes has a infinite decimal. I have tried using "##.##°" as the
format, but when the figure is an even number, it places a decimal after the
number- I want to avoid that if possible. How would I do it?

"Claud Balls" wrote:

Use:
General "lbs"


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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
Custom Number Formatting BrainFRZ Excel Discussion (Misc queries) 4 January 18th 09 01:24 PM
Custom number formatting Lonnie Excel Worksheet Functions 9 February 6th 07 02:21 AM
Number custom formatting Don Excel Discussion (Misc queries) 1 June 25th 06 03:36 AM
Custom Formatting a number Hari Prasadh Excel Discussion (Misc queries) 8 January 22nd 05 01:40 PM
Custom Number formatting gizmo Excel Worksheet Functions 3 January 8th 05 01:07 AM


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