I want to format a cell to display 6'-6 1/2". The trouble occurs when the fractionportion is zero. I get 6'-6 0". To solve this, I created an IIf statement.
=IIf([fraction]=0,[feet] & "' - " & [inch] & """",[feet] & "' - " & [inch] & """")
When the fraction is 0, I get the correct output with the fraction eliminated. However, when there is a fractional portion, I get an error message. However, if I put the [feet] & "' - " & [inch] & """" in its own cell, I get the correct output.
Any suggestions?
=IIf([fraction]=0,[feet] & "' - " & [inch] & """",[feet] & "' - " & [inch] & """")
When the fraction is 0, I get the correct output with the fraction eliminated. However, when there is a fractional portion, I get an error message. However, if I put the [feet] & "' - " & [inch] & """" in its own cell, I get the correct output.
Any suggestions?