+ Reply to Thread
Results 1 to 6 of 6

Unmerge and fill down

  1. #1
    Registered User
    Join Date
    11-12-2007
    Posts
    2

    Unmerge and fill down

    I have a sheet that has merged cells and two unmerged cells next to it. I want the merged cell to unmerge and repeat the info in the cell below. For instance, (as in the attached sheet) I want Category One to be repeated in A1 and A2 and Category 2 to be repeated in A3 A4.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unmerge and fill down

    1 unmerge cells
    2,in c1 put =a1
    3 in c2 put =IF(ISBLANK(A2),A1,A2)
    4 drag down
    5 then copy col C paste special/values over col A
    6 delete col c
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Unmerge and fill down

    Hi Martin,

    Just want to follow-up a question on this. What if there are random blank rows? How could you automatically fill in column C? This one is having just 1 blank rows alternately but sometimes there might be 2 or 3. Can it be done with a formula?

    Thanks

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unmerge and fill down

    same formula would apply. but you'd get loads of zeros
    so use
    in c1 =a1
    in c2 =IF(A2="",IF(A1="","",A1),A2)

    if you wanted to fill in all the gaps
    then
    in c1 =a1
    in c2 =IF(A2="",C1,A2)
    Last edited by martindwilson; 02-18-2010 at 05:30 AM.

  5. #5
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Unmerge and fill down

    It doesn't. Maybe I copied the formula wrong so I've attached it and see if you can correct it.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Unmerge and fill down

    Thanks Martin! It worked!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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