+ Reply to Thread
Results 1 to 7 of 7

Read data adjacent to Data Validation Source

  1. #1
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Read data adjacent to Data Validation Source

    I’m trying to display the value from a cell next to a data validation source cell. I'm having trouble referring to named ranges while doing this.
    On sheet “data Entry” I have dependant Data Validation selection cells “WDdetails” and “WallDetails” (both with green fill in the attached file). I want cell E10 (red fill) to display the value from the cell adjacent to the source of WallDetails.
    The data comes from Sheet “Lists”

    For example if I select:
    “NOT weatherstriped NO storm” then
    “W/D one side only”
    I want to read .018 (from Lists:C2) in cell E10
    It works if in E10 I use formula:
    Please Login or Register  to view this content.
    However, because I need to expand this data to include more choices I need the array in the first MATCH, “
    Please Login or Register  to view this content.
    ” to be driven by WDdetails, not hard coded.
    I've tried a lot to sort this out this weekend and am at the cry uncle point.
    This is the closest I’ve come but it gives me a REF error:
    Please Login or Register  to view this content.
    Sorry for the crazy jargon but I’m trying to keep the terms in line with an old trade document.
    Thanks
    Robert
    Attached Files Attached Files
    Last edited by Hammer_757; 08-25-2013 at 10:20 PM.

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

    Re: Read data adjacent to Data Validation Source

    Hi

    It seems it just doesnt like how you are creating that dynamic range on Lists

    When I change the range from
    =Lists!$B$2:INDEX(Lists!$B:$B,COUNTA(Lists!$B:$B))
    to
    =Lists!$B$2:$B100, your formula works fine
    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
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Read data adjacent to Data Validation Source

    Hi,

    Try this formula in cell E10 on the "Data Entry" worksheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,997

    Re: Read data adjacent to Data Validation Source

    Also, what range of cells is ValData supposed to reference?
    Ben Van Johnson

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

    Re: Read data adjacent to Data Validation Source

    Pl see the attached file . I feel this is what you want.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Read data adjacent to Data Validation Source

    Ben, ValData defines the range that contains the Validation Data. this data validation method comes from [contextures.com]http://www.contextures.com/xlDataVal15.html[/URL]
    thanks
    Robert

  7. #7
    Forum Contributor
    Join Date
    03-21-2004
    Location
    Norwich, CT USA
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Read data adjacent to Data Validation Source

    Thank you for your help kvsrinivasamurthy. your method worked as you sent it. I made a minor adjustment so I could use just one Valdata named range instead of two. Also I named the header row as you suggested.
    Thanks
    Robert

+ 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] How to read Chart Data source
    By gjcase in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-08-2013, 09:17 AM
  2. [SOLVED] Data Validation - replace choices for multiple sheets of source data
    By mshaw1970 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 07:34 AM
  3. data validation-Can the source of the validation criteria be dfrom a different sheet?
    By yael pinkert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2009, 04:28 AM
  4. External Data Source and Adjacent Column / Data
    By Tim Miller in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 06:25 PM
  5. [SOLVED] specify date source for x-axis (adjacent to data column in Excel)
    By retired general in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-08-2006, 08:15 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