Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Different kind of rounding

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the 2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Different kind of rounding

With a value in A20:

=IF(RIGHT(1000*A20,1)=0,A20,ROUNDUP(A20,2))

--
Gary''s Student - gsnu200821


"Sarah_Lund" wrote:

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the 2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default Different kind of rounding

=IF(ROUND(x,3)=ROUND(x,2),ROUND(x,2),ROUNDUP(x,2))

Jerry

"Sarah_Lund" wrote:

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the 2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Different kind of rounding

or =ROUNDUP(ROUND(x,3),2) ?
--
David Biddulph

"Jerry W. Lewis" wrote in message
...
=IF(ROUND(x,3)=ROUND(x,2),ROUND(x,2),ROUNDUP(x,2))

Jerry

"Sarah_Lund" wrote:

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the
2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Different kind of rounding

On Dec 21, 7:56*am, Sarah_Lund
wrote:
If the 3rd digit after the decimal is not a zero,
I need to round up the 2nd digit, otherwise leave
the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25


Caveat emptor: it is not clear what you want to do with 4.2405, for
example. A literal interpretation would say that you want 4.24. But
perhaps you mean "if the 3rd digit after the decimal point after first
rounding to 3 decimal places". It would behoove you to test any
solution with 4.2405 to be sure it is giving you what you want.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Different kind of rounding

I am apparently missing something in the OP's question, but I would think
ROUNDUP would work directly. Doesn't...

=ROUNDUP(A20,2)

do the same thing as your formula? If not, what am I overlooking?

--
Rick (MVP - Excel)


"Gary''s Student" wrote in message
...
With a value in A20:

=IF(RIGHT(1000*A20,1)=0,A20,ROUNDUP(A20,2))

--
Gary''s Student - gsnu200821


"Sarah_Lund" wrote:

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the
2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah


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
?? Some kind of look up function - Help and Thanks A Lot! TJehn Excel Worksheet Functions 2 November 10th 08 12:07 AM
Don't know what kind of question this is? LiveUser Excel Discussion (Misc queries) 0 May 5th 08 08:03 PM
Hi Everyone! Im a Student so please be kind... Julie Charts and Charting in Excel 2 March 13th 08 09:03 AM
kind of chart? Kim Charts and Charting in Excel 1 June 27th 07 02:51 AM
Is this kind of count possible?... Dan B Excel Worksheet Functions 4 December 11th 06 09:56 PM


All times are GMT +1. The time now is 04:49 PM.

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"