#1   Report Post  
Sloth
 
Posts: n/a
Default Custom Number Format

I want a format that will show "35.4" as "35.4 lb/ft" and "35" as "35 lb/ft".
The trick being the decimal is not shown for the second number.

I currently use two different versions depending on the number, but I would
like this to be automaticly done in the format.
  #2   Report Post  
Carole O
 
Posts: n/a
Default Custom Number Format

Assuming 35.4 is in A1, in another cell, enter =A1&" lb/ft". Drag that down
the column to capture the 35 and change it to 35 lb/ft.

Carole O

"Sloth" wrote:

I want a format that will show "35.4" as "35.4 lb/ft" and "35" as "35 lb/ft".
The trick being the decimal is not shown for the second number.

I currently use two different versions depending on the number, but I would
like this to be automaticly done in the format.

  #3   Report Post  
MrShorty
 
Posts: n/a
Default Custom Number Format


Another approach:

Format-Cells-Number-Custom-Type general "lb/ft"


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=482354

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default Custom Number Format

Hi

Try formatting as 0.# "ib/ft"

Regards

Roger Govier


Sloth wrote:
I want a format that will show "35.4" as "35.4 lb/ft" and "35" as "35 lb/ft".
The trick being the decimal is not shown for the second number.

I currently use two different versions depending on the number, but I would
like this to be automaticly done in the format.

  #6   Report Post  
Sloth
 
Posts: n/a
Default Custom Number Format

I should have shown the two formats I use.
0.0 "lb ft"
and
0 "lb ft"
If I use yours for 35 it will show as 35. lb/ft which is why I need to
change the format for number without any decimal digits.

MrShorty's method works. I didn't realise you could use General with other
stuff in the custom format.

Unfortunately Carole's method is not applicable because I want the cell to
still be a number. I just wanted an aesthetic change.

Thanks everyone for your input.


"Roger Govier" wrote:

Typo - that should have been

0.# "lb/ft" of course

Regards
Roger

Roger Govier
Technology 4 U

Tel 01873 880266 Mob 07970 786191



Roger Govier wrote:

Hi

Try formatting as 0.# "ib/ft"

Regards

Roger Govier


Sloth wrote:

I want a format that will show "35.4" as "35.4 lb/ft" and "35" as "35
lb/ft". The trick being the decimal is not shown for the second number.

I currently use two different versions depending on the number, but I
would like this to be automaticly done in the format.




  #7   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Custom Number Format

On Fri, 4 Nov 2005 14:19:08 -0800, "Sloth"
wrote:

I want a format that will show "35.4" as "35.4 lb/ft" and "35" as "35 lb/ft".
The trick being the decimal is not shown for the second number.

I currently use two different versions depending on the number, but I would
like this to be automaticly done in the format.



Format/Cells/Number/Custom Type: General" lb/ft"

However, if the 35.4 is really a calculated number with more precision, you
will have to round it to 1 decimal place within your formula in order to assure
that only one decimal will be displayed.


--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
Custom Number format question Joh Excel Discussion (Misc queries) 5 October 25th 05 02:31 PM
number format Ivan Excel Discussion (Misc queries) 2 October 14th 05 02:08 PM
Custom number format - Accounting [email protected] Excel Worksheet Functions 0 October 11th 05 06:21 PM
Custom number format always defaults last number to 0. scubadave Excel Discussion (Misc queries) 2 June 15th 05 10:20 PM
How do I format a cell for a custom part number? PJ Excel Discussion (Misc queries) 4 March 3rd 05 03:57 AM


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