+ Reply to Thread
Results 1 to 3 of 3

Deleting/Merging Parent rows against child rows.

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Denver
    MS-Off Ver
    Excel Office 365
    Posts
    4

    Deleting/Merging Parent rows against child rows.

    My sheets have hundreds of these instances and im trying to find a better way to accomplish this. After filling in the parent row info (blue line) into the child rows (red line) I can't figure out how to delete the parent rows as they have no other data except for dates which lead to problems down the road for what i'm building.

    In summary, i need to delete the parent row after filling in the child rows. Another solution I could use is if i could merge all parents rows one row down into the child rows. Thanks in advance.
    Attached Images Attached Images

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Deleting/Merging Parent rows against child rows.

    Quick way?

    1. Select A3:Ax, where x is the last row there is data in columns C, E, etc.
    2. Press F5, then click 'Special...'
    3. Select 'Blanks', then click OK
    4. With the blank cells still selected, type = and then tap the up arrow key and press CTRL+ENTER to fill the date values into the blank cells.
    5. Select A3:Ax again and select Copy, then PasteSpecial > Values
    6. Select all of your data (columns A:??) and click Sort > Custom Sort
    7. Check 'My data has headers' box, then select the Time column next to 'Sort by'. Click OK.
    8. Delete all the empty 'parent' rows that should now be at the bottom.
    9. Re-sort your data (custom) by the Date & Time columns to put them back in chronological order.

    Note: Because your dates are text strings, they're going to sort alphabetically (Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday). You may want to convert those to actual dates first. You can apply a display format so they appear like they currently do, e.g. 'dddd, m/d/yyyy'.

    Could this all be done via macro? Yes.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Deleting/Merging Parent rows against child rows.

    Hey Alex,
    Watch the video that does what Paul is showing above at:
    https://www.youtube.com/watch?v=iIKqeaFvltQ

    Power Query also has this feature and it is called Fill Down.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. [SOLVED] Parent Child relationship issue: Get parent ID for child
    By masterl1983 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-28-2018, 07:35 AM
  2. Merging Rows with multiple selections without deleting text, VBA may be needed
    By carlc711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2013, 11:41 AM
  3. How do I get the "parent row" into child rows?
    By exceltroubles in forum Excel General
    Replies: 1
    Last Post: 02-23-2013, 01:07 AM
  4. Macro for modify the rows as Parent/child format
    By naflas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2010, 09:31 PM
  5. Merging cells from next rows, then deleting the rows
    By grinder in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-18-2010, 01:52 PM
  6. Replies: 4
    Last Post: 08-30-2009, 03:43 AM
  7. Replies: 3
    Last Post: 04-30-2005, 01:06 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