+ Reply to Thread
Results 1 to 4 of 4

Copy and paste a specific cell in multiple location

  1. #1
    Registered User
    Join Date
    08-28-2018
    Location
    Dubai
    MS-Off Ver
    206
    Posts
    2

    Post Copy and paste a specific cell in multiple location

    Hi All

    I am new to the forum , I would like to know how to copy and paste a specific cell which contain Dates in a cell .

    eg: 1st Date contains in cell (I29 (Filled with a colour)) the same date i need to paste from (B2:B56) 2nd Date in cell (I58 (Filled with a colour)) need to paste from(B57:B98) ,3rd Date in cell (I109 (Filled with a colour)) need to paste from (B99:B151) .

    The common factor is Cell A has a Name From (A2:A56) 2nd Name (A57:A98) 3rd Name (A99:A151) . Please help me with a solution

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,118

    Re: Copy and paste a specific cell in multiple location

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly 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 solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. 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.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-28-2018
    Location
    Dubai
    MS-Off Ver
    206
    Posts
    2

    Re: Copy and paste a specific cell in multiple location

    Hi Glenn

    Thanks for your kind consideration , I am attaching the real sample data and highlighted in G Column "source cell" and highlighted the B Column "Destination cells) .Please advise
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,118

    Re: Copy and paste a specific cell in multiple location

    One way, using an array formula:


    =INDEX(G:G,SMALL(IF($G$2:$G$50000="Date",ROW($G$2:$G$50000)+1),ROUND(SUMPRODUCT(1/COUNTIF(A$2:A2,A$2:A2)),0)))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    let me know if you have Excel 2010, or later (please amend your profile to reflect this).

+ 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. Replies: 3
    Last Post: 05-17-2016, 05:14 PM
  2. [SOLVED] Copy and paste specific cell to another sheet based on multiple criteria
    By impresxy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-09-2015, 07:11 AM
  3. [SOLVED] Macro to search, copy and paste in a specific location.
    By barrigadf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2015, 03:23 PM
  4. [SOLVED] copy and paste at specific location excel vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2014, 10:17 AM
  5. macro to copy range hidden paste in a specific location
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2014, 11:27 AM
  6. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  7. Copy and Paste to location based on cell value
    By CBron12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-15-2010, 03:02 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