+ Reply to Thread
Results 1 to 13 of 13

Copy Paste Issue Merge Cell & Paste Values other Column

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Copy Paste Issue Merge Cell & Paste Values other Column

    Hi All,
    hope you are good, first i need a help to copy merge cell value and paste in another location column H without spaces ( merge cell ).
    second in column C i want to paste column A names to Column C merge cell. i select Column C ( c1 to c18 ) range then use formula =INDEX($A$1:$A$5,COUNTA(C$1:C1)) Ctrl +Enter result is ZERO.

    file is attached

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    I don't understand about merged cell. What is purpose of merging of data. Merge practice not a good sign.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500
    Quote Originally Posted by avk View Post
    I don't understand about merged cell. What is purpose of merging of data. Merge practice not a good sign.
    Thanks avk for the reply, actually i know merge is not a good practice, but its a system generated report export to excel, i want alpanumaric code paste to this range, there are two diffrent report not code are match to each other, and second problem date is not also match to each other.
    So now i have to replace first report codes to other.
    One report is with merge cell. Is there any easy solution to paste this?

    Thanks

  4. #4
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Hi, you can try this formula for "unmerging" to copy down in column H:
    =IFERROR(IF(ROWS(Sheet1!C$2:C2)>18,"",INDEX($C$1:$C$18,AGGREGATE(15,6,ROW($C$1:$C$18)-ROW($C$1)+1/NOT(ISBLANK($C$1:$C$18)),ROWS($H$1:H1)))),"")
    Cheers
    Erwin
    Last edited by Eastw00d; 04-26-2020 at 07:22 AM. Reason: additional information
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  5. #5
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Hi,
    for the second question: if the cells contain a cell reference, you could use something like this:
    =INDIRECT(C1)
    or you can add this to my earlier formula
    Cheers
    Erwin

  6. #6
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Quote Originally Posted by Eastw00d View Post
    Hi,
    for the second question: if the cells contain a cell reference, you could use something like this:
    =INDIRECT(C1)
    or you can add this to my earlier formula
    Cheers
    Erwin
    Hi Eastw00d,
    Thanks for the reply, the first formula works perfect to unmerge cell column H, but the second i apply did not work. can you please more clarify it =indirect(c1). do i have to create name range by name manager box? . i use =indirect(A1) of cell C1 but did not work.

    Thanks

  7. #7
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Hi, see the cells in yellow
    Cheers
    Erwin
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    in this case when i change a value of cell c1 to c18 replace A1 to TT01 and A4 to YYM1 the indirect formula result is incorrect column H but in column K without INDIRECT formula is giving OK result. can you tell me how INDIRECT is not giving perfect result?

    file is attached.

  9. #9
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Thanks Eastw00d,
    its really perfect, no doubt like a cheer, thanks a lot, kindly one more thing tell me i would like to sum value column E against column C merge cell A1. please see the attached file.
    column K i use your formula without INDIRECT to find actual value of cell C1 then apply to sum value =SUM(OFFSET(INDEX($C$1:$C$18,MATCH(K1,$C$1:$C$18,0)),0,2,4,1)). in this formula last one row height is not fix so i put manually type 4,3,2,5,4 when i drag the formula. kindly tell me how to this by formula height AUTO.

    kindly consider to this, i would be very thank full for you.

    Thanks
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Maybe something like this. The last question is so much different than the original one, maybe my solution for this is not the right one.
    Perhaps it is better to ask this in a new thread.

    Cheers
    Erwin
    Attached Files Attached Files
    Last edited by Eastw00d; 04-27-2020 at 06:22 AM. Reason: typo

  11. #11
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Thanks Eastw00d,
    Ok i create a new thread for this.
    thanks a lot.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,698

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

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


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  13. #13
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Copy Paste Issue Merge Cell & Paste Values other Column

    Quote Originally Posted by AliGW View Post
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    my last question exactly related to this Thread INDIRECT function is not working when i change values in Column C. i started a new thread for OFFSET function Issue.

+ 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 and Paste Issue with a Column
    By Michael_Brown in forum Excel General
    Replies: 2
    Last Post: 12-04-2017, 09:32 PM
  2. Copy & Paste values paste the cell's below value
    By Miskondukt in forum Excel General
    Replies: 2
    Last Post: 11-01-2017, 11:43 AM
  3. Need VBA code to copy and paste pivot row at 17 with formatting and merge of column
    By johnmacpro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2016, 10:04 AM
  4. [SOLVED] Copy and Paste Range of Cells based on # of cell values in Column A
    By bwaite87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2014, 05:51 PM
  5. [SOLVED] Copy and paste values of specific column and increase a cell value by 1
    By ncalvelo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2013, 10:38 AM
  6. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  7. Replies: 0
    Last Post: 09-06-2012, 04:06 AM

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