+ Reply to Thread
Results 1 to 6 of 6

Code to search data base and copy results to a new sheet

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

    Code to search data base and copy results to a new sheet

    Hi all,
    Background: I work for an insurance broker, we all use a single excel sheet to record our renewals and the status of them/ invited, renewed etc. One of our partners also has a master list of all his clients and income, after we have renewed and updated our renewal sheet, we then have to open his fine the clients and do the same, as add any new business cases. This results in a LOT of double keying, and ones being missed.

    Our renewal sheet has a tab for quotes, then one each month for renewals and new business that's gone on cover, it then has a summary tab at the end showing each persons states, conversion, retention etc.

    What I want to do, is run a code, that say if X person is shown in column D, then copy the data from certain columns, (I don't need them all) to a new spreadsheet.

    I can see there are loads of ways on youtube, which are basically a v-lookup in VBA, but I have seen the following errors and think I can see possible solutions.

    I need it in chronological order - Add a sort code line at the end

    Both sheets need to be open, I will add a sheet in the main renewal sheet, the data then gets pulled to a 3rd party sheet as found a code to allow that.

    The data gets overwritten - The partner turns the lines yellow when hes been paid, so overwriting would be an issue - add a cond form to auto turn yellow where the word paid in shown in final column.

    Adding a paid box (already in there) at the moment then partner goes through his list, (which is basically just hundreds of rows on a single sheet they arn't split into tabs) which would then be overwritten, therefor a could add a paid option box in our renewal sheet, but he would then have to go through each tab to update taking him longer. - I have added an extra sheet to the renewal books to automate the reconciliation, is there a way, to code it to say, check for X client name on X date, if the premiums and income match, add the word paid in column J and mark the row on the original list (The new sheet I create for rec) ar correct so he can see which ones match and which need loking into. HE does this twice a month and takes around 90 minutes each time at present manually checking.


    In basic, I want to create a running 12 month list on a single sheet of all the renewal and NB cases for a set partner copying only certain lines, Ideally, it would just updates as we went, and not overwrite as that would alleviate a lot of issues, but all the research i have done, overwrites it.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Code to search data base and copy results to a new sheet

    Can you post a sample workbook, with separate worksheets depicting 'as it is now' and 'desired results'? See the yellow banner at the top for instructions.

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

    Re: Code to search data base and copy results to a new sheet

    Thank you for your reply,

    Copy of sheet attached. The real sheet will have one tab for each month, I have entered made up date for the first 3 months to give an idea and also made comments in red on the page I want the data to go to.

    All the youtube I find just paste the data and over right it, none seems to update based on what is already in there, also doesn't show how to paste certain columns in a certain order, especially if there are 2 tables in the same worksheet in different orders..
    Attached Files Attached Files

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Code to search data base and copy results to a new sheet

    Just to see if I'm on the right course, does this meet your expectations for the data transfer from the 3 months to a new spreadsheet?
    Attached Files Attached Files

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

    Re: Code to search data base and copy results to a new sheet

    Hi,
    Thank you for the quick reply and the test sheet.

    That is what the end sheet will look like yes, but that has pulled through all the renewals, I need it to only pull through ones where the Partner is "RS" it also hasn't pulled through the NB cases in the table below the renewal table.

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Code to search data base and copy results to a new sheet

    Give this a try...
    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. [SOLVED] Search for unique numbers and copy thier specific data to another sheet in excel VBA code
    By Zahid0111 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-19-2020, 09:52 AM
  2. Search for value if filters are used, then copy results to new sheet
    By ma997 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2019, 02:59 PM
  3. Replies: 12
    Last Post: 08-18-2017, 06:20 AM
  4. Replies: 1
    Last Post: 05-21-2014, 05:05 AM
  5. Replies: 4
    Last Post: 05-16-2014, 06:30 AM
  6. [SOLVED] Copy data from 1 sheet to another sheet base on serial number input
    By Curtis goh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2013, 11:37 PM
  7. [SOLVED] sheet search and copy results
    By jmatthews in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-29-2012, 01:47 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