Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2023, 10:36 AM
Cptnrsk Cptnrsk is offline Excel Data Validation Windows 10 Excel Data Validation Office 2016
Novice
Excel Data Validation
 
Join Date: Mar 2023
Posts: 1
Cptnrsk is on a distinguished road
Default Excel Data Validation

Hi, I am creating a spreadsheet that pulls information into data validation list and I'm trying to get a second data validation list to pull subsequent data associated with the first.

My first data validation list is using offset(worksheet!C2,0,0,SUMPRODUCT(--(worksheet!C2:C1000<>""))) to pull authors from the array and makes sure I don't get duplicates.



My second data validation list I'm trying to use index match to work with the first and only show books that are associated with the author. I'm using a simple index match formula but unfortunately if I have multiple books with the same author it won't pull all the books for the list. It will only list the first book found. Does anyone know how to overcome this?

Thanks -
Reply With Quote
  #2  
Old 03-01-2023, 11:22 PM
ArviLaanemets ArviLaanemets is offline Excel Data Validation Windows 8 Excel Data Validation Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

My advice is:
Have a sheet with Table where all authors are listed;
Have a sheet with Table where all books with their authors are listed (in case the book has several authors, this book will have a row for every author in this Table). Authors in this Table are selected using Data validation list based on authors Table;
Have a hidden sheet with a column for every author in authors Table, which displays from books table all books from given author in matching column (to get it work, you must have in books table a (hidden) calculated column, where a number of book for given author is calculated (1st book of this author, second book, etc.).

How complex it will go on your report sheet (where you select author(s) and author books) depends on you selecting there a single author and his/her books, or having a Table where you select different authors and their books.

In 1st case, you have a data validation list above selected books table, based on author's table, where you select an author. Based on selected author, a dynamic Named Range selects a column with books from column of hidden table, where books from this author are listed. How many rows are in this dynamic Named range is determined by max order number for this author in books Table. And this Named Range is used as source for books validation list in your report sheet.

In 2nd case, you'll have data validation lists for authors in column of your report table. And you have to create the dynamic Named Range (needed for books validation list) dynamic not only according the selected author, but on report Table row too. I.e. for every row in report table, the dynamic Named Range from books Table must be calculated depending on selected author in given row of report Table.

It is not easy to do, but it is doable!
Reply With Quote
  #3  
Old 03-03-2023, 03:50 AM
p45cal's Avatar
p45cal p45cal is online now Excel Data Validation Windows 10 Excel Data Validation Office 2019
Expert
 
Join Date: Apr 2014
Posts: 867
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Suggest you attach a workbook with the minimum in it to show what you're wanting to do, with realistic data. This will answer a lot of unknowns and save us guessing.
In addition (quite important), tell us what version of Excel you're using.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Vlookup & Data Validation list box with AutoComplete Bo_Knows_04 Excel Programming 2 02-24-2021 09:10 PM
Excel Data Validation Automate Job application word doc to Excel (with data validation) dylansmith Office 1 02-11-2018 12:58 PM
Excel Data Validation Excel Data Validation Issue JTRothfmu11 Excel 1 08-12-2016 08:47 AM
Data validation using conditional parameters in Excel table dougdrex Excel 2 01-06-2015 07:44 AM
Data Validation Issue in Excel rrparekh Excel 0 10-27-2014 10:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft