Seems like forever since I been working on an Excel project that brought me here to ask a question, but here goes...
I have a problem with cells changing their number format after the first entry.
I have two columns set up for the user to input a measurement, and then immediately to the right of each, the next cell is a validated list of measurement types: in, ft, mm, cm.
The idea is that the user enters the dimensions of the item and then picks the measurement type. Maybe it's 31 1/2 in x 40 9/16 in if using imperial measures. But they might also use metric. In that case, it might be 77.47 cm x 103.03 cm. Both the numbers entered and the measurement type are then used to figure out the area of the item in question. Simple!
But here's the problem: if the user first entered a fraction, Excel changes the cell format from general to fraction. If the user goes back and decides they want to now enter a measurement in metric format, the cell format remains in fractions, making entry problematic (anything after a decimal will be converted to a fraction).
I'm not trying to convert the entered number upon changing the measurement type (nothing that fancy). Just trying to figure out how to handle the formatting of the cell with the measurement number so that it can accept both type of entries and not get forced to one style.
Any thoughts?
I have a problem with cells changing their number format after the first entry.
I have two columns set up for the user to input a measurement, and then immediately to the right of each, the next cell is a validated list of measurement types: in, ft, mm, cm.
The idea is that the user enters the dimensions of the item and then picks the measurement type. Maybe it's 31 1/2 in x 40 9/16 in if using imperial measures. But they might also use metric. In that case, it might be 77.47 cm x 103.03 cm. Both the numbers entered and the measurement type are then used to figure out the area of the item in question. Simple!
But here's the problem: if the user first entered a fraction, Excel changes the cell format from general to fraction. If the user goes back and decides they want to now enter a measurement in metric format, the cell format remains in fractions, making entry problematic (anything after a decimal will be converted to a fraction).
I'm not trying to convert the entered number upon changing the measurement type (nothing that fancy). Just trying to figure out how to handle the formatting of the cell with the measurement number so that it can accept both type of entries and not get forced to one style.
Any thoughts?