+ Reply to Thread
Results 1 to 7 of 7

format cell to always insert specific thing, when a specific name is typed???

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    format cell to always insert specific thing, when a specific name is typed???

    Is there a way to format cells to where – when you type in a certain person’s first name, it will insert something entirely different?

    This has seemed to have happened on a computer at work. In Excel, when I type in “Martha” …
    then tab, or otherwise leave that cell, Martha changes to “•Cool”

    If I type in anyone elses name – it stays that name. But if I type in “Martha”….. it changes to “•Cool” … with the bullet and the word Cool.

    I think someone (Martha) is messing with me – lol. They probably know a “secret” format to do this. I am trying to figure it out without having to actually ask Matha.

    Hope you can help!

  2. #2
    Registered User
    Join Date
    03-06-2013
    Location
    SLC, UT
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: format cell to always insert specific thing, when a specific name is typed???

    Within the same cell, not that I know of - if you enter text into the cell, it overwrites what would have been in the cell before; however, you can enter this formula into an adjacent column (see attached example):
    =IF(A2="Martha","•Cool",A2)
    and copy that down.
    If you type names in Column A, it will then copy the name as it appears in Column A into the adjacent cell in Column B except for where you have typed Martha's name, in which case it will enter "•Cool"
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: format cell to always insert specific thing, when a specific name is typed???

    Well somehow it was done .... I tried almost every cell individually and if I typed Martha and tabbed to the next cell, OR if I clicked on any other cell, Martha changed to •Cool.

    Someone else suggested that a VBA code might have been used. I have no idea what a VBA code is. Has something to do with Macros...?

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    SLC, UT
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: format cell to always insert specific thing, when a specific name is typed???

    VBA = Visual Basic for Applications (a sort of code that you write that specifies formulas, functions, etc to apply to a set of data)
    That probably is how it was done since typing text over a formula in a cell overwrites it, but I am not good at macros or vba, sorry.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: format cell to always insert specific thing, when a specific name is typed???

    You can do this with VBA, you will need to check if there is a macro running. Your profile says 2003, and I cant remember how to view them in 2003, but try altF8
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    04-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: format cell to always insert specific thing, when a specific name is typed???

    Ok ~ I will try this next time I am at work .... which will be Monday 4/8/13, and let you know.
    Thanks!

  7. #7
    Registered User
    Join Date
    04-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: format cell to always insert specific thing, when a specific name is typed???

    I figured it out. It was done in Autocorrect.

    When you type "Martha", autocorrect to "•Cool"

    Thanks for trying to help!

+ 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