PC Review


Reply
Thread Tools Rate Thread

Adding a -L at the end of each number within a column

 
 
Jim S
Guest
Posts: n/a
 
      20th Jul 2009
An example:

2.1.21-L
2.1.22-L
2.1.23-L
2.1.24-L
2.1.25-L

I would like to add -L to the end of each number in the column without doing
the manual process. How can I do this?

2
2.1
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.1.6
2.1.7
2.1.8
2.1.9
2.1.10
2.1.11
2.1.12
2.1.13
2.1.14
2.1.15
2.1.16
2.1.17
2.1.18
2.1.19
2.1.20
2.1.21
2.1.22
2.1.23
2.1.24
2.1.25
2.1.26
2.1.27
2.1.28
2.1.29
2.1.30
2.1.31
2.1.32
2.1.33
2.1.34
2.1.35
2.1.36
2.1.37
2.1.38
2.1.39
2.1.40
2.1.41
2.1.42
2.1.43
2.1.44
2.1.45
2.1.46
2.1.47
2.1.48
2.1.49
2.1.50
2.1.51
2.1.52
2.1.53
2.1.54
2.1.55
2.1.56
2.1.57
2.1.58
2.1.59
2.1.60
2.1.61
2.1.62
2.1.63
2.1.64
2.1.65
2.1.66
2.1.67
2.1.68
2.1.69
2.1.70
2.1.71
2.1.72
2.1.73
2.1.74
2.1.75
2.1.76
2.1.77
2.1.78
2.1.79
2.1.80
2.1.81
2.1.82
2.1.83
2.1.84
2.1.85
2.1.86
2.1.87
2.1.88
2.1.89
2.1.90
2.1.91
2.1.92
2.1.93
2.1.94
2.1.95
2.1.96
2.1.97
2.1.98
2.1.99
2.1.100
2.1.101

 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      20th Jul 2009
for rw = 2 to range("A1").End(xldown).row
cells(rw,"A").Value = cells(rw,"A").Value & "-L"
next

"Jim S" <(E-Mail Removed)> wrote in message
news:794BDDCD-2B8B-4351-B1D2-(E-Mail Removed)...
> An example:
>
> 2.1.21-L
> 2.1.22-L
> 2.1.23-L
> 2.1.24-L
> 2.1.25-L
>
> I would like to add -L to the end of each number in the column without
> doing
> the manual process. How can I do this?
>
> 2
> 2.1
> 2.1.1
> 2.1.2
> 2.1.3
> 2.1.4
> 2.1.5
> 2.1.6
> 2.1.7
> 2.1.8
> 2.1.9
> 2.1.10
> 2.1.11
> 2.1.12
> 2.1.13
> 2.1.14
> 2.1.15
> 2.1.16
> 2.1.17
> 2.1.18
> 2.1.19
> 2.1.20
> 2.1.21
> 2.1.22
> 2.1.23
> 2.1.24
> 2.1.25
> 2.1.26
> 2.1.27
> 2.1.28
> 2.1.29
> 2.1.30
> 2.1.31
> 2.1.32
> 2.1.33
> 2.1.34
> 2.1.35
> 2.1.36
> 2.1.37
> 2.1.38
> 2.1.39
> 2.1.40
> 2.1.41
> 2.1.42
> 2.1.43
> 2.1.44
> 2.1.45
> 2.1.46
> 2.1.47
> 2.1.48
> 2.1.49
> 2.1.50
> 2.1.51
> 2.1.52
> 2.1.53
> 2.1.54
> 2.1.55
> 2.1.56
> 2.1.57
> 2.1.58
> 2.1.59
> 2.1.60
> 2.1.61
> 2.1.62
> 2.1.63
> 2.1.64
> 2.1.65
> 2.1.66
> 2.1.67
> 2.1.68
> 2.1.69
> 2.1.70
> 2.1.71
> 2.1.72
> 2.1.73
> 2.1.74
> 2.1.75
> 2.1.76
> 2.1.77
> 2.1.78
> 2.1.79
> 2.1.80
> 2.1.81
> 2.1.82
> 2.1.83
> 2.1.84
> 2.1.85
> 2.1.86
> 2.1.87
> 2.1.88
> 2.1.89
> 2.1.90
> 2.1.91
> 2.1.92
> 2.1.93
> 2.1.94
> 2.1.95
> 2.1.96
> 2.1.97
> 2.1.98
> 2.1.99
> 2.1.100
> 2.1.101
>

 
Reply With Quote
 
Jim S
Guest
Posts: n/a
 
      20th Jul 2009
Do i need to put this in a macro or past it in a cell within the column?

Jim

"Patrick Molloy" wrote:

> for rw = 2 to range("A1").End(xldown).row
> cells(rw,"A").Value = cells(rw,"A").Value & "-L"
> next
>
> "Jim S" <(E-Mail Removed)> wrote in message
> news:794BDDCD-2B8B-4351-B1D2-(E-Mail Removed)...
> > An example:
> >
> > 2.1.21-L
> > 2.1.22-L
> > 2.1.23-L
> > 2.1.24-L
> > 2.1.25-L
> >
> > I would like to add -L to the end of each number in the column without
> > doing
> > the manual process. How can I do this?
> >
> > 2
> > 2.1
> > 2.1.1
> > 2.1.2
> > 2.1.3
> > 2.1.4
> > 2.1.5
> > 2.1.6
> > 2.1.7
> > 2.1.8
> > 2.1.9
> > 2.1.10
> > 2.1.11
> > 2.1.12
> > 2.1.13
> > 2.1.14
> > 2.1.15
> > 2.1.16
> > 2.1.17
> > 2.1.18
> > 2.1.19
> > 2.1.20
> > 2.1.21
> > 2.1.22
> > 2.1.23
> > 2.1.24
> > 2.1.25
> > 2.1.26
> > 2.1.27
> > 2.1.28
> > 2.1.29
> > 2.1.30
> > 2.1.31
> > 2.1.32
> > 2.1.33
> > 2.1.34
> > 2.1.35
> > 2.1.36
> > 2.1.37
> > 2.1.38
> > 2.1.39
> > 2.1.40
> > 2.1.41
> > 2.1.42
> > 2.1.43
> > 2.1.44
> > 2.1.45
> > 2.1.46
> > 2.1.47
> > 2.1.48
> > 2.1.49
> > 2.1.50
> > 2.1.51
> > 2.1.52
> > 2.1.53
> > 2.1.54
> > 2.1.55
> > 2.1.56
> > 2.1.57
> > 2.1.58
> > 2.1.59
> > 2.1.60
> > 2.1.61
> > 2.1.62
> > 2.1.63
> > 2.1.64
> > 2.1.65
> > 2.1.66
> > 2.1.67
> > 2.1.68
> > 2.1.69
> > 2.1.70
> > 2.1.71
> > 2.1.72
> > 2.1.73
> > 2.1.74
> > 2.1.75
> > 2.1.76
> > 2.1.77
> > 2.1.78
> > 2.1.79
> > 2.1.80
> > 2.1.81
> > 2.1.82
> > 2.1.83
> > 2.1.84
> > 2.1.85
> > 2.1.86
> > 2.1.87
> > 2.1.88
> > 2.1.89
> > 2.1.90
> > 2.1.91
> > 2.1.92
> > 2.1.93
> > 2.1.94
> > 2.1.95
> > 2.1.96
> > 2.1.97
> > 2.1.98
> > 2.1.99
> > 2.1.100
> > 2.1.101
> >

 
Reply With Quote
 
EricG
Guest
Posts: n/a
 
      20th Jul 2009
In a blank column, place this formula (assuming your existing data are in
column A, starting in row 2):

=A2&"-L"

Then select all of the cells in the column with the above formula, down to
the end of your data, and select "Edit/Fill/Down" from the menu, or press
Control-D.

HTH,

Eric

"Jim S" wrote:

> An example:
>
> 2.1.21-L
> 2.1.22-L
> 2.1.23-L
> 2.1.24-L
> 2.1.25-L
>
> I would like to add -L to the end of each number in the column without doing
> the manual process. How can I do this?
>
> 2
> 2.1
> 2.1.1
> 2.1.2
> 2.1.3
> 2.1.4
> 2.1.5
> 2.1.6
> 2.1.7
> 2.1.8
> 2.1.9
> 2.1.10
> 2.1.11
> 2.1.12
> 2.1.13
> 2.1.14
> 2.1.15
> 2.1.16
> 2.1.17
> 2.1.18
> 2.1.19
> 2.1.20
> 2.1.21
> 2.1.22
> 2.1.23
> 2.1.24
> 2.1.25
> 2.1.26
> 2.1.27
> 2.1.28
> 2.1.29
> 2.1.30
> 2.1.31
> 2.1.32
> 2.1.33
> 2.1.34
> 2.1.35
> 2.1.36
> 2.1.37
> 2.1.38
> 2.1.39
> 2.1.40
> 2.1.41
> 2.1.42
> 2.1.43
> 2.1.44
> 2.1.45
> 2.1.46
> 2.1.47
> 2.1.48
> 2.1.49
> 2.1.50
> 2.1.51
> 2.1.52
> 2.1.53
> 2.1.54
> 2.1.55
> 2.1.56
> 2.1.57
> 2.1.58
> 2.1.59
> 2.1.60
> 2.1.61
> 2.1.62
> 2.1.63
> 2.1.64
> 2.1.65
> 2.1.66
> 2.1.67
> 2.1.68
> 2.1.69
> 2.1.70
> 2.1.71
> 2.1.72
> 2.1.73
> 2.1.74
> 2.1.75
> 2.1.76
> 2.1.77
> 2.1.78
> 2.1.79
> 2.1.80
> 2.1.81
> 2.1.82
> 2.1.83
> 2.1.84
> 2.1.85
> 2.1.86
> 2.1.87
> 2.1.88
> 2.1.89
> 2.1.90
> 2.1.91
> 2.1.92
> 2.1.93
> 2.1.94
> 2.1.95
> 2.1.96
> 2.1.97
> 2.1.98
> 2.1.99
> 2.1.100
> 2.1.101
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      20th Jul 2009
Please post in ONE group ONLY

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Jim S" <(E-Mail Removed)> wrote in message
news:794BDDCD-2B8B-4351-B1D2-(E-Mail Removed)...
> An example:
>
> 2.1.21-L
> 2.1.22-L
> 2.1.23-L
> 2.1.24-L
> 2.1.25-L
>
> I would like to add -L to the end of each number in the column without
> doing
> the manual process. How can I do this?
>
> 2
> 2.1
> 2.1.1
> 2.1.2
> 2.1.3
> 2.1.4
> 2.1.5
> 2.1.6
> 2.1.7
> 2.1.8
> 2.1.9
> 2.1.10
> 2.1.11
> 2.1.12
> 2.1.13
> 2.1.14
> 2.1.15
> 2.1.16
> 2.1.17
> 2.1.18
> 2.1.19
> 2.1.20
> 2.1.21
> 2.1.22
> 2.1.23
> 2.1.24
> 2.1.25
> 2.1.26
> 2.1.27
> 2.1.28
> 2.1.29
> 2.1.30
> 2.1.31
> 2.1.32
> 2.1.33
> 2.1.34
> 2.1.35
> 2.1.36
> 2.1.37
> 2.1.38
> 2.1.39
> 2.1.40
> 2.1.41
> 2.1.42
> 2.1.43
> 2.1.44
> 2.1.45
> 2.1.46
> 2.1.47
> 2.1.48
> 2.1.49
> 2.1.50
> 2.1.51
> 2.1.52
> 2.1.53
> 2.1.54
> 2.1.55
> 2.1.56
> 2.1.57
> 2.1.58
> 2.1.59
> 2.1.60
> 2.1.61
> 2.1.62
> 2.1.63
> 2.1.64
> 2.1.65
> 2.1.66
> 2.1.67
> 2.1.68
> 2.1.69
> 2.1.70
> 2.1.71
> 2.1.72
> 2.1.73
> 2.1.74
> 2.1.75
> 2.1.76
> 2.1.77
> 2.1.78
> 2.1.79
> 2.1.80
> 2.1.81
> 2.1.82
> 2.1.83
> 2.1.84
> 2.1.85
> 2.1.86
> 2.1.87
> 2.1.88
> 2.1.89
> 2.1.90
> 2.1.91
> 2.1.92
> 2.1.93
> 2.1.94
> 2.1.95
> 2.1.96
> 2.1.97
> 2.1.98
> 2.1.99
> 2.1.100
> 2.1.101
>


 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      21st Jul 2009
Patrick has given you the code assuming you are familiar with macros.. This
will convert your data in Column A of the active sheet. Launch VBE using
Alt+F11 .From menu Insert a module and paste the code..Make sure you have the
code within the procedure (similar to below). Get back to workbook and trying
running the macro from Tools>Macro>...

Sub Macro()
' paste the code here
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Jim S" wrote:

> Do i need to put this in a macro or past it in a cell within the column?
>
> Jim
>
> "Patrick Molloy" wrote:
>
> > for rw = 2 to range("A1").End(xldown).row
> > cells(rw,"A").Value = cells(rw,"A").Value & "-L"
> > next
> >
> > "Jim S" <(E-Mail Removed)> wrote in message
> > news:794BDDCD-2B8B-4351-B1D2-(E-Mail Removed)...
> > > An example:
> > >
> > > 2.1.21-L
> > > 2.1.22-L
> > > 2.1.23-L
> > > 2.1.24-L
> > > 2.1.25-L
> > >
> > > I would like to add -L to the end of each number in the column without
> > > doing
> > > the manual process. How can I do this?
> > >
> > > 2
> > > 2.1
> > > 2.1.1
> > > 2.1.2
> > > 2.1.3
> > > 2.1.4
> > > 2.1.5
> > > 2.1.6
> > > 2.1.7
> > > 2.1.8
> > > 2.1.9
> > > 2.1.10
> > > 2.1.11
> > > 2.1.12
> > > 2.1.13
> > > 2.1.14
> > > 2.1.15
> > > 2.1.16
> > > 2.1.17
> > > 2.1.18
> > > 2.1.19
> > > 2.1.20
> > > 2.1.21
> > > 2.1.22
> > > 2.1.23
> > > 2.1.24
> > > 2.1.25
> > > 2.1.26
> > > 2.1.27
> > > 2.1.28
> > > 2.1.29
> > > 2.1.30
> > > 2.1.31
> > > 2.1.32
> > > 2.1.33
> > > 2.1.34
> > > 2.1.35
> > > 2.1.36
> > > 2.1.37
> > > 2.1.38
> > > 2.1.39
> > > 2.1.40
> > > 2.1.41
> > > 2.1.42
> > > 2.1.43
> > > 2.1.44
> > > 2.1.45
> > > 2.1.46
> > > 2.1.47
> > > 2.1.48
> > > 2.1.49
> > > 2.1.50
> > > 2.1.51
> > > 2.1.52
> > > 2.1.53
> > > 2.1.54
> > > 2.1.55
> > > 2.1.56
> > > 2.1.57
> > > 2.1.58
> > > 2.1.59
> > > 2.1.60
> > > 2.1.61
> > > 2.1.62
> > > 2.1.63
> > > 2.1.64
> > > 2.1.65
> > > 2.1.66
> > > 2.1.67
> > > 2.1.68
> > > 2.1.69
> > > 2.1.70
> > > 2.1.71
> > > 2.1.72
> > > 2.1.73
> > > 2.1.74
> > > 2.1.75
> > > 2.1.76
> > > 2.1.77
> > > 2.1.78
> > > 2.1.79
> > > 2.1.80
> > > 2.1.81
> > > 2.1.82
> > > 2.1.83
> > > 2.1.84
> > > 2.1.85
> > > 2.1.86
> > > 2.1.87
> > > 2.1.88
> > > 2.1.89
> > > 2.1.90
> > > 2.1.91
> > > 2.1.92
> > > 2.1.93
> > > 2.1.94
> > > 2.1.95
> > > 2.1.96
> > > 2.1.97
> > > 2.1.98
> > > 2.1.99
> > > 2.1.100
> > > 2.1.101
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding column when number exist Richard Horn Microsoft Excel Worksheet Functions 3 19th Aug 2009 06:40 PM
Re: Adding Row Number to Column Bernard Liengme Microsoft Excel Worksheet Functions 3 14th Dec 2006 10:17 PM
Adding Column Heading w/o Using a Row Number =?Utf-8?B?TkJyb3du?= Microsoft Excel Misc 3 28th Nov 2006 01:45 AM
Manually number row without adding column =?Utf-8?B?Rk5URw==?= Microsoft Excel Setup 2 19th Nov 2006 04:26 AM
Adding number to each cell in a column mbradley222 Microsoft Excel Misc 2 22nd Aug 2006 03:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.