+ Reply to Thread
Results 1 to 4 of 4

excel data validation for gender column M or F

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    kathmandu, nepal
    MS-Off Ver
    2007
    Posts
    15

    excel data validation for gender column M or F

    I have a column named Gender where user have to fill either M or F. Is there any way except drop down so that I can restrict the users to enter only M or F in the cell?

  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
    53,048

    Re: excel data validation for gender column M or F

    Yup, fairly simple.

    Go into DV
    Select List
    enter M, F in the Source box
    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 BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,930

    Re: excel data validation for gender column M or F

    In addition to Ford's solution above (which is exactly what I was going to give) it's worth pointing out that this gives you a drop down that you wanted to avoid, but just because it's there doesn't mean you need to use it. It will restrict the options a user can input, but they can do that by typing rather than mousing the drop down and still have the same effect.

    BSB

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: excel data validation for gender column M or F

    Further to what Ford & BSB have said, if you uncheck the "In-cell dropdown" box then you wont get the dropdown.

+ 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: 4
    Last Post: 05-18-2017, 04:27 AM
  2. Replies: 6
    Last Post: 09-16-2013, 10:12 AM
  3. Extending VB Code to Fill Excel Cells If Column Name Matches Data Validation
    By zigojacko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 11:47 AM
  4. [SOLVED] How to create a stock column chart with error bars?? (Both gender together)
    By Orongo in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-04-2013, 10:56 AM
  5. Replies: 1
    Last Post: 07-13-2012, 10:11 AM
  6. Pivot Formula: Gender(male)/Gender(female)
    By peterso in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2011, 04:23 PM
  7. Counting data by age group, gender, and other variables
    By Biomedical in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2010, 04:46 PM

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