Results 1 to 5 of 5

Match Value in range with value in another range & output third value -vlookup for ranges?

Threaded View

  1. #1
    Registered User
    Join Date
    11-25-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Match Value in range with value in another range & output third value -vlookup for ranges?

    Hi guys,
    I'm new to VBA and have been learning and playing around with various arguments over the past few bays but I still cant get it to do what I want to.
    basically I have 3 worksheets -
    "Company String Elements" with a 'bank' of string values in column A with altered strings in column B
    "Variables page" with a column of drop down selections for all the 'banked' string values from column A on "Company String Elements" sheet
    "Output" where I want to produce a list of the altered values (from "Company String Elements" column B) when the banked values on "company string elements" match any of the values selected from the drop down menus on "variables page".
    for example - lets say Macdonalds is in A3 of the Company string elements worksheet and if I Select Macdonalds from the "variables page" worksheet drop down and click the button on "output page" I want to see the Altered string value from B3 plus any other matching values from the drop downs.
    So far I've managed to get a list of 'altered' strings by using a loop:

    Dim i As Integer
    i = 3
    
    Do While Worksheets("Variables page").Cells(i, 1).Value <> ""
    Worksheets("Output Page").Cells(i, 1).Value = Worksheets("Company String Elements").Cells(i, 2).Value
    i = i + 1
    
    Loop
    
    
    End Sub
    But this would only work if the drop downs are selected in the same order as they are in-putted on the company string elements worksheet.
    so then I had a thought to use just one list with tick boxes and have some kind of IF rule loop but thought this would probably open a huge can of worms.

    in an ideal world all of the matching strings would be concatenated but a list that I can then concatenate would be fine.

    I hope this makes sense....?
    any help would be really appreciated!
    Thanks again,
    Thom.
    Last edited by tomhardy1491; 11-25-2015 at 01:23 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Desperate Help Please
    By boyniceasdf in forum Excel General
    Replies: 1
    Last Post: 05-17-2010, 03:18 AM
  2. Excel 2007 : Desperate
    By Daddy Dumpsalot in forum Excel General
    Replies: 2
    Last Post: 12-18-2009, 07:04 PM
  3. Desperate need of help!
    By dkoroz in forum Excel General
    Replies: 1
    Last Post: 12-10-2008, 01:07 PM
  4. Desperate...please help!
    By sas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2006, 04:15 PM
  5. In desperate need of help....
    By mrskitz in forum Excel General
    Replies: 3
    Last Post: 01-13-2006, 10:48 AM
  6. Desperate NEED!!!!
    By huntr357 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2005, 12:06 PM
  7. help desperate!!!
    By antongucci in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 03-02-2005, 12:15 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