+ Reply to Thread
Results 1 to 5 of 5

Dynamic ranges with multiple vlookup

Hybrid View

great_AS Dynamic ranges with multiple... 01-23-2017, 01:17 PM
JohnTopley Re: Dynamic ranges with... 01-23-2017, 02:44 PM
great_AS Re: Dynamic ranges with... 01-24-2017, 05:37 AM
great_AS Re: Dynamic ranges with... 01-24-2017, 05:32 AM
JohnTopley Re: Dynamic ranges with... 01-24-2017, 05:41 AM
  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    75

    Dynamic ranges with multiple vlookup

    Hello guys!

    I need to create a 2-steps selection pane where the user first select the COUNTRY and then the DEALER.

    In order not to have blank values in the top-down list, I used dynamic ranges but it doesn't work. Could you please have a look at the file and tell me what's wrong?
    TEST.xlsx

    Thanks in advace guys.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,773

    Re: Dynamic ranges with multiple vlookup

    It appears to me to work OK: change DEALER named range to

    =OFFSET(Test!$H$2,0,0,COUNTIF(Test!$H:$H,"*?")-1,1)

    similar for Country
    Last edited by JohnTopley; 01-23-2017 at 02:46 PM.

  3. #3
    Registered User
    Join Date
    07-14-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    75

    Re: Dynamic ranges with multiple vlookup

    Hi John! i'm sorry it works also for countries. thx a lot!

    But still, could you explain me why did you use a COUNTIF and what's the role of the "*?" ?


    Thx in advance

  4. #4
    Registered User
    Join Date
    07-14-2015
    Location
    Stuttgart
    MS-Off Ver
    2013
    Posts
    75

    Re: Dynamic ranges with multiple vlookup

    Hello John!

    thx a lot, it worked for dealers but not for country. Do you know perhaps why?

    Also, why did you use a COUNTIF instead of COUNTA?

    Thanks in advance.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,773

    Re: Dynamic ranges with multiple vlookup

    COUNTIF with "*?" checks if there any characters in the cell so ignores blanks.

    COUNTA checks empty so a space (for example) is NOT empty.

+ 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. Dynamic Multiple Print Ranges
    By slash_gnr3k in forum Excel General
    Replies: 2
    Last Post: 02-13-2014, 11:07 AM
  2. Indirect Vlookup List and Dynamic Named Ranges - Is there a workaround
    By Jennasis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 06:57 AM
  3. [SOLVED] Vlookup with VBA - dynamic ranges
    By Will B in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2012, 06:18 AM
  4. vlookup syntax when using dynamic ranges and filenames
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2011, 04:54 AM
  5. VLOOKUP & dynamic ranges
    By tone640 in forum Excel General
    Replies: 9
    Last Post: 07-20-2011, 12:08 PM
  6. VLookup for dynamic ranges
    By brillison in forum Excel General
    Replies: 5
    Last Post: 10-28-2008, 04:05 PM
  7. [SOLVED] Multiple dynamic ranges in a Sumproduct
    By mmartens12 via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2006, 09:00 PM
  8. Multiple dynamic ranges in a Sumproduct
    By mmartens12 via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-01-2006, 11:30 PM

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