+ Reply to Thread
Results 1 to 3 of 3

Adding Suffix To Cell Value

  1. #1
    Registered User
    Join Date
    12-28-2017
    Location
    North Carolina
    MS-Off Ver
    2016
    Posts
    13

    Adding Suffix To Cell Value

    Hello,

    I'm wanting a macro that will go down a list of cells all containing the same cell value and add an "A", "B", "C", etc in sequential order no matter where the cells is located. There may be blanks in between the cell values so I don't want letters added to the blank cells. Unfortunately, I don't have much of anything started as I'm not sure how to go about doing this.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Adding Suffix To Cell Value

    Just a good idea to start:

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.

    Otherwise we don't know where the cells are, where the list of values is, etc.
    Best Regards,

    Kaper

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Adding Suffix To Cell Value

    You can use a non VBA solution that will take care of blanks as well:

    =A1&IF(COUNTIF(A:A,A1)>1,MID("ABCDEFGHIJK",COUNTIF($A$1:A1,A1),1),"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 04-17-2017, 09:49 PM
  2. Adding an ascending suffix
    By mxracer in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-03-2016, 06:35 AM
  3. [SOLVED] Adding Suffix to a date variable
    By malczyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2015, 06:34 AM
  4. Adding a random prefix and suffix to a cell
    By alexadept in forum Excel General
    Replies: 1
    Last Post: 04-02-2015, 07:42 PM
  5. [SOLVED] Adding Suffix to a cell value
    By AliiShariff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2012, 09:04 AM
  6. Adding a suffix to a cell
    By darren1908 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2008, 10:23 AM
  7. adding a string prefix/suffix to a cell
    By elroy in forum Excel General
    Replies: 4
    Last Post: 03-08-2007, 04:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1