+ Reply to Thread
Results 1 to 3 of 3

Copy data from one worksheet and paste into another in the right column

  1. #1
    Registered User
    Join Date
    02-20-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Copy data from one worksheet and paste into another in the right column

    Hi all,

    I have data that I want to copy are in the following format and they can change. I receive this information in many files on a daily basis which I need to copy to another file.

    Fruit_Type Qty
    Apple 5
    Orange 4
    Kiwi 3

    and the destination worksheet data columns are in the following format where I want to paste the fruit quantity in the right column:

    Apple Banana Pear Orange Kiwi Blueberry

    I would appreciate some idea on how I can copy the fruit quantity into right columns using a macro.

    Many thanks in advance.

    Regards,
    Surya
    Last edited by suryab; 10-27-2015 at 07:56 PM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Copy data from one worksheet and paste into another in the right column

    If the input data is in Columns A and B in Sheet1, then in the output sheet, try:

    A2: =SUMIF(Sheet1!$A:$A,A$1,Sheet1!$B:$B)

    and copy to the right.

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    Apple Banana Pear Orange Kiwi Blueberry
    2
    =SUMIF(Sheet1!$A:$A,A$1,Sheet1!$B:$B)
    0
    0
    4
    3
    0

  3. #3
    Registered User
    Join Date
    02-20-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Copy data from one worksheet and paste into another in the right column

    Hi Berlan,

    Many thanks. And my apology as my post was not very clear. I have edited it now. Appreciate your thoughts.

+ 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. VBA to open URLs in worksheet column, then copy and paste new URL into new column
    By diana310 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2015, 08:47 PM
  2. Replies: 5
    Last Post: 08-01-2014, 04:30 PM
  3. Replies: 5
    Last Post: 03-02-2013, 04:22 PM
  4. Copy and Paste last column onto another worksheet
    By pablowilks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 06:12 PM
  5. [SOLVED] copy everything from column B to end of data, paste to summary, repeat for next worksheet
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-12-2013, 07:43 AM
  6. Copy & Paste Column with Data in the next available column in the same worksheet
    By BruceBane73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2013, 12:07 AM
  7. Copy range from worksheet based on data in a column and paste to end of another ws
    By DavyNixon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2005, 01:29 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