C
cp
I am trying to have the result of one cell show 2
decimals when the result is in liters and no decimals
when the result is in fluid ounces. Is there a way to
write the formula to automatically recognize which number
format to use in this same cell?
For example, in cell B1 I use the Data Validation
formula "list" to select either "U.S. Units" or "Metric
Units" from a source that contains the same text in 2
adjacent fields. In cell B4 below, I am using an If
formula that says IF(B1="U.S. Units",E4, IF(B1="Metric
Units",G4))..The number in E4 is 79 oz and the number in
G4 is 2.34 liters. The problem is that the B4 cell
either displays 79.12 oz, however I only want it to
display 79 oz. IF I remove the decimals in the cell
format feature then when I select Metric Units is shows 3
liters, and I want it to show 2.34.
Suggestions?
cp
decimals when the result is in liters and no decimals
when the result is in fluid ounces. Is there a way to
write the formula to automatically recognize which number
format to use in this same cell?
For example, in cell B1 I use the Data Validation
formula "list" to select either "U.S. Units" or "Metric
Units" from a source that contains the same text in 2
adjacent fields. In cell B4 below, I am using an If
formula that says IF(B1="U.S. Units",E4, IF(B1="Metric
Units",G4))..The number in E4 is 79 oz and the number in
G4 is 2.34 liters. The problem is that the B4 cell
either displays 79.12 oz, however I only want it to
display 79 oz. IF I remove the decimals in the cell
format feature then when I select Metric Units is shows 3
liters, and I want it to show 2.34.
Suggestions?
cp