+ Reply to Thread
Results 1 to 9 of 9

Macro to copy data from 3 cells & paste in one cell

  1. #1
    Registered User
    Join Date
    02-15-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Post Macro to copy data from 3 cells & paste in one cell

    Can you pls help me with creating a macro that will copy data from 3 cells of one excel file, concatenate the data & paste the same in single cell of another file.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to copy data from 3 cells & paste in one cell

    Easy enough to do, but we need to know which workbook will have the code... the source or the destination?
    It would be good to know which cells are being "copied" too, and which cell is receiving the data. This part is not necessary but you will have to do more editing if you don't specify that.
    Also do we just concatenate, or do you want a space or some other character in between the values of the 3 cells.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Macro to copy data from 3 cells & paste in one cell

    Here is one way
    - another workbook is opened (Wb2)
    - cells A1, B3 & C5 in sheet "RawData" (in workbook containing the macro) concatenated and value placed in a first sheet in Wb2
    - amend to match your own requirements

    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    02-15-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Post Re: Macro to copy data from 3 cells & paste in one cell

    Hi Arkadi,
    You have asked very valid questions. You are champ!

    The code will be in the destination file. Also I already have a macro (in destination file) that asks me to select source file & then it copies some data from source file & puts it into destination file. I want to edit the same code to cover the above requirement.

    I have Name, Middle name & Surname in 'Promoter' tab of the source file in cell A2, B2 & C2 respectively. I want the same to be concatenated with space between Name, MiddleName & Surname & pasted in cell A12 of destination file 'MgmProf_GroupCo_FLC' tab.

    The above is for 1 entry only. There would be additional entry in source file in cell A3, B3 & C3. I want the this another entry to be pasted in cell A13 of destination file. Similarly there would be additional entries in source file below row number 3 till row number 11 (10 names). All these should get pasted below A12, A13, A14,..... in destination file.

    If there are less than 10 names, I am ok if the macro copies even the blank cells & pastes the same in destination file.
    Last edited by Harshadr; 03-13-2019 at 09:52 AM.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to copy data from 3 cells & paste in one cell

    See if this does the trick:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-15-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Macro to copy data from 3 cells & paste in one cell

    Thanks a lot Arkadi. I will test this & confirm back. Thanks a lot for quick support. Really appreciate your efforts,

  7. #7
    Registered User
    Join Date
    02-15-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Macro to copy data from 3 cells & paste in one cell

    It worked dear Arkadi. Thanks a lot for all your help.

  8. #8
    Registered User
    Join Date
    02-15-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    9

    Re: Macro to copy data from 3 cells & paste in one cell

    Thanks a lot Kev. Thank you very much

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro to copy data from 3 cells & paste in one cell

    Glad I could help, and thanks for the rep. If you would be so kind, please mark the thread as solved? Thanks in advance

+ 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] Copy cells with data and paste into another workbook and Tidying up existing macro
    By MikeWaring in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2017, 12:28 PM
  2. Macro to copy group of cells and paste multiple times for each row of data
    By muddakinjaz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2016, 01:17 PM
  3. [SOLVED] Macro to Copy cells data and paste on next empty row
    By tfaridi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 05:35 PM
  4. Macro to Copy/Paste Cells if Data is found with Filter
    By CMPidgeon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2012, 04:05 PM
  5. VB Macro to automate copy and paste of data in cells.
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-20-2012, 10:06 PM
  6. Macro. Copy range of cells (e,g, =A1:B9) and paste it into single cell.
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2011, 09:28 AM
  7. [SOLVED] Macro to insert cells and copy/paste data
    By Taffy in forum Excel General
    Replies: 0
    Last Post: 10-08-2005, 02:05 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