+ Reply to Thread
Results 1 to 7 of 7

V-Lookup, C&P Multiple values

  1. #1
    Registered User
    Join Date
    05-04-2020
    Location
    Surrey England
    MS-Off Ver
    365 Business
    Posts
    6

    V-Lookup, C&P Multiple values

    Hi all,

    Hoping you can help, I am trying to learn VBA and I have spent 2/3 hours googling this but I either don't understand the code or it doesn't answer what I am trying to do! ARGGHHH

    I work in insurance at going forward I have to run 2 reports
    Report one: Transaction - this details all the business transaction for the primary introducer
    Introducer report: This details all the introducer that are getting paid on the policy
    Our system can only issue a report based on primary introducer, it doesn't combine several in a single report - hence the 2 reports.

    I need to code a macro that with merge this 2 reports into a single sheet. The main info that shows on both reports is the invoice reference which I want to you to look up all the introducers connected to that record.

    Attached is a draft excel sheet.

    Sheet 1: Transaction: This pulls the primary introducer details/client details and any agents connected
    Sheet 2: Introducer: This is where it lists any introducer connected to that invoice ref is shown
    Sheet 3: Results: This is where I want the date pasted to, above each heading is the cell there the data is stored. Ie Colum B is client name and Above is "T-K" meaning Transaction sheet "Sheet 1" column K.

    I have abbreviated the data and deleted others for DPA reasons.

    Please can someone help!

    PS - if anyone has any good sites to learn basic VBA etc, please do send links so I can try and learn more, if you can help with the code, please do let me know what the code is asking so I can at least understand what it is doing to help with future changes.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: V-Lookup, C&P Multiple values

    crosssposted: https://chandoo.org/forum/threads/vb...-values.45321/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: V-Lookup, C&P Multiple values

    Please update your spreadsheet so that the column headers in the results page correlate to the headers in your source pages. They don't correlate right now therefore we can not match them.

  4. #4
    Registered User
    Join Date
    05-04-2020
    Location
    Surrey England
    MS-Off Ver
    365 Business
    Posts
    6

    Re: V-Lookup, C&P Multiple values

    Quote Originally Posted by maniacb View Post
    Please update your spreadsheet so that the column headers in the results page correlate to the headers in your source pages. They don't correlate right now therefore we can not match them.
    Thanks for coming back, I assume you mean the text has the be the exact same - have amended them all - there are 2 headed that are static and don't need to be copied over. Result L & Q.

    My biggest problem is there could be multiple pay aways
    Primairy introducer
    Agent
    Secondary intro
    3rd intro

    Primary and agent come from transaction sheet, the secondary and third intro come from the introducer sheet. - hope that makes sense.

    So on the results sheet under U/V and W/X these are pulled from the introducer sheet but will have the same headings.

    Thanks in advance - much appreciated
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: V-Lookup, C&P Multiple values

    Here you go. I used the Introducer sheet as the primary and then add data from Introducer and Transaction sheets. Let us know if you have questions.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-04-2020
    Location
    Surrey England
    MS-Off Ver
    365 Business
    Posts
    6

    Re: V-Lookup, C&P Multiple values

    Sorry for the delay in coming back, thank you for sending over the attached. unfortunately using the introducer tabs doesn't work as it pull through all the lines of data. I only need to data connected to the primary introducer, ie that on the trans sheet.

    I believe someone has now given me a solution on this using power query. I will be testing it this morning.

    Thank you for trying, I suspect my explanation wasn't clear enough originally so apologies for that.

    Appreciate your help nevertheless

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: V-Lookup, C&P Multiple values

    For thoroughness, here you go

    Please Login or Register  to view this content.

+ 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. Lookup all matches for multiple lookup values
    By jenbellacosa in forum Excel General
    Replies: 3
    Last Post: 04-14-2021, 11:11 AM
  2. Replies: 1
    Last Post: 05-12-2020, 08:42 AM
  3. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  4. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  5. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  6. Sum values from multiple cells - multiple lookup values in single cell
    By taxdept in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 04:12 PM
  7. Replies: 3
    Last Post: 10-10-2005, 01:05 PM

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