L
ltyar
Hello all-
Although this problem seems simple on the surface, i am not finding the
answers i need in the help section.
When using the spreadsheet to enter a molecular formula with the intent
of generating a molecular weight, it is also desirable to create a cell
which will display the entire formula in addition. ***
In order to display the entire formula in one cell I have partially
achieved, using the "C"&A17&"H"&B17&"N"&C17&"Cl"&D17etc method (if
anybody knows of a more elegant way to achieve that result, i'm all
ears).
However, this method requires that compound that have zero chlorines or
sulfurs or whatever to show up as (for example) C4H7N5S0Cl0. The
software we use accepts formulae copied from the Excel speadsheet and
pasted into the appropriate boxes, but it cannot handle these zeros.
How do i set a conditional either in each cell or on the entire
spreadsheet that if D17's value is zero, the "Cl" is not displayed in
the formula? Same with each column, to be specific, be it C, N, H, S,
Cl, etc.
Thanks a ton
***Background on how this is set up: If you picture columns whose
headers are C,H,N,Cl,O, S etc, the values underneath are the number of
each of those atoms types in the molecule. I have a formula cell that
calculates the MW (12.01*A17+1.008*B17+14.01*C17 etc) using the
molecule weight of each atom times the number of those atoms in the
molecule.
Although this problem seems simple on the surface, i am not finding the
answers i need in the help section.
When using the spreadsheet to enter a molecular formula with the intent
of generating a molecular weight, it is also desirable to create a cell
which will display the entire formula in addition. ***
In order to display the entire formula in one cell I have partially
achieved, using the "C"&A17&"H"&B17&"N"&C17&"Cl"&D17etc method (if
anybody knows of a more elegant way to achieve that result, i'm all
ears).
However, this method requires that compound that have zero chlorines or
sulfurs or whatever to show up as (for example) C4H7N5S0Cl0. The
software we use accepts formulae copied from the Excel speadsheet and
pasted into the appropriate boxes, but it cannot handle these zeros.
How do i set a conditional either in each cell or on the entire
spreadsheet that if D17's value is zero, the "Cl" is not displayed in
the formula? Same with each column, to be specific, be it C, N, H, S,
Cl, etc.
Thanks a ton
***Background on how this is set up: If you picture columns whose
headers are C,H,N,Cl,O, S etc, the values underneath are the number of
each of those atoms types in the molecule. I have a formula cell that
calculates the MW (12.01*A17+1.008*B17+14.01*C17 etc) using the
molecule weight of each atom times the number of those atoms in the
molecule.