Results 1 to 6 of 6

VBA Code for XLOOKUP Using Multiple Criteria That Are Dynamic

Threaded View

  1. #1
    Registered User
    Join Date
    10-12-2024
    Location
    This is a site run by a bunch of fascists!
    MS-Off Ver
    Fascist Site!
    Posts
    16

    VBA Code for XLOOKUP Using Multiple Criteria That Are Dynamic

    Hello,

    I need help writing a VBA code for macro that will perform an XLOOKUP formula based on three lookup values from a return array that is a sub-total. Since the return array is a sub-total, I have to perform "Select Visible Cells" to paste the data into a new sheet in order to do my XLOOKUP formula. I would like to know if there's a way to do the XLOOKUP based on the visible cells of the return array, so that I don't have to paste the data into another spreadsheet.

    Also, I would like the macro to only run the XLOOKUP formula if the column header contains a specific name that I designate.

    The original version of the workbook has thousands of rows, so the lookup value combination will change as we go through each row, making it dynamic. Below are print screens of my data with my formula in Excel, as well as the attached sample workbook.

    Many thanks for assisting me with this!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by hain2004; 10-12-2024 at 11:18 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Xlookup with multiple IF Criteria
    By T.Turner in forum Excel General
    Replies: 14
    Last Post: 10-05-2023, 06:49 AM
  2. Xlookup multiple criteria
    By mcis19 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-26-2023, 11:18 AM
  3. Replies: 28
    Last Post: 08-27-2022, 10:18 AM
  4. [SOLVED] xlookup multiple criteria #Value!
    By justinwb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2022, 09:10 PM
  5. [SOLVED] XLOOKUP using INDIRECT with named range to search across multiple dynamic sheets
    By MangoFresh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2022, 11:24 AM
  6. Xlookup with multiple criteria
    By Mackay2m in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 01-12-2022, 04:09 PM
  7. Replies: 7
    Last Post: 12-10-2021, 02:17 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