ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculated value to a table (https://www.excelbanter.com/excel-discussion-misc-queries/181521-calculated-value-table.html)

JJ

Calculated value to a table
 
How would I set this calculated value up? Fat contains nine calories per
gram. I want to calculate the calories from fat for each food item. The
percentage of fat is calculated by dividing the calories from fat by the
total number of calories. What would this formula look like?
--
jj

T. Valko

Calculated value to a table
 
=fat * 9 / total calories

A2 = total calories = 100
B2 = fat = 10g

=B2*9/A2

format as %

90% of the calories come from fat


--
Biff
Microsoft Excel MVP


"JJ" wrote in message
...
How would I set this calculated value up? Fat contains nine calories per
gram. I want to calculate the calories from fat for each food item. The
percentage of fat is calculated by dividing the calories from fat by the
total number of calories. What would this formula look like?
--
jj





All times are GMT +1. The time now is 08:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com