+ Reply to Thread
Results 1 to 3 of 3

multiple criteria with two or more

  1. #1
    Registered User
    Join Date
    06-05-2019
    Location
    texas
    MS-Off Ver
    2013
    Posts
    53

    multiple criteria with two or more

    hello I am working on adjusting this code I have had help before and it worked! thinking I could try again. my objective would be to bring phone number and city from sheet2 to sheet 1. the code that helped me out before was the one below and am wanting to duplicate it but get runtime errors.

    HTML Code: 
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: multiple criteria with two or more

    Hi hgchas,

    Here's an alternative:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    06-05-2019
    Location
    texas
    MS-Off Ver
    2013
    Posts
    53

    Re: multiple criteria with two or more

    This worked on my end. Thank you for your help!

    I only made a small adjustment:
    .Range("B2:B" & lngLastRow_Sht1).FormulaArray = "=INDEX('" & wsSht2.Name & "'!D2:D" & lngLastRow_Sht2 & ",MATCH(A2,'" & wsSht2.Name & "'!A2:A" & lngLastRow_Sht2 & ",0),MATCH(C2,'" & wsSht2.Name & "'!B2:B" & lngLastRow_Sht2 & ",0))"

+ 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. Replies: 2
    Last Post: 12-27-2020, 04:10 AM
  2. Replies: 1
    Last Post: 03-25-2020, 08:06 AM
  3. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  4. Replies: 9
    Last Post: 07-23-2015, 01:21 PM
  5. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  6. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  7. [SOLVED] UDF for sum of multiple criteria in multiple columns and single criteria in multiple colum
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-22-2013, 04:26 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