+ Reply to Thread
Results 1 to 4 of 4

data validation

  1. #1
    Registered User
    Join Date
    02-21-2024
    Location
    Aalten, Netherlands
    MS-Off Ver
    Office 2019
    Posts
    1

    Post data validation

    Question: I am struggling with a data validation function I want to include. The thing is that I have a list of 10 rows:
    1 -No effect
    2 -Customer not annoyed
    3 -Customer slight annoyed
    4 -Customer experiences minor nuisance
    5 -Customer experiences some dissatisfaction
    6 -Customer experiences discomfort
    7 -Customer dissatisfied
    8 -Customer very dissatisfied
    9 -Potential hazardous effect
    10 -Hazardous effect

    I like to see the complete text in a data validation pulldown list, but when I make my choice I only want to see a value 1 to 10 in that particular cell. Reason: I want to see the complete text in the pulldown list to understand what the numbers stand for and make my choice but I only need a number 1 to 10 for further calculation and not the complete text.
    How can I achieve this?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: data validation

    Here is an example of one way to do it. On sheet 1 anything entered into column D is subject to validation. Upon cell selection, a form is launched with the selections. when you make the selection, the value is entered into the cell that called it.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: data validation

    Another way of getting a two column validation and pick just the number. Test column A.
    Attached Files Attached Files
    Last edited by DJunqueira; 02-22-2024 at 09:48 AM.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: data validation

    Worksheet event is used.
    Sheet 'Data entry' A2:A10 is validated.
    Validation list 'list' F1:F10
    Worksheet event code for 'Data entry' sheet.
    Please Login or Register  to view this content.
    How to use workheet event the code
    Right click on Sheet tab --> view code
    Visual Basic (VB) window opens.
    Paste the code
    Close the VB window.
    Save the file as .xlsm
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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: 1
    Last Post: 12-26-2023, 11:38 AM
  2. [SOLVED] Auto-populating formula's and Data Validation based on 1 cells data validation result
    By Newtonus_Prime in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2023, 10:21 AM
  3. [SOLVED] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  4. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  5. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  6. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 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