Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
controller_woman
 
Posts: n/a
Default How do I had a suffix to a cell i.e. -1,-2,-3?

How do I had a suffix to a cell i.e. -1,-2,-3?
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

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"
wrote in message
...
How do I had a suffix to a cell i.e. -1,-2,-3?



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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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

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"