+ Reply to Thread
Results 1 to 8 of 8

Looking to copy certain cells from rows based on matching values

  1. #1
    Registered User
    Join Date
    03-07-2019
    Location
    Hull, England
    MS-Off Ver
    16.22
    Posts
    4

    Looking to copy certain cells from rows based on matching values

    Hi,
    I'm struggling to merge values from my orders spread sheet to my quotes spreadsheet to give me a better overview of our figures. Hopefully this image makes sense but does anybody know if there is a formula for me to do this?

    Thanks in advance!
    Danexcel problem.jpg

  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,924

    Re: Looking to copy certain cells from rows based on matching values

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    Registered User
    Join Date
    03-07-2019
    Location
    Hull, England
    MS-Off Ver
    16.22
    Posts
    4

    Re: Looking to copy certain cells from rows based on matching values

    Hi,
    Sorry for the delay in getting this to you. Does this excel file help?

    Thanks,
    Dan
    Attached Files Attached Files

  4. #4
    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,924

    Re: Looking to copy certain cells from rows based on matching values

    Since the visual is to small to understand, please explain in detail what you wish to happen. Thank you for offering up the workbook, but it is still not clear what you are attempting. Use your example and explain in detail your needs so that we can help.

  5. #5
    Registered User
    Join Date
    03-07-2019
    Location
    Hull, England
    MS-Off Ver
    16.22
    Posts
    4

    Re: Looking to copy certain cells from rows based on matching values

    Hi,
    So essentially I have sheet 1 which is a list of order details generated from our osticket system that I have imported to give an 'orders' sheet. I will then have monthly sheets of all quotes that have been sent out. What I would like to do is transfer the order data over to the quote sheets if it matches the ticket number.
    So far I have been able to count and conditionally highlight a cell if the ticket numbers match so I can get an overall order percentage of the quotes done, However I cannot work out how to copy data over from a row if it matches. My aim is to take all that order data over so I can then compare the quote data against order data (how many days it took to order, the difference in price from original quote to order price etc).
    Hopefully this all makes sense?

    Thanks again,
    Dan

  6. #6
    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,924

    Re: Looking to copy certain cells from rows based on matching values

    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  7. #7
    Registered User
    Join Date
    03-07-2019
    Location
    Hull, England
    MS-Off Ver
    16.22
    Posts
    4

    Re: Looking to copy certain cells from rows based on matching values

    Thank you very much, this is perfect!

  8. #8
    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,924

    Re: Looking to copy certain cells from rows based on matching values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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 values based on matching text
    By mgviper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2018, 08:38 PM
  2. [SOLVED] Copy and paste to one row based on matching values
    By mhf89 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-14-2017, 10:03 PM
  3. Align Rows based on Matching Values in 2 Columns
    By cmv040 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2016, 07:49 PM
  4. Copy offset cells for matching cells between two rows
    By lunaraven in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2014, 07:28 AM
  5. [SOLVED] Find matching text string and copy values from 5-rows below it.
    By javeds in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-29-2014, 03:06 PM
  6. Combining Rows Based On Matching Values in one column
    By jeffocasm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2013, 07:16 PM
  7. Deleting Rows based on matching values in column A, in two different worksheets
    By Insert Name in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-11-2013, 08:39 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