+ Reply to Thread
Results 1 to 5 of 5

How to copy into multiple rows from merged cell (or from 1 row)

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    Amsterdam, NL
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to copy into multiple rows from merged cell (or from 1 row)

    Hello,

    I have merged cells which are associated with several rows in lots of columns. I would like to copy the values in merged cells into multiple rows which are associated with the merged cells.

    With the attached picture, I can explain better: Basically, I want to copy the 'Iso Date' field into the associated 'Date' fields. So The cells B2 - B18 will have 2010-07-17 in them and B19 - B34 will have 2010-07-18 in them, and so on.. The sizes of merged cells vary.

    I appreciate if anyone can explain me in detail how to do this. Macro's are also welcome.

    Thanks a lot..
    Attached Images Attached Images
    Last edited by birisi; 08-18-2010 at 10:42 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How to copy into multiple rows from merged cell (or from 1 row)

    Hi

    you will find that merged cells are a serious nuisance in excel. So I recommend you get rid of them and place one value in each row.

    As for your example, please attach a sample sheet. You cannot expect members to help you based on a picture.

  3. #3
    Registered User
    Join Date
    08-18-2010
    Location
    Amsterdam, NL
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to copy into multiple rows from merged cell (or from 1 row)

    Hello Arthur,

    Thanks for the quick reaction. I have attached a sample file. I have just attached a picture earlier because my problem is quite easy to explain with a picture. Also I don't want a solution for just one case, I prefer a general solution which will work for all cases.

    I see that you closed my thread in other forum, I just posted to get help from the Macro Developers as well. I think Macro is necessary in my case and I am not an expert in developing them.

    Finally, it's not up to me not to use merged cells, so I have to find a way to deal with them.

    Cheers..
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to copy into multiple rows from merged cell (or from 1 row)

    In B2 dragged down, you could try

    =IF(A2<>0,A2,B1)

    Does that work for you? Then you can Copy>Paste Special >Values to remove the formulas.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    08-18-2010
    Location
    Amsterdam, NL
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to copy into multiple rows from merged cell (or from 1 row)

    Hello ChemistB,

    That helped. Oh man, how come I couldn't think of this?!

    Thanks a lot..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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