+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting - text prefix with text contents

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    the office
    MS-Off Ver
    Excel 2007
    Posts
    5

    Conditional formatting - text prefix with text contents

    Is it possible to prefix text in a range of cells with a conditional format using the available wildcards?

    example:
    contents: 3KJ3L
    becomes: ABC3KJ3L

    the prefix must be appended automatically when data is entered. (any example where you enter a formula in column B for contents in column A will not work for my application.
    Last edited by jdmnash; 03-12-2012 at 12:48 PM. Reason: TYPO

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Conditional formatting - text prefix with text contents

    Hi and welcome to the board

    how does the first string become the second one?

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    the office
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting - text prefix with text contents

    hopefully with conditional formatting. the same way the standard formats work. (formatted for currency 5 in a cell be comes $5.00)

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Conditional formatting - text prefix with text contents

    Yes I understand, but what part of the initial string should be found in the second?

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    the office
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting - text prefix with text contents

    I apologize for my typo (fixed in OP). the entire first string stays the same. just append ABC to the beginning.

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Conditional formatting - text prefix with text contents

    Use =CONCATENATE("ABC",YourCellreference)

  7. #7
    Registered User
    Join Date
    03-12-2012
    Location
    the office
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting - text prefix with text contents

    Quote Originally Posted by darknation144 View Post
    Use =CONCATENATE("ABC",YourCellreference)
    how do you do it if the cell reference is the same cell? I just want one cell where the data is entered and the prefix is automatically added when you press enter, like with cond. formatting.
    Last edited by jdmnash; 03-12-2012 at 01:19 PM.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional formatting - text prefix with text contents

    Try this

    ="A"&$G$1


    Note: G1=Cell Reference
    Last edited by Fotis1991; 03-12-2012 at 01:55 PM. Reason: Note:
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  9. #9
    Registered User
    Join Date
    03-12-2012
    Location
    the office
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Conditional formatting - text prefix with text contents

    is there a way to do this with only conditional formatting? using a cell reference is not an option for me.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Conditional formatting - text prefix with text contents

    I'm afraid you will need VBA for this, which is not my forte

+ 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