Solved

dependent validation list using only the first 2 characters...possible in Excel or not?

Posted on 2016-08-24
8
40 Views
Last Modified: 2016-09-26
I can set up a dependent dropdown validation list using Indirect..named ranges etc. However, is it possible to do the following..
in the attached file I have a list of 4 digit codes that starts with 52, then another that starts with 50. Is it possible to set up a dependent dropdown list that is set up so that when the user enters a code starting with 52 in one cell, that on the same row in a column beside it, a list is generated which only shows the descriptions and numbers for the codes starting with that e.g. in the attached file it should only show the entries in rows B1:B20.(in blue)  Then if the user selects a number that starts with 50, they should only see the entries in B21:B27 (yellow).
Thanks
EE-dependent-dropdown-list---first-.xlsx
0
Comment
Question by:agwalsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 31

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41768377
0
 

Author Comment

by:agwalsh
ID: 41770053
This does the job thank you :-)  but I know the users...they want something that will just autopopulate with the required entries. Really what I want to know is: is it possible to do a dependent dropdown list just using the first two digits as the dependent factor. I don't think so but I'm more than willing to be proved wrong... :-)
0
 
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41770059
That is what the selection in A1 does. The drop down lists in col. A and B are dependent upon the selection in A1.
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:agwalsh
ID: 41770074
I know that and I can see that. But what the user wants is a scenario where the following happens.
She has set up a vlookup that autopopulates with the 4 digit codes. Then the users are to apply a sector to it e.g. 5000 narrows it down to the description of the codes that starts with 50 but in your solution they would have to pick 50 or 52 from the list...
0
 
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41770114
Can you upload a sample workbook with the same layout as of your original workbook with all the formulas in place and highlight the cells where you want the drop down lists and then explain your logic based on the sample workbook?
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 41771014
agwalsh,

If I understand your request correctly, you would like to see an "Intellisense-like" feature like seen in table filters.  The function behaves as a real-time filter that shows valid values that have sub-string matching of entered values.

What I'm not quite understanding is why a user would have to enter all four digits just to see the other codes that have the same first two.

-Glenn
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 250 total points
ID: 41771081
I've whipped up a possible workbook application that uses an array function, VLOOKUP, and conditional formatting to display results dynamically.

It has an input cell (A2) that can accept any input.  Any codes in the "Data" sheet that have the same first two digits as this value will display in a table to the right along with their descriptions.

The formula to retrieve the Matching Codes is an array function ([Ctrl]+[Shift]+[Enter] required):
=IFERROR(INDEX(Data!$A$1:$A$40,SMALL(IF(LEFT(Data!$A$1:$A$40,2)=LEFT($A$2,2),ROW(Data!$1:$40),10^10),ROW()-1)),"")

The formula for the Descriptions is simpler:
=IFERROR(VLOOKUP(B2,Data!A1:$B$40,2,FALSE),"")

You'll note that both look only as far as 40 rows; that can easily be updated.

Additionally, conditional formatting is used to only display table borders for matching values.  The actual range of these formulas extends down to row 40 (as does the conditional formatting rule).

Hope this helps.
-Glenn
EE-dependent-dropdown-list-first.xlsx
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41815700
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Subodh Tiwari (Neeraj) (https:#a41768377)
-- Glenn Ray (https:#a41771081)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question