+ Reply to Thread
Results 1 to 2 of 2

Add Suffix & Prefix

Hybrid View

di22y Add Suffix & Prefix 06-25-2009, 06:16 PM
Richard Buttrey Re: Add Suffix & Prefix 06-25-2009, 06:34 PM
  1. #1
    Registered User
    Join Date
    01-11-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Add Suffix & Prefix

    Is it possible in Excel 97-03 to add a suffix and prefix to data that is already entered into a cell when you enter a predefined character into another cell.

    For example:

    A1 = "active"

    if I enter a "y" in to A2 i would like to add a "-" to the beginning and end of the text in A1, so it would display A1 = "-active-".

    Im am trying to do this in order to exclude this from other functions I have running on the sheet, maybe I am looking in the wrong place?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Add Suffix & Prefix

    Hi,

    You can't do this without a macro, but you could use a helper cell/column to derive the result, e.g.

    =IF(A2="y","-active-","active")
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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