+ Reply to Thread
Results 1 to 6 of 6

Report to copy paste data based on matching criteria

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Report to copy paste data based on matching criteria

    Hi,

    I've been asked to develop a report where people select certain criteria and then request the data matching that criteria to be returned. I've created an example of what i'm working with. I think the tricky part is going to be returning the correct price as it depends on the region selected (London or National).

    To clarify i'm looking to build a report where people select criteria on the 'report' tab, upon request (prob a button) the report then looks for matching criteria on the 'data' tab and then returns that data to the relevant column on the 'report' tab. The actual data set i'll be working with will be quite large so I expect most searches to return a number of matches. The example i've provided should return two matches lines.

    I hope this makes sense but if you have any queries give me a shout.

    Thanks in advance,

    Snook
    Attached Files Attached Files
    Last edited by The_Snook; 10-02-2013 at 05:27 AM.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Report to copy paste data based on matching criteria

    Try this. Open workbook, enable macros, and click on the button.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Report to copy paste data based on matching criteria

    Massive thanks, it works an absolute treat!

    My VBA skills aren't the strongest as i'm still learning but i'll have a bash at getting my head around it although I may have a further query(ies) around the logic/how it works if that's o.k.?

    Regards,

    Snook

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Report to copy paste data based on matching criteria

    No problem, just ask if you have questions

  5. #5
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Report to copy paste data based on matching criteria

    Me again,

    I've been trying to adapt the solution you provided to my actual data set but i'm clearly going wrong/misunderstanding somewhere because it isn't working.

    I'd be grateful if you could copy and amend the code to the attached updated workbook which more accurately reflects the data structure i'm working with. I'll then hopefully understand where I was going wrong.

    Thanks,

    Snook
    Attached Files Attached Files

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Report to copy paste data based on matching criteria

    I've amended to fit your actual data, this is also why you should have given a sample as close to your actual data as possible. I've also added comments hopefully to explain it more clearly to you.
    Attached Files Attached Files

+ 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. Copy/Paste range of cells to another worksheet based on matching criteria
    By maa50904 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2013, 12:07 AM
  2. Copy and Paste data based on two criteria being met
    By btxp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2013, 02:24 PM
  3. [SOLVED] Copy, paste data based on a particular criteria
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2012, 03:08 PM
  4. Copy Paste data with matching criteria from different sheet
    By Noor Hussain in forum Excel General
    Replies: 0
    Last Post: 06-14-2012, 01:23 AM
  5. Copy and paste data based on criteria
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2010, 06:45 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