Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2015, 12:17 AM
Rich18144 Rich18144 is offline Data Validation List based on Two Named Ranges Windows 7 64bit Data Validation List based on Two Named Ranges Office 2007
Novice
Data Validation List based on Two Named Ranges
 
Join Date: May 2014
Posts: 7
Rich18144 is on a distinguished road
Default Data Validation List based on Two Named Ranges

Hi All,



I am looking to create Data Validation that will look at multiple cells to create a combined list from two values. It is probably most easily explained with an example:

So I would like the Validation in Cell B4 to look at two Named Ranges, as defined in cells A2 & B2 (i.e. "ApplePrices" and "OrangePrices"). I would like a single combined list to be available in the drop-down being presented in B4.

Elsewhere in the book/sheet (Let's say D1:E20) I have got a series of values. These values are split into Named Ranges, e.g. D1:D5 = ApplePrices, D6:D10 = OrangePrices, E1:E5 = PearPrices, D11:D20 = BananaPrices, etc.

I would like a Drop down in cell B4 that would refer to what is being held in A2 & B2 (In this case ApplePrices & OrangePrices) and use that as a reference to build the single drop down for B4.

The Data Validation in cell B4 needs to be populated based on both A2 & B2 - i.e. as the sheet currently stands and referring back to the named ranges, I would need a drop-down in cell B4 that is made up of both named ranges (i.e. the values held in D1:D5 & D6:D10). However, if I was to adjust the value in B2 to be "PearPrices" the drop-down list for B4 would adjust to now contain D1:D5 & E1:E5. Finally, if I adjusted the contents of cell A2 to "BananaPrices", the drop-down in B4 would now be constituted of the values held in D11:D20 & E1:E5.

Hopefully I have explained this well enough!

Thank you for your time,

Rich
Reply With Quote
  #2  
Old 06-24-2015, 04:16 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Data Validation List based on Two Named Ranges Windows 7 64bit Data Validation List based on Two Named Ranges Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,769
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

Remember to desensitize the data.

Click on GO ADVANCED and follow the wizard to open the upload window.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 06-24-2015, 07:24 AM
Rich18144 Rich18144 is offline Data Validation List based on Two Named Ranges Windows 7 64bit Data Validation List based on Two Named Ranges Office 2007
Novice
Data Validation List based on Two Named Ranges
 
Join Date: May 2014
Posts: 7
Rich18144 is on a distinguished road
Default

Hi there,

I have created an example workbook that should hopefully explain what I am getting at. I have done this to match the example written in my original post.

Thanks for your time,

Rich
Attached Files
File Type: xls Two Named Ranges, One Drop Down.xls (26.0 KB, 52 views)
Reply With Quote
  #4  
Old 06-25-2015, 04:19 AM
Rich18144 Rich18144 is offline Data Validation List based on Two Named Ranges Windows 7 64bit Data Validation List based on Two Named Ranges Office 2007
Novice
Data Validation List based on Two Named Ranges
 
Join Date: May 2014
Posts: 7
Rich18144 is on a distinguished road
Default

Nevermind - I have managed to build a dynamic list elsewhere in the spreadsheet using an Array formula now.
Reply With Quote
  #5  
Old 01-14-2016, 04:37 AM
Maoz Maoz is offline Data Validation List based on Two Named Ranges Windows 8 Data Validation List based on Two Named Ranges Office 2010 64bit
Novice
 
Join Date: Jan 2016
Posts: 6
Maoz is on a distinguished road
Default

Hi Pecoflyer,

Can you please re-share the sample document you have made? i have the same issue and need to get a list of specific data based on 'Client Name' & Document Type

Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a data validation based on another cell's value?? cfreezy Excel 1 06-18-2015 09:51 AM
Data Validation List based on Two Named Ranges Restrict data validation based upon a cell value Strategic Excel 2 01-27-2015 02:13 AM
How to use named ranges in excel vba? bosve73 Excel Programming 4 01-25-2012 09:26 AM
Dynamic Named Ranges using text hannu Excel 0 06-22-2010 04:42 PM
Can't import home adresses in outlook 2010 from excel named ranges eekie Outlook 0 05-14-2010 02:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:42 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