Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Price calculation - rounding

I´m doing price calculation in my Excel. I have a problem in rounding the
final figure. I want prices to be rounded up to the next tehth for prices
from 5 and over and lowered to the next tenth for prices 4,99 and under. Can
anyone guide me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Price calculation - rounding

I'm not sure I fully understand what you mean by a tenth but the following
adds or subtract 1/10 of the value of the cell either up or down

=IF(B6=5,B6+(B6/10),IF(B6<=4.99,B6-(B6/10)))

"Orninn" wrote:

I´m doing price calculation in my Excel. I have a problem in rounding the
final figure. I want prices to be rounded up to the next tehth for prices
from 5 and over and lowered to the next tenth for prices 4,99 and under. Can
anyone guide me?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Price calculation - rounding

=IF(A1<5,ROUNDDOWN(A1,1),ROUNDUP(A1,1))
--
David Biddulph

"Orninn" wrote in message
...
I´m doing price calculation in my Excel. I have a problem in rounding the
final figure. I want prices to be rounded up to the next tehth for prices
from 5 and over and lowered to the next tenth for prices 4,99 and under.
Can
anyone guide me?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Price calculation - rounding

Let´s take a sample. If I get a price of 1145 or more I want to round up to
1150 but if price is 1144,99 or lower I want to round down to 1140

"Mike" wrote:

I'm not sure I fully understand what you mean by a tenth but the following
adds or subtract 1/10 of the value of the cell either up or down

=IF(B6=5,B6+(B6/10),IF(B6<=4.99,B6-(B6/10)))

"Orninn" wrote:

I´m doing price calculation in my Excel. I have a problem in rounding the
final figure. I want prices to be rounded up to the next tehth for prices
from 5 and over and lowered to the next tenth for prices 4,99 and under. Can
anyone guide me?

  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Price calculation - rounding

Well, that was nothing like what you originally asked, but for your new
question, is there anything wrong with
=ROUND(A1,-1) ?
--
David Biddulph

"Orninn" wrote in message
...
Let´s take a sample. If I get a price of 1145 or more I want to round up
to
1150 but if price is 1144,99 or lower I want to round down to 1140

"Mike" wrote:

I'm not sure I fully understand what you mean by a tenth but the
following
adds or subtract 1/10 of the value of the cell either up or down

=IF(B6=5,B6+(B6/10),IF(B6<=4.99,B6-(B6/10)))

"Orninn" wrote:

I´m doing price calculation in my Excel. I have a problem in rounding
the
final figure. I want prices to be rounded up to the next tehth for
prices
from 5 and over and lowered to the next tenth for prices 4,99 and
under. Can
anyone guide me?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Price calculation - rounding

=ROUND(A1,-1) is the solution.
Thanks a lot!

"David Biddulph" wrote:

Well, that was nothing like what you originally asked, but for your new
question, is there anything wrong with
=ROUND(A1,-1) ?
--
David Biddulph

"Orninn" wrote in message
...
Let´s take a sample. If I get a price of 1145 or more I want to round up
to
1150 but if price is 1144,99 or lower I want to round down to 1140

"Mike" wrote:

I'm not sure I fully understand what you mean by a tenth but the
following
adds or subtract 1/10 of the value of the cell either up or down

=IF(B6=5,B6+(B6/10),IF(B6<=4.99,B6-(B6/10)))

"Orninn" wrote:

I´m doing price calculation in my Excel. I have a problem in rounding
the
final figure. I want prices to be rounded up to the next tehth for
prices
from 5 and over and lowered to the next tenth for prices 4,99 and
under. Can
anyone guide me?




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
rounding a number created by a formula to a retail price jack Excel Worksheet Functions 3 December 13th 06 11:28 PM
Retail Price rounding help needed Graham Clarke Excel Worksheet Functions 1 March 6th 06 06:40 PM
Price function difference in Output formula vis a vis Manual Calculation abhi_23 Excel Worksheet Functions 0 January 17th 06 07:57 AM
SUMIF function in "Price quote with tax calculation" templae Peter Excel Worksheet Functions 6 October 3rd 05 07:18 PM
MSNStockQuote Function Parameters Bobtarrel Excel Worksheet Functions 2 July 17th 05 02:36 PM


All times are GMT +1. The time now is 04:32 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"