• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Dynamic dropdown problem in table / range|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Dynamic dropdown problem in table / range|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Dynamic dropdown problem in table /…
sp_PrintTopic sp_TopicIcon
Dynamic dropdown problem in table / range
Avatar
Josias Bolton

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 26, 2020
sp_UserOfflineSmall Offline
1
June 26, 2020 - 4:20 am
sp_Permalink sp_Print

I am experiencing this excel problem:

I am using Windows 10 and Microsoft 365

Sheet2!D1:D20 is populated from Sheet1!L4:L24 via formulas.

Sheet1!D1:20 is

 

  1. a) formatted as a Table with Heading in B1 - tblNames (or as a Named Range)
  2. b) Sheet2!D2:20 named as a Range -  rngCombs
  3. c) rngCombs used as drop downs

The problem is that rngCombs  does NOT expand as more cells are populated.

Named Ranges within a Table expands dynamically when populated by TYPING the info in the cells within the range.

In Files/Options/Proofing the three boxes in AutoFormat as you type are all three ticked.

 

How can I solve this problem without VBA.

Thank you

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
June 26, 2020 - 4:30 pm
sp_Permalink sp_Print

Hi Josia,

Please post a workbook when you ask a question so we don't have to recreate your workbook.  It also makes it harder for me to visualize everything and I might make a mistake when creating the layout.

You can use a dynamic named range for rngCombs

=Sheet2!$D$2:OFFSET(Sheet2!$D$1,COUNTA(Sheet2!$D$2:$D$100),,1)

Regards

Phil

Avatar
Josias Bolton

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 26, 2020
sp_UserOfflineSmall Offline
3
June 28, 2020 - 9:35 pm
sp_Permalink sp_Print

Hi Philip

Thank you for the response.

I am attaching my Workbook "Subject Allocation 3.4 Tables 20200625.xlsx"

Please see the yellow in the sheet Info!

My problem is in Gr 4 (D20:D35) through to Gr 12 (L20:L35)

 

Sheet Input populates Sheet Info.

Sheet Allocation is the working sheet where everything comes together.

I want the table or ranges Gr_4 .... Gr_12 to be used as drop downs in the sheet Allocation, but it MUST be dynamically.

Surely trust you will be able to help me.

Thank you

 

Sias

Avatar
Josias Bolton

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 26, 2020
sp_UserOfflineSmall Offline
4
July 13, 2020 - 7:57 pm
sp_Permalink sp_Print

Hi Philip

Have you perhaps had a look at the workbook I have sent you.

I would appreciate it very much if you could assist me in getting the tables to expand dynamically.

I did use the formula you supplied me 

=Sheet2!$D$2:OFFSET(Sheet2!$D$1,COUNTA(Sheet2!$D$2:$D$100),,1)

but the problem with this formula is that it leaves blank spaces at the bottom of the list which I would like to prevent.

 

Thank you

Sias

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
July 13, 2020 - 9:06 pm
sp_Permalink sp_Print sp_EditHistory

Hi Josias,

It's a bit confusing because your initial post, subsequent post and attached workbook don't all agree.  For example, you don't have a Sheet2 in the workbook.  It just takes a lot longer to figure things out in a situation like this.

You can still use a dynamic named range but need to make a few other changes.

On the Info sheet, I've modified the formula in D20:D35 to

=IF(Input!$L$4>0+$C20-1,$D$19&$B20,0)

so a 0 is the 'empty' result when you don't want that cell in the data validation list.

I've changed the formats of D20:D35 to not visually display 0, but you can use COUNTIF to count cells that are not 0.  This will generate the dynamic DV list.

I've create a new name GR4_DV that refers to

=Info!$D$20:OFFSET(Info!$D$19,COUNTIF(Info!$D$20:$D$35,"<>0"),,1)

and the DV list in B6 on the Allocation sheet uses GR4_DV.

Please see attached, I trust you can make the modifications for the other ranges on the Info sheet and create the necessary names and DV lists from my example.

Regards

Phil

Avatar
Josias Bolton

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
June 26, 2020
sp_UserOfflineSmall Offline
6
July 14, 2020 - 5:17 pm
sp_Permalink sp_Print

Dear Philip

Thank you so much for the answer and please accept my apologies for the confused way in which I responded.

I was anxious to get the problem solved that I did not clearly think about the information I was giving.

 

Warm regards

 

Sias

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
7
July 14, 2020 - 5:20 pm
sp_Permalink sp_Print

No worries 🙂

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Shanna Henseler, Lawrence Smith
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.