#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Input Box Question

I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a
whole number. How do I format the cell to get the .5 to enter into the cell
and not have it round up to 1? I have tried formatting the cell as text but
still no luck.


Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Input Box Question

Bumper

Can you give a little more detail what the inputbox is, are you displaying
this through code and is it Excel's inputbox (method) or VBA's Inputbox
function?

Just need a little more detail

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"bumper338" wrote in message
...
I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a
whole number. How do I format the cell to get the .5 to enter into the
cell
and not have it round up to 1? I have tried formatting the cell as text
but
still no luck.


Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Input Box Question

Sub input_test()
strInput = InputBox("Number Please?", "Wee!")
Range("A1") = strInput
End Sub

"bumper338" wrote:

I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a
whole number. How do I format the cell to get the .5 to enter into the cell
and not have it round up to 1? I have tried formatting the cell as text but
still no luck.


Any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Input Box Question

I forgot to mention, works fine as is when entering .5, but the cell A1 was
set to General formatting.

HTH

"Wood Grafing" wrote:

Sub input_test()
strInput = InputBox("Number Please?", "Wee!")
Range("A1") = strInput
End Sub

"bumper338" wrote:

I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a
whole number. How do I format the cell to get the .5 to enter into the cell
and not have it round up to 1? I have tried formatting the cell as text but
still no luck.


Any suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Input Box Question

That worked, thanks.

"Wood Grafing" wrote:

I forgot to mention, works fine as is when entering .5, but the cell A1 was
set to General formatting.

HTH

"Wood Grafing" wrote:

Sub input_test()
strInput = InputBox("Number Please?", "Wee!")
Range("A1") = strInput
End Sub

"bumper338" wrote:

I am using an input box to enter a number into a cell, but when I try to
enter a half number (for example .5), the cell rounds the number up to a
whole number. How do I format the cell to get the .5 to enter into the cell
and not have it round up to 1? I have tried formatting the cell as text but
still no luck.


Any suggestions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Box Question StGermain Excel Discussion (Misc queries) 2 March 12th 07 05:14 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
user input question BLW Excel Discussion (Misc queries) 2 May 23rd 05 08:41 PM
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF ALex Excel Worksheet Functions 2 March 14th 05 09:19 PM


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"