How do I had a suffix to a cell i.e. -1,-2,-3?

C

Chip Pearson

You need VBA code to do this.

Sub AAA()
Dim Rng As Range
Dim N As Integer: N = 1
For Each Rng In Range("A1:A5") ' change range as needed
Rng.Value = Rng.Text & "-" & Format(N, "0")
N = N + 1
Next Rng
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"controller_woman" <[email protected]>
wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top