Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dd
 
Posts: n/a
Default In Excel, how do I look for the last number either 0 or 5

On our pricing sheet, we want to round up if the last number of a two decimal
place 5 or more and round down if less than 5 per cell. I know a if
statement should do it, but have not been able to complete one.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default In Excel, how do I look for the last number either 0 or 5

You might want to check out the ROUND worksheet function.

If A1 contains 2.15
=ROUND(A1, 1) equals 2.2
If A1 contains 2.149
=ROUND(A1, 1) equals 2.1

or
=ROUND(-1.475, 2) equals -1.48
=ROUND(21.5, -1) equals 20

hth
Vaya con Dios,
Chuck, CABGx3



"dd" wrote:

On our pricing sheet, we want to round up if the last number of a two decimal
place 5 or more and round down if less than 5 per cell. I know a if
statement should do it, but have not been able to complete one.

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
formatting number value to text value in excel jazzydwit Excel Worksheet Functions 2 December 29th 05 03:17 AM
Excel - turn a page number in a header from horizontal to vertical pbrookstx Charts and Charting in Excel 1 June 4th 05 01:01 AM
Excel random number JJ Excel Discussion (Misc queries) 2 May 4th 05 01:19 PM
Excel 2003 random number generator JJ Excel Discussion (Misc queries) 1 May 4th 05 01:02 PM
how to increase maximum number of columns in excel 2003 [email protected] Excel Discussion (Misc queries) 1 January 16th 05 08:13 PM


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