+ Reply to Thread
Results 1 to 7 of 7

Data Validation Combo needs to return a different value

  1. #1
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Data Validation Combo needs to return a different value

    I want to be able to use Data Validation to validate against a List of Names (Places), then once selected use VLOOKUP to get a Post Code. I have a lookup table, something like this;

    Postcodes
    Home XX1 1YY
    Office XX2 1YY
    Post Office YY3 1AB
    Pizza House ZZ 4 5SS

    So my Data Validation List would present me with Home, Office, Post Office etc., but when I select it the cell gets the Post Code. I hope that makes sense.

    I am thinking I need to link the output of the Data Validation to a VLOOKUP, whcih could well be a bit of VBA (which I am not that hot on, but I would like to be better at).

    Any suggestions/advice would be appreciated.

    Thanks in anticipation.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Data Validation Combo needs to return a different value

    So will you data validation have only Home, or will it have Home XX1 1YY?

    And what is your required output when selected?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Data Validation Combo needs to return a different value

    Validation will say Home, Office, .....

    and if Office is selected will return XX2 1YY.

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Data Validation Combo needs to return a different value

    Try this -

    Its a simple Vlookup like

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Data Validation Combo needs to return a different value

    Sorry, my original explanation was a little brief, and I think I am hoping for more than can be done.

    The Post Code fits in one cell, and I was hoping that once the selection had been made, the cell where the validation is would be overwritten with the Post Code. ie if the Data Validation is on cell A1, I would use the pull down on that cell, select Post Office, then it would come back and display YY3 1AB in cell A1.

    Sorry again, for an overly brief question.

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Data Validation Combo needs to return a different value

    If it would display YY3 1AB on Cell A1, the Drop Down Would be over ridden..

  7. #7
    Registered User
    Join Date
    12-05-2011
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    57

    Re: Data Validation Combo needs to return a different value

    Yes, that's why I think this is a fanciful wish. ie probably cannot be done.

    Effectively I want the drop down to show one thing, but return another linked thing.

+ 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. Combo Box Data Validation?
    By leffiegrl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2011, 07:41 AM
  2. Combo box or Data validation
    By shilloh in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 05-27-2011, 07:59 AM
  3. Data Validation /combo box
    By Sibrulotte in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2011, 04:39 PM
  4. Combo box? Data Validation?
    By JChandler22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2007, 02:00 PM
  5. Combo Box or Data Validation
    By FA in forum Excel General
    Replies: 17
    Last Post: 09-27-2005, 09:05 AM

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