Results 1 to 8 of 8

VBA use Application.VLookup and Application.HLookup together

Threaded View

  1. #1
    Registered User
    Join Date
    10-14-2021
    Location
    Cardiff
    MS-Off Ver
    2016
    Posts
    4

    VBA use Application.VLookup and Application.HLookup together

    Hi everyone,

    I have a table with multiple numbers on the left-hand side column and String value on the first row as headers.

    I get one number from a different spreadsheet and then I match that with the numbers on the left-hand side using vlookup. Then I need to use some matching function (such as HLookup) to find the column with the right header from which to pick the right output for the vlookup. At the moment the code looks like this:

    Worksheets(List).Cells(i,Col1) = Application.HLookup("CLOSE", Worksheets(Plan).Range("A1:B50"), Application.VLookup(Worksheets(List).Cells(i, col2).Value, Worksheets(Plan).Range(Plan_1 & "2:" & Plan_2 & "200"), value, False), False)
    For some reason, the code is not outputting anything, nor is it crashing. Any ideas? thanks
    Last edited by alansidman; 11-02-2021 at 03:28 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Hiding Application or a Worksheet takes away the ability to use Application properties
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2016, 05:44 PM
  2. [SOLVED] VBA code to change the application.username and application.userinitials
    By jwlamb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:25 PM
  3. [SOLVED] Obscure VBA error? Application.Run conflicts with Application.GetOpenFileName
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-15-2013, 08:31 PM
  4. [SOLVED] Problem with application.Hlookup
    By Brotherwarren in forum Excel General
    Replies: 6
    Last Post: 02-23-2006, 04:15 AM
  5. [SOLVED] difference application.quit & application.close
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2005, 04:00 PM
  6. [SOLVED] Application.GetOpenFilename vs Application.Dialogs(xlDialogsOpen)
    By Paul Martin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2005, 12:05 PM
  7. Replace application.RTD property by Application.RTDServers collect
    By John.Greenan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2005, 10:05 AM

Tags for this Thread

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