#1   Report Post  
Posted to microsoft.public.excel.programming
gwc gwc is offline
external usenet poster
 
Posts: 62
Default Truncate

A B
1348.63 134.86
1174.14 117.41
1298.76 129.87
768.33 76.83
742.99 74.29
14.72 1.47
0.09 .00
26.03 2.60
26.28 2.62
26.70 2.67
3.66 .36
3.70 .37
0.68 .06
0.69 .06
186.62 18.66
374.43 37.44
394.16 39.41
402.12 40.21
403.57 40.35
417.91 41.79
322.45 32.24
328.36 32.83
334.73 33.47
341.26 34.12
27272.11 2727.21
50.79 5.07
147.12 14.71
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Truncate

Hi,

Am Mon, 16 Dec 2013 09:29:48 -0800 (PST) schrieb GWC:

A B
1348.63 134.86
1174.14 117.41
1298.76 129.87
768.33 76.83
742.99 74.29
14.72 1.47
0.09 .00
26.03 2.60
26.28 2.62
26.70 2.67
3.66 .36
3.70 .37
0.68 .06
0.69 .06
186.62 18.66
374.43 37.44
394.16 39.41
402.12 40.21
403.57 40.35
417.91 41.79
322.45 32.24
328.36 32.83
334.73 33.47
341.26 34.12
27272.11 2727.21
50.79 5.07
147.12 14.71


in B1 try:
=ROUNDDOWN(A1/10,2)
and copy down


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Truncate

Hi,

Am Mon, 16 Dec 2013 18:41:24 +0100 schrieb Claus Busch:

in B1 try:
=ROUNDDOWN(A1/10,2)
and copy down


if you want to do it in place with VBA then try:

Sub Test()
Dim LRow As Long
Dim rngC As Range

LRow = Cells(Rows.Count, 1).End(xlUp).Row
For Each rngC In Range("A1:A" & LRow)
rngC = WorksheetFunction.RoundDown(rngC / 10, 2)
Next
End Sub


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
Truncate GWC Excel Programming 1 December 16th 13 06:35 PM
Truncate Elizabeth Excel Discussion (Misc queries) 4 November 18th 09 09:50 PM
How do you truncate 2.22 to just 0.22? Crackles McFarly Excel Worksheet Functions 6 September 5th 07 01:14 AM
How do I truncate something like this? ckeys Excel Discussion (Misc queries) 6 December 30th 06 05:49 PM
Truncate Steven Excel Programming 11 April 20th 04 12:11 PM


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