A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Rounding Up question



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 04:54 PM posted to microsoft.public.excel.worksheet.functions
spreadsheetlady
external usenet poster
 
Posts: 6
Default Rounding Up question

Hi,

A1 has the ROUNDUP Function referenced to B1: ROUNDUP(B1,0).
Example: B1 says: 6.2 A1 will roundup to 7. Perfect!

This works 99% of the time.

But in a special case B1 says 6.0 - A1 still rounds up to 7.

I expanded B1 decimal places and found B1 in this case really says: 6.00044.
Hence the reason for A1 rounding to 7.

Is there anyway to tell the A1 ROUNDUP function to not round up when the
first decimal place says zero? Or to only go out one decimal place when
rounding up?

Hope I worded my question that it can be understood.

Thanx in advance, Amy.



  #2  
Old April 15th, 2010, 05:13 PM posted to microsoft.public.excel.worksheet.functions
Bernd P
external usenet poster
 
Posts: 613
Default Rounding Up question

Hello Amy,

You can use something like
=ROUNDUP(ROUND(B1,5),0)

Regards,
Bernd
  #3  
Old April 15th, 2010, 05:20 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Rounding Up question

Hi,

One way

=ROUNDUP(LEFT(B1,FIND(".",B1)+1),0)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"spreadsheetlady" wrote:

Hi,

A1 has the ROUNDUP Function referenced to B1: ROUNDUP(B1,0).
Example: B1 says: 6.2 A1 will roundup to 7. Perfect!

This works 99% of the time.

But in a special case B1 says 6.0 - A1 still rounds up to 7.

I expanded B1 decimal places and found B1 in this case really says: 6.00044.
Hence the reason for A1 rounding to 7.

Is there anyway to tell the A1 ROUNDUP function to not round up when the
first decimal place says zero? Or to only go out one decimal place when
rounding up?

Hope I worded my question that it can be understood.

Thanx in advance, Amy.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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