Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Dynamic Custom Number Format

Is it possible to have text appended to a value entered in a cell that is
dynamic. For example, I know that using the custom number format 0.0" lbs"
would give me 4.0 lbs when entering the value 4 into the cell. Is there a
way to have the text "lbs" be dynamic based on an input elsewhere in the
spreadsheet?

Thanks.

--
Cordell
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Dynamic Custom Number Format

Here is an idea.
A1: this will contain your units of measure (other than pounds). Easiest if
entered with a space in front of it. Say your unit of measure is HRS, you
would put a space followed by HRS in A1.
A2: This is the quantity that will be added to unit of measure.
A3: =TEXT(A2,"0.0")&$A$1

whenever you wish to calculate with the value, you would use the following:
=VALUE(SUBSTITUTE(A3,$A$1,""))


--
John C


"Cordell" wrote:

Is it possible to have text appended to a value entered in a cell that is
dynamic. For example, I know that using the custom number format 0.0" lbs"
would give me 4.0 lbs when entering the value 4 into the cell. Is there a
way to have the text "lbs" be dynamic based on an input elsewhere in the
spreadsheet?

Thanks.

--
Cordell

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Dynamic Custom Number Format

Thanks John. I was hoping to do this strictly through formatting for the
very reason you capture, namely, I want to keep these as values versus
putting them into text and then converting back to values throughout the
spreadsheet. Plus, others will use the model and they aren't quite as Excel
saavy. :)
--
Cordell


"John C" wrote:

Here is an idea.
A1: this will contain your units of measure (other than pounds). Easiest if
entered with a space in front of it. Say your unit of measure is HRS, you
would put a space followed by HRS in A1.
A2: This is the quantity that will be added to unit of measure.
A3: =TEXT(A2,"0.0")&$A$1

whenever you wish to calculate with the value, you would use the following:
=VALUE(SUBSTITUTE(A3,$A$1,""))


--
John C


"Cordell" wrote:

Is it possible to have text appended to a value entered in a cell that is
dynamic. For example, I know that using the custom number format 0.0" lbs"
would give me 4.0 lbs when entering the value 4 into the cell. Is there a
way to have the text "lbs" be dynamic based on an input elsewhere in the
spreadsheet?

Thanks.

--
Cordell

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 for driver's license number excel user Excel Discussion (Misc queries) 10 July 16th 08 10:05 PM
Moving custom number format to NUMBER Doug Boufford Setting up and Configuration of Excel 3 July 23rd 07 11:58 PM
dynamic number format whitepa05 Excel Worksheet Functions 1 April 19th 07 10:30 PM
how do I add phone number format as a permanent custom format? frustratedagain Excel Discussion (Misc queries) 3 February 4th 06 03:52 AM
Format a cell with a custom number format Armor Excel Worksheet Functions 4 January 29th 06 11:25 PM


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