Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
rikg
 
Posts: n/a
Default HOW DO I FORMULATE A CELL TO ROUND $5.82 TO $5.85

In making price lists, I want my prices to round to the nearest .x5 or .x9 .
The cells containing the prices are from a formula in another cell.
  #2   Report Post  
Fredrik Wahlgren
 
Posts: n/a
Default


"rikg" wrote in message
...
In making price lists, I want my prices to round to the nearest .x5 or .x9

..
The cells containing the prices are from a formula in another cell.


I'm not sure I understand what you want. I think 5.82 should be rounded to
5.8. If you want to round to the nearest 5 cent, use
=ROUND(A1*20,0)/20

/Fredrik


  #3   Report Post  
CLR
 
Posts: n/a
Default

Assuming your price is in cell A1, put this in B1

=IF(RIGHT(TEXT(A1,"$0.00"),1)/100<=0.05,A1-RIGHT(TEXT(A1,"$0.00"),1)/100+0.0
5,A1-RIGHT(TEXT(A1,"$0.00"),1)/100+0.09)

All on one line, watch out for email word-wrap..........

Vaya con Dios,
Chuck, CABGx3




"rikg" wrote in message
...
In making price lists, I want my prices to round to the nearest .x5 or .x9

..
The cells containing the prices are from a formula in another cell.



  #4   Report Post  
Ron Coderre
 
Posts: n/a
Default

Try this:
=TRUNC(A1*10)/10+IF((MOD($A1,0.1)+0.01)<=0.06,0.05,0.09)

Does that help?

Regards,
Ron

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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
AutoFIll -by dragging the bottom-right corner of the cell Venkatesh V Excel Discussion (Misc queries) 5 February 23rd 05 04:57 PM
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
How can I get a cell locked if the condition is false? FareedAhmed76 Excel Worksheet Functions 1 February 18th 05 01:49 PM
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM


All times are GMT +1. The time now is 01:52 AM.

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

About Us

"It's about Microsoft Excel"