+ Reply to Thread
Results 1 to 7 of 7

Getting cells in data validation drop down

  1. #1
    Registered User
    Join Date
    03-17-2007
    Location
    India
    MS-Off Ver
    2003
    Posts
    18

    Getting cells in data validation drop down

    Hi Guys
    I have a problem and requesting help here.
    My worksheet data structure is as below.
    Column A, a long list of products from say A2 through A200.
    Column B through Column F contain various prices for the item in that row.
    So B2 through F2 will contain prices (different) for product in A2.

    I have a drop down (data validation) list at H2 where I select product. I have made a one time list all the products those are in column A (a named range basically)

    Now my requirement is, I need a second drop down (data validation) at I2 where it would show all the applicable prices for that product.
    Now since the number of products are around 200, I can not and don't want to make individual named ranges for all the product (prices)

    Can somebody help?
    As far as possible I do not want VB solution.

    Thanks in advance

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Getting cells in data validation drop down

    Is this are you looking for?
    Using OFFSET combine with MATCH to get right price list
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    03-17-2007
    Location
    India
    MS-Off Ver
    2003
    Posts
    18

    Re: Getting cells in data validation drop down

    Wow,
    This is exactly what I was looking for
    Thanks a Ton

  4. #4
    Registered User
    Join Date
    03-17-2007
    Location
    India
    MS-Off Ver
    2003
    Posts
    18

    Re: Getting cells in data validation drop down

    By the way, can following be achieved?
    1. If there is a blank in product price, OMIT from drop down. Currently the drop down show a blank
    Regards

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Getting cells in data validation drop down

    There are no blanks in prices.
    You have seeded the product column using character set.
    Chr 143 & 144 are the character id for 'blank'. rows 80 & 81.
    At the end you also overrun the maximum of the character set (255) rows 193 to 200 showing #VALUE
    torachan.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Getting cells in data validation drop down

    ASCII Characters
    ASCII is currently the standard for the relationship between a number value and a character type.
    Note: The characters 1-9 & 11-31 (?? 128-159) are not supported by Windows

    just a point of reference.
    torachan.

  7. #7
    Registered User
    Join Date
    03-17-2007
    Location
    India
    MS-Off Ver
    2003
    Posts
    18

    Re: Getting cells in data validation drop down

    Hi,
    I must have incorrectly put my problem
    What I meant was
    If for some products, some prices are blank then is there a way to omit those blanks from the drop down in the earlier solution
    So for example a product at A10, there is a price at B10, D10, F10 but C10 & E10 are blank. Now the drop down will show 2 blanks. Is there a way to omit them?
    Thanks

+ 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: 3
    Last Post: 02-11-2019, 03:54 PM
  2. Merge or group cells with same data / data validation drop down list
    By Chris Fawcett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2015, 10:59 AM
  3. [SOLVED] How to read the values from the drop-down of cells containing Data validation?
    By timmu in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-25-2014, 04:31 AM
  4. Replies: 2
    Last Post: 09-07-2013, 03:55 AM
  5. Replies: 6
    Last Post: 06-07-2012, 02:28 PM
  6. Replies: 4
    Last Post: 06-07-2012, 10:04 AM
  7. Replies: 0
    Last Post: 03-05-2012, 05:50 AM

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