+ Reply to Thread
Results 1 to 5 of 5

Macro to unmerge and copy down the cell information

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    3

    Macro to unmerge and copy down the cell information

    I have been asked to develop some tracking sheets for individual performance across my work group. I've been provided a report that summarizes how many tasks an individual performed across several steps in our processes. Unfortunately, I don't have any control on how the report coming to me is made. The report is made weekly, I need to pull the data each week for charts showing how each person is doing. My current solution is using sumifs statements to sum each of the categories on separate sheets. The problem is, the first column with the different steps in our process uses merged cells, which causes sumifs statements to ignore the additional lines under each section. Because our work load varies, there isn't a set number of rows for each step, so one week step 1 may have 4 employees working on it, and the next week it may have 7. How would I write a macro to unmerge the cells in Column A, then copy down the name of each step so that a sumifs formula would be able to pull the data for each employee? Feel free to let me know any additional information that you might need.
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Macro to unmerge and copy down the cell information

    Hi there,

    See if the attached workbook gets you moving in the right direction - it uses the following formula in a new column B which is being used as a helper column and may be hidden if required:

    Please Login or Register  to view this content.
    The above formula is inserted in cell B2 and is copied down as required.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Macro to unmerge and copy down the cell information

    If you do prefer to go down the VBA route, you could try this:
    Please Login or Register  to view this content.
    Might be convenient if you're automating other stuff in the workbook, or if there's a large number of "Steps"

    Tim
    Never stop learning!
    <--- please consider *-ing !

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Macro to unmerge and copy down the cell information

    That code is working perfectly! Thanks!!! My only other question is how would I set it to run only on a specific sheet? I am trying to set up a startup sheet where I have buttons to run the various macros to update the spreadsheet. Right now when I connect it to a button on the startpage, it puts the information on that sheet instead of putting it on the data sheet.

  5. #5
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: Macro to unmerge and copy down the cell information

    Just change the bit that says "Sheet1.UsedRange.Find... " to point to whichever sheet you need it to run on, e.g.
    Please Login or Register  to view this content.
    Tim

+ 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. Macro, Unmerge and copy.
    By leonhuynh2006 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2020, 12:31 PM
  2. Macro to copy information into tab based on cell value
    By ChrisOwen82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2017, 06:08 AM
  3. [SOLVED] Unmerge cells within range and copy contents to the new cell
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2015, 07:34 PM
  4. [SOLVED] Macro that will auto-copy information when a cell is selected?
    By LuckyMan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-06-2013, 02:27 PM
  5. [SOLVED] Macro to copy,paste and group information based on value in a cell
    By gullit in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2012, 05:32 PM
  6. Looking for Macro to copy information within a cell
    By thespeth in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-08-2012, 05:50 PM
  7. Unmerge+copy Macro
    By Anil Gupte in forum Excel General
    Replies: 8
    Last Post: 12-15-2005, 07:15 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