Bill Hamilton
Board Regular
- Joined
- Mar 30, 2004
- Messages
- 95
I have a worksheet that requires the user to insert a number with one decimal (eg 10.1) but the number has to be displayed in that cell only as the integer part of the number (eg 10). The number is copied by formula to another place in the sheet and that cell has to display the decimal number (eg 10.1). The numbers will range from 0.0 to 100.9.
Setting the second cell as a 1-DP cell is not a problem but formatting the entry cell to show just the integer part is. No matter how I format the cell, entering anything with a decimal of 5 or more will round the number up to the next integer.
I know I could get the user to input the decimal number to the cell that shows the decimals and refer to it with the INT function in the integer cell, but there are 12 of these numbers plus other data to enter into the input area with the decimal numbers appearing in a summary area and I don't want the users to get confused about where to put things.
I've researched this a bit and found many 'solutions' but none has worked for me or even been applicable to this situation. I obviously can't use the INT or TRUNC functions in the cell the user is entering data to and formatting it as ##0 or for it to have 0 decimal places still round the number up.
Any ideas?
(Excel 365 on Windows 11)
Setting the second cell as a 1-DP cell is not a problem but formatting the entry cell to show just the integer part is. No matter how I format the cell, entering anything with a decimal of 5 or more will round the number up to the next integer.
I know I could get the user to input the decimal number to the cell that shows the decimals and refer to it with the INT function in the integer cell, but there are 12 of these numbers plus other data to enter into the input area with the decimal numbers appearing in a summary area and I don't want the users to get confused about where to put things.
I've researched this a bit and found many 'solutions' but none has worked for me or even been applicable to this situation. I obviously can't use the INT or TRUNC functions in the cell the user is entering data to and formatting it as ##0 or for it to have 0 decimal places still round the number up.
Any ideas?
(Excel 365 on Windows 11)