Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The values in column J are displayed as 1, 2, 3, 4, ...., 9, 10, 11, ....
I need all the values that are less than 10 added with leading 0, which are put into column L. (actually i want the values in column J change themselves, but i want to see the difference before and after change, so i put the new values in column L) But the following codes failed to do so.... Pls help... Thanks a lot!! ---------------------------------------------------------------------- Sub test() Dim i As Long Dim st As String For i = 2 To 150 Cells(i, 13) = TypeName(Cells(i, 10).Value) If Cells(i, 10) < 10 Then Cells(i, 11) = "yes" st = "0" & Trim(Str(Cells(i, 10).Value)) Cells(i, 12).Value = st End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change values in a column | Excel Discussion (Misc queries) | |||
How can I change all negative values in a column to = 0? | Excel Worksheet Functions | |||
How to find the largest change of values in a column | Excel Worksheet Functions | |||
Change all values in an excel column at once? | Excel Discussion (Misc queries) | |||
Better way to apply change to column of values | Excel Programming |