+ Reply to Thread
Results 1 to 8 of 8

Using Vlookup to directly lookup values instead of looping through combobox

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Using Vlookup to directly lookup values instead of looping through combobox

    I have crossposted a smiliar thread at mrexcel!

    I have a workbook where I am trying to create a Dashboard.

    At the moment I am looping through values of an ActiveX ComboBox and using the linked cell to lookup values. I am also checking if checkboxes are true or false to include/not include variables in my analysis.

    Is it possible to access the data directly with Worksheetfunction Vlookup? In some cases I would like to deduct a cell from another cell.

    So instead of looping through the ComboBox values (City1 to City25) I would loop through one or two values. Ex. (City1 and City2). Looping through all values takes a couple of minutes and sometimes I would just like to get values for one or two cities at once.

    Are there any other ways of doing what I am trying to do? Maybe Select Case for the CheckBoxes??

    See attached workbook for more details.
    Attached Files Attached Files
    Last edited by waimea; 09-18-2018 at 12:54 PM.

  2. #2
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Please Login or Register  to view this content.
    With this code I can directly access the value that I am looking for.

    Say I have a list with:

    City1
    City2
    City3

    How can I loop through the list and lookup each value?

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Please Login or Register  to view this content.
    I don't understand how I can create a list of cities and then use VLookup on that list?

  4. #4
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Please Login or Register  to view this content.
    Why is this not working?

  5. #5
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Please Login or Register  to view this content.
    How can I use application.worksheetfunction.rank on this array?

    Also, what is the best way to handle checkboxes?

  6. #6
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Could anyone help me with how to correctly use Application.WorksheetFunction.Vlookup with an array?

  7. #7
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    I got it to work. Now I have a different problem.

    Should I use If and ElseIf or Select Case for my 10 array items?

    Please Login or Register  to view this content.
    How can I create a select case statement for each column in my array?

  8. #8
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Using Vlookup to directly lookup values instead of looping through combobox

    Could anyone help me with this?

+ 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] Sum values using vlookup with lookup cell containing comma separated values
    By tmalito in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-08-2019, 10:14 AM
  2. [SOLVED] populate worksheet cell based on two dimensional lookup values of combobox
    By rain4uu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2014, 03:05 AM
  3. [SOLVED] VLOOKUP, 2 lookup values; then sum the lookup returned
    By pricepeeler in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-17-2014, 03:17 PM
  4. [SOLVED] Perform a Vlookup using a Form ComboBox as the Lookup Value
    By Richard_Thornton in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-07-2014, 11:23 AM
  5. Combobox Populating via a list or directly typing
    By nighttrainrex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2011, 05:03 PM
  6. stop combobox lookup defaulting values
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2010, 06:12 PM
  7. looping over combobox names
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-23-2007, 01:35 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