+ Reply to Thread
Results 1 to 8 of 8

Using the filter function to duplicate rows?

  1. #1
    Registered User
    Join Date
    08-23-2022
    Location
    Sweden
    MS-Off Ver
    Google Sheets
    Posts
    9

    Using the filter function to duplicate rows?

    Hello.

    Let's say I have a worksheet with a list of names, like so:

    Aragorn the Ranger
    Bilbo the Hobbit
    Celeborn the Elf

    Let's say that, on another worksheet, I want that list of names with every name in triplicate, like so:

    Aragorn the Ranger
    Aragorn the Ranger
    Aragorn the Ranger
    Bilbo the Hobbit
    Bilbo the Hobbit
    Bilbo the Hobbit
    Celeborn the Elf
    Celeborn the Elf
    Celeborn the Elf

    Is there any way of doing this?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Using the filter function to duplicate rows?

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-23-2022
    Location
    Sweden
    MS-Off Ver
    Google Sheets
    Posts
    9

    Re: Using the filter function to duplicate rows?

    Thank you! Is it possible to make it not sort things alphabetically?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Using the filter function to duplicate rows?

    You're welcome. Thanks for the rep.

    The solution relied on the Sort to group the repeated values. I'm not that familiar with functions in Google sheets. I guess you'd need to repeat each cell and then stack them.

  5. #5
    Registered User
    Join Date
    08-23-2022
    Location
    Sweden
    MS-Off Ver
    Google Sheets
    Posts
    9

    Re: Using the filter function to duplicate rows?

    No matter, the alphabetical sorting you provided me with works just fine, so it's all good. Again, thank you TMS!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Using the filter function to duplicate rows?

    You're welcome.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: Using the filter function to duplicate rows?

    Is it possible to make it not sort things alphabetically?
    Yes it is, remove SORT( and the last ) from the formula.

  8. #8
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Using the filter function to duplicate rows?

    If you want the source list to be in any order, and the output must be triplicate rows of each name, then you can use this:

    Please Login or Register  to view this content.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

+ 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. Replies: 3
    Last Post: 11-24-2021, 09:35 AM
  2. Filter data, Deleting Duplicate Rows with vba,
    By dude6571 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2017, 04:44 PM
  3. Filter duplicate rows based on cell value
    By CP123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2017, 12:04 PM
  4. Create csv file using filter & duplicate function
    By lovinguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2015, 04:55 AM
  5. Macro to Filter and delete Duplicate rows
    By Roop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2010, 08:26 PM
  6. Filter Duplicate Rows
    By adsm in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-27-2010, 01:08 PM
  7. macro to delete duplicate rows using Filter
    By Lost in Alabama in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2006, 09:35 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