Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Format a field in an equation

I use the following equation to calculate the grams for a material weigh
up. There is a sister equation that calculates the same thing in pounds minus
the *454.

=IF(ISBLANK(G14),"",(($F$11/($C$11/100))*(G14/100)) *454 & " gr.")

G14 = 1.27480 Percent of weigh up.
F11 = 220 Blend Pounds.
C11 = 2 Percentage of total Blend.

Working the equasion yields: 63843.296 gr.

What I am looking for is some way to format this to 4 places after the
decimal. Many times our number will have an ton of places past the decimal
making it very hard to read. Also due to the "gr" text concantenated to the
number, I can't use the standard format cell routine. Is there a format
command I can use in the equation to format the number before I concantenate
the "gr" to it? Thank you in advance for your help.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Format a field in an equation

I personally would not concatenate the gr at the end but rather add the gr as
part of a custom number format. Select the cell, right click, format cell,
number.

Select Custom and use a format such as this...
#,##0.0000 "Gr."
--
HTH...

Jim Thomlinson


"Smokey Lonesome" wrote:

I use the following equation to calculate the grams for a material weigh
up. There is a sister equation that calculates the same thing in pounds minus
the *454.

=IF(ISBLANK(G14),"",(($F$11/($C$11/100))*(G14/100)) *454 & " gr.")

G14 = 1.27480 Percent of weigh up.
F11 = 220 Blend Pounds.
C11 = 2 Percentage of total Blend.

Working the equasion yields: 63843.296 gr.

What I am looking for is some way to format this to 4 places after the
decimal. Many times our number will have an ton of places past the decimal
making it very hard to read. Also due to the "gr" text concantenated to the
number, I can't use the standard format cell routine. Is there a format
command I can use in the equation to format the number before I concantenate
the "gr" to it? Thank you in advance for your help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Format a field in an equation

=IF(ISBLANK(G14),"",TEXT((($F$11/($C$11/100))*(G14/100)) *454,"0.0000") & "
gr.")

--
Gary''s Student - gsnu200838
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Format a field in an equation

=IF(ISBLANK(G14),"",FIXED((($F$11/($C$11/100))*(G14/100)) *454,4,FALSE) & "
gr.")

The FALSE bit can be TRUE, it depends whether you want the number to show
the comma as a thousands separator or not.

"Smokey Lonesome" wrote:

I use the following equation to calculate the grams for a material weigh
up. There is a sister equation that calculates the same thing in pounds minus
the *454.

=IF(ISBLANK(G14),"",(($F$11/($C$11/100))*(G14/100)) *454 & " gr.")

G14 = 1.27480 Percent of weigh up.
F11 = 220 Blend Pounds.
C11 = 2 Percentage of total Blend.

Working the equasion yields: 63843.296 gr.

What I am looking for is some way to format this to 4 places after the
decimal. Many times our number will have an ton of places past the decimal
making it very hard to read. Also due to the "gr" text concantenated to the
number, I can't use the standard format cell routine. Is there a format
command I can use in the equation to format the number before I concantenate
the "gr" to it? Thank you in advance for your help.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Format a field in an equation

Thank You,
I tried all three suggestions and each worked perfectly. I do like Jim
Thomlinson's a little better because it simplified the equation but all three
were dead on what I adked for. Thank you very much to each of you.

"Smokey Lonesome" wrote:

I use the following equation to calculate the grams for a material weigh
up. There is a sister equation that calculates the same thing in pounds minus
the *454.

=IF(ISBLANK(G14),"",(($F$11/($C$11/100))*(G14/100)) *454 & " gr.")

G14 = 1.27480 Percent of weigh up.
F11 = 220 Blend Pounds.
C11 = 2 Percentage of total Blend.

Working the equasion yields: 63843.296 gr.

What I am looking for is some way to format this to 4 places after the
decimal. Many times our number will have an ton of places past the decimal
making it very hard to read. Also due to the "gr" text concantenated to the
number, I can't use the standard format cell routine. Is there a format
command I can use in the equation to format the number before I concantenate
the "gr" to it? Thank you in advance for your help.


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 format field enna49 Excel Worksheet Functions 2 June 5th 07 11:32 PM
Currency format within an equation... tvh Excel Worksheet Functions 2 January 13th 06 07:39 PM
Equation Editor- problem when editing an equation Gaby L. Excel Discussion (Misc queries) 0 September 27th 05 09:24 PM
ddd format to 'text' field rrupp Excel Discussion (Misc queries) 1 August 8th 05 10:03 PM
Adding another field if the equation = True Mindie Excel Discussion (Misc queries) 1 March 7th 05 07:17 PM


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