Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
teebee0831
 
Posts: n/a
Default Change a number to round up without a function

Is there a way to round numbers up so that if I enter 45.999 in cell A1, it
will display at 46 in the cell and in the formula bar?


I do not want the originally entered number to show any decimals.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Use a format of #,##0

--
HTH

Bob Phillips

"teebee0831" wrote in message
...
Is there a way to round numbers up so that if I enter 45.999 in cell A1,

it
will display at 46 in the cell and in the formula bar?


I do not want the originally entered number to show any decimals.



  #3   Report Post  
teebee0831
 
Posts: n/a
Default

That only changes how the number displays in the cell. I want to change the
number even in the formula bar so the original number with decimals does not
display anywhere.

"Bob Phillips" wrote:

Use a format of #,##0

--
HTH

Bob Phillips

"teebee0831" wrote in message
...
Is there a way to round numbers up so that if I enter 45.999 in cell A1,

it
will display at 46 in the cell and in the formula bar?


I do not want the originally entered number to show any decimals.




  #4   Report Post  
Sloth
 
Posts: n/a
Default

The way you are describing it is this. You enter 45.9 in cell A1. You want
to see 46 in the output of the cell and in the formula bar. If you type
"=A1" in cell A2 you get a result of 45.9. I don't see any reason for this,
other than to confuse yourself and others. I don't have an answer to the
problem described this way. Here are two solutions that might help you, of
you are trying something a little different.

1. Use the "Decrease Decimal" button. This is most commonly used to change
the output of the cell but have other cells still treat it as a decimal.
This doesn't change the number in the formula bar however.

2. Use the "Round" function. "=Round(45.6,0)" will yield an output of 46.
There are also Roundup and Rounddown functions. This is used to modify a
result and have other cells recognize it as a rounded number. Something like
this would be usefull when adding dollar amounts and tax. You want to round
to the nearest cent.

Sorry if these don't help, but I can't think of a single situation in which
this would be usefull. Why can't you just type 46?

"teebee0831" wrote:

Is there a way to round numbers up so that if I enter 45.999 in cell A1, it
will display at 46 in the cell and in the formula bar?


I do not want the originally entered number to show any decimals.

  #5   Report Post  
teebee0831
 
Posts: n/a
Default

The numbers are being copied and pasted from another worksheet.

"Sloth" wrote:

The way you are describing it is this. You enter 45.9 in cell A1. You want
to see 46 in the output of the cell and in the formula bar. If you type
"=A1" in cell A2 you get a result of 45.9. I don't see any reason for this,
other than to confuse yourself and others. I don't have an answer to the
problem described this way. Here are two solutions that might help you, of
you are trying something a little different.

1. Use the "Decrease Decimal" button. This is most commonly used to change
the output of the cell but have other cells still treat it as a decimal.
This doesn't change the number in the formula bar however.

2. Use the "Round" function. "=Round(45.6,0)" will yield an output of 46.
There are also Roundup and Rounddown functions. This is used to modify a
result and have other cells recognize it as a rounded number. Something like
this would be usefull when adding dollar amounts and tax. You want to round
to the nearest cent.

Sorry if these don't help, but I can't think of a single situation in which
this would be usefull. Why can't you just type 46?

"teebee0831" wrote:

Is there a way to round numbers up so that if I enter 45.999 in cell A1, it
will display at 46 in the cell and in the formula bar?


I do not want the originally entered number to show any decimals.



  #6   Report Post  
 
Posts: n/a
Default

teebee0831 wrote:
Is there a way to round numbers up so that if I enter 45.999 in cell A1, it
will display at 46 in the cell and in the formula bar?


Under Tools / Options / Calculations, select "Precision as displayed".
Then under Format / Cells / Number, select your precision.

Be forewarned: "precision as displayed" affects the entire
spreadsheet. It can lead to unexpected results, if you are
not careful.

  #7   Report Post  
swatsp0p
 
Posts: n/a
Default


AFAIK, there is nothing you can do will change the 'actual' value listed
on the formula bar of that cell without using VBA code.

Except to use Paste Special... Add (or subtract, multiply, divide) In
another cell, enter 0.1 and Copy. Go to your cell with 45.9 and Paste
Special...Add and your cell will now show 46 both in the cell and on
the formula bar.

Not pretty, but it does work in this one instance.


Good Luck

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=383525

  #8   Report Post  
teebee0831
 
Posts: n/a
Default

Thanks. That is just what I wanted.

" wrote:

teebee0831 wrote:
Is there a way to round numbers up so that if I enter 45.999 in cell A1, it
will display at 46 in the cell and in the formula bar?


Under Tools / Options / Calculations, select "Precision as displayed".
Then under Format / Cells / Number, select your precision.

Be forewarned: "precision as displayed" affects the entire
spreadsheet. It can lead to unexpected results, if you are
not careful.


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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Looking for function or formula to calculate number that is revers Ken Excel Worksheet Functions 2 February 7th 05 11:18 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
EZ Q 4 U: How do I change a number to text, based on the number UCD GRAD Excel Worksheet Functions 2 November 9th 04 09:05 PM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


All times are GMT +1. The time now is 02:44 AM.

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

About Us

"It's about Microsoft Excel"