Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I need to Round Cells up to next .99$

i have all kinds of different prices for items that i need to make all of
them no matter what the margin i give it it turns that cell to the next .99$
never rounding down only up even if its 15.01$ i need it to go to 15.99$
thanks for help

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default I need to Round Cells up to next .99$

=ROUNDUP(A1,0)-0.01

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Garett" wrote in message ...
|i have all kinds of different prices for items that i need to make all of
| them no matter what the margin i give it it turns that cell to the next .99$
| never rounding down only up even if its 15.01$ i need it to go to 15.99$
| thanks for help
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default I need to Round Cells up to next .99$

You don't actually need to use VB to do this. You can simply use:
=CEILING(A1+0.01,1)-0.01
**I've assumed that you want $16- 16.99 and 16.99 to stay at 16.99.

However, if you want to use VB, just do basically the same thing. Do
something like this:
Sub test_round()
For i = 1 To 4
initial = Cells(i, 1).Value
newValue = Application.WorksheetFunction.Ceiling(initial +
0.01, 1) - 0.01
Cells(i, 2).Value = newValue
Next
End Sub
Here I've assumed the initail values are in column A, and the resulting
values will be placed in column B. I've also assumed there are only 4
rows of numbers to be changed, but without knowing more about the data
structure, this is the best I can do.


Garett wrote:
i have all kinds of different prices for items that i need to make all of
them no matter what the margin i give it it turns that cell to the next .99$
never rounding down only up even if its 15.01$ i need it to go to 15.99$
thanks for help


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need to Round Cells up to next .99$


Assuming value to be rounded is in cell A1:

=ROUNDUP(A1,0)-0.01


--
Mark K
------------------------------------------------------------------------
Mark K's Profile: http://www.excelforum.com/member.php...o&userid=14117
View this thread: http://www.excelforum.com/showthread...hreadid=573252

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default I need to Round Cells up to next .99$

With you data in A1: and downward

enter into B1 =INT(A1)+0.99
and Copy down



"Garett" wrote:

i have all kinds of different prices for items that i need to make all of
them no matter what the margin i give it it turns that cell to the next .99$
never rounding down only up even if its 15.01$ i need it to go to 15.99$
thanks for help

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
Sumif trying to Sum cells with Round Function Mike H. Excel Discussion (Misc queries) 5 August 14th 08 01:27 PM
How do I format cells to round up? Tom Excel Worksheet Functions 6 March 3rd 08 10:50 PM
Increase all cells by a % and round up? sacredarms Excel Discussion (Misc queries) 1 December 11th 05 03:04 AM
round up cells to $xx.99 RVV Excel Worksheet Functions 2 March 31st 05 08:31 PM
How do I format cells to round to the nearest thousands without .. excel user Excel Discussion (Misc queries) 1 March 16th 05 08:10 PM


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