+ Reply to Thread
Results 1 to 10 of 10

Displaying a value in cell based on different value entered

  1. #1
    Registered User
    Join Date
    06-04-2015
    Location
    Indiana, United States
    MS-Off Ver
    Office 2013 (365 subscription)
    Posts
    3

    Displaying a value in cell based on different value entered

    Hi all,

    My name is Tom, and I'm a recent b-school IT grad. I'd love to say I'm nearly an expert with Excel, but there's something I swear I learned back in high school that I can't remember to save my life.

    I would like to format cells to display a particular value when I enter something different. It's hard to explain it as a general problem, so more specifically:

    I have a table with a list of characters in a game I play, and one property included is gender. Instead of displaying "Male" or "Female", I would like it to see the appropriate gender symbols (♂ and ♀) when I enter the respective gender. I want the symbol to display while I only have to type in the gender word.

    Any tips?

  2. #2
    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,945

    Re: Displaying a value in cell based on different value entered

    why not just use ALT 11 (male) and ALT 12 (female)?
    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

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Displaying a value in cell based on different value entered

    This little bit of code does it. If you type male or female or any capitalization variation thereof, it will autochange the cell to the Mars or Venus symbol.

    It goes directly on the tab's source. (Right click tab, view source, paste there. Adjust range as needed.)
    You'll just need to make sure you use a Font with unicode capabilities on those cells.

    Lucinda Sans Unicode or Segoe UI Symbol both work.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    06-04-2015
    Location
    Indiana, United States
    MS-Off Ver
    Office 2013 (365 subscription)
    Posts
    3

    Re: Displaying a value in cell based on different value entered

    Quote Originally Posted by FDibbins View Post
    why not just use ALT 11 (male) and ALT 12 (female)?
    My laptop doesn't seem to allow it -- should it work without a number pad?

    It's also a personal preference. I'd rather be able to type in a M or F, have AutoFill complete the value and then display the symbol, than use the symbol itself, as long as that's feasible.

    Quote Originally Posted by daffodil11 View Post
    This little bit of code does it. If you type male or female or any capitalization variation thereof, it will autochange the cell to the Mars or Venus symbol.

    It goes directly on the tab's source. (Right click tab, view source, paste there. Adjust range as needed.)
    You'll just need to make sure you use a Font with unicode capabilities on those cells.

    Lucinda Sans Unicode or Segoe UI Symbol both work.

    Please Login or Register  to view this content.
    Is there a way to do this without changing the values of the cell to the symbols? That's what I originally asked for. If not, it isn't changing the values that have already been entered nor does it do anything when I enter a new value in the target cells, so I may be doing something wrong here.

  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,945

    Re: Displaying a value in cell based on different value entered

    This thread has been marked Solved, but it seems that your question is not yet resolved, so I will remove that setting for you

  6. #6
    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,945

    Re: Displaying a value in cell based on different value entered

    My laptop doesn't seem to allow it -- should it work without a number pad?
    Im not sure, I dont use a laptop

    Im not sure if there is any way - other than VBA, not even sure that will be able to do it - to have the cell contain 1 thing, but to show another

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Displaying a value in cell based on different value entered

    To literally have it do one thing while still containing the other, you'd have to develop your own font similar to Webdings or Wingdings.
    This way the display output could be custom tailored, while retaining its described value.

  8. #8
    Registered User
    Join Date
    06-04-2015
    Location
    Indiana, United States
    MS-Off Ver
    Office 2013 (365 subscription)
    Posts
    3

    Re: Displaying a value in cell based on different value entered

    Dang, I thought I remembered being able to do something like this before (and it would've been back in the day of Office 2007 or possibly even 03). I'll keep tinkering around, but thanks.

    I never set the thread as solved, but I'll make sure to be more vigilant with any of my future threads.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Displaying a value in cell based on different value entered

    Have you tried AutoCorrect? I just managed to store M and F as ♂ and ♀. Was that how you did it before?

    In Excel 2013 it's in File / Options / Proofing.
    Last edited by FlameRetired; 06-05-2015 at 12:41 AM.

  10. #10
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Displaying a value in cell based on different value entered

    That's so dang creative.

+ 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. [SOLVED] displaying number of characters entered into a cell while typing
    By Alex Zbinden in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-13-2015, 05:22 PM
  2. Summing or displaying based on whats entered
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 11:54 AM
  3. [SOLVED] Displaying text in a cell depending on the value entered
    By Rhiannon25 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 07:21 PM
  4. Displaying Data Entered That Day
    By AWat in forum Excel General
    Replies: 1
    Last Post: 10-29-2009, 06:07 PM
  5. Replies: 1
    Last Post: 05-14-2007, 03:56 PM

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