#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sturart
 
Posts: n/a
Default Rounding decimal

Working on a spread sheet that I would like a set cell (example $10.01) to be
rounded to the nearest $.95, $.50. $25. I'm want to round on my pricing to
these amounts.

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Rounding decimal

Ok, assuming I understand your criteria correctly, that you want all prices
to round to the NEAREST of these 3 possibilities (.25, .50, .95) then this
should work:

=IF(A1-INT(A1)<=0.1,INT(A1)-0.05,IF(A1-INT(A1)<=0.375,INT(A1)+0.25,IF(A1-INT(A1)<=0.735,INT(A1)+0.5,INT(A1)+0.95)))

HTH,
Elkar

"Sturart" wrote:

Working on a spread sheet that I would like a set cell (example $10.01) to be
rounded to the nearest $.95, $.50. $25. I'm want to round on my pricing to
these amounts.

Thanks for your 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
Decimal Places - Settings for Auto Rounding Up/Down Holmes, Maria Excel Worksheet Functions 2 February 10th 06 05:52 PM
how to loose all numbers after decimal (not rounding) arjay9 Excel Worksheet Functions 3 January 13th 06 01:00 AM
Formula for: Format Decimal places? nastech Excel Discussion (Misc queries) 16 November 4th 05 02:25 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
Decimal places and rounding up (or down) Ash New Users to Excel 3 February 15th 05 08:16 PM


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