+ Reply to Thread
Results 1 to 10 of 10

Seeking Help with Dependent dynamic list with offset/countif formula and name manager

  1. #1
    Registered User
    Join Date
    04-25-2024
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    14

    Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Hi,

    I hope someone can help me figure out what is going wrong with my dependent dropdown. I have tried to give all the details below:

    1- Data

    Column A = Headers
    Column B = Subheaders
    Column C = Items

    2- Dropdown list 1 = Headers (C16, then copied down all lines)
    Since my data is in a tabular format, I created a dynamic array using the formula =UNIQUE(FILTER(A:A,(A:A<>"")*(A:A<>"Headers")))
    Then, to create my first dropdown, I use the data validation box pointing at the dynamic array using the formula ='Cost Items'!$M$2# as the source
    Then copy the cell with the dropdown list down my spreadsheet to be usable for each line (Column C)
    All works great.

    3- Second dropdown list = Subheaders (dependent on headers return above) (D16, then copied down all lines)
    In cell D16, the subheader dropdown list was created using the formula =OFFSET(Cost_Items[[#Headers],[Subheaders]],MATCH(SOW!D16,'Cost Items'!A:A,0)-1,0,COUNTIF(A:A,SOW!D16),1).
    As offset doesn't work with the data validation, I created a name (subheader_formula) for this formula and used the name in my data validation box, which works perfectly.

    4- Third dropdown list = Dependent on the result from the Subheader dropdown list in D16
    I follow the same method for this dropdown list as for cell D16, but it all falls apart here.
    The formula I copied to name manager is =OFFSET(Cost_Items[[#Headers],[Items Description]],MATCH(SOW!E16,'Cost Items'!$B:$B,0)-1,0,COUNTIF($B:$B,SOW!E16),1)
    This formula works perfectly in Excel cells, but for some reason, the data validation will not work with the name manager. I get an error saying: "the source currently evaluates as an error"

    I can't find any reason why that would be. Both formulas in D16 and F16 are constructed the same way, so why would one work and not the other?
    Attached Files Attached Files
    Last edited by Julie.Cooper2; 04-25-2024 at 07:04 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,342

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-25-2024
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    14

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Thanks Ali, I have attached the file.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,342

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Thanks - it's all very busy (too much data for a SAMPLE workbook, really).

    Please add some clear annotations and signposting to the workbook.

  5. #5
    Registered User
    Join Date
    04-25-2024
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    14

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Thanks. I just uploaded a sample, hopefuly it works better.

  6. #6
    Registered User
    Join Date
    04-25-2024
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    14

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Hi Ali, was the new file better?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,342

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    There are errors in the Item_Formula:

    =OFFSET(Cost_Items[[#Headers],[Items Description]],MATCH(SOW!#REF!,'Data Set'!$B:$B,0)-1,0,COUNTIF(SOW!$B:$B,SOW!#REF!),1)

    Maybe fix those and then check again?

    I can't help thinking that there must be an easier way to do what you seem to want. I'll have another look later.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,342

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Seems to be working once the formula has been fixed.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-25-2024
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    14

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    I am so confused right now... I have redone this formula so many time and never noticed this error. I will try again in my original file.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,342

    Re: Seeking Help with Dependent dynamic list with offset/countif formula and name manager

    Let us know how you get on. Sometimes it's just another pair of eyes that you need.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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] Dynamic dependent drop down list using formula
    By Mumps1 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-21-2023, 08:56 AM
  2. VBA workaround for dependent drop down with INDIRECT for dynamic name range with OFFSET
    By Samantha McNeill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2018, 12:19 AM
  3. [SOLVED] Dynamic Offset Formula to populate a Data Validation list
    By TC1980 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-09-2017, 11:27 AM
  4. [SOLVED] How to fix the offset formula in Name Manager
    By Jenny_Truong in forum Excel General
    Replies: 5
    Last Post: 08-10-2016, 03:23 AM
  5. [SOLVED] OFFSET formula for a Dynamic list
    By JO505 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-10-2013, 05:11 PM
  6. Dynamic Range using Offset and CountIF
    By mark_jam3s in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2008, 11:43 AM
  7. Offset, Dynamic range, Countif
    By Bryce in forum Excel General
    Replies: 3
    Last Post: 10-26-2005, 08:05 AM

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