+ Reply to Thread
Results 1 to 12 of 12

Combine 2 spill lists to 1 long list - hair falling out

  1. #1
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Combine 2 spill lists to 1 long list - hair falling out

    Hi

    These 2 formulas work ok on their own, which pull from named ranges, on multiple sheets on a different workbook. However I need them in 1 big list so I can use them with TRIMMEAN().

    Please Login or Register  to view this content.
    So if the first list produces 10k lines and the 2nd 5k lines. The final list should be 15k.

    Both are returning a Duration from different sheets, which I format in [H]:MM.

    Ideal solution: TRIMMEAN(MyBigList, 5%)


    Any ideas appreciated!



    What I have tried and not work
    *Adding the above formulas into named ranges and creating another named range that references List1:List2
    *Trying to feed both lines directly into TRIMMEAN() and named lists
    *Trying VBA code that merge lists, but don't work with Spill lists
    Last edited by greenstar; 06-04-2021 at 11:15 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Try this: put a link to the first cell of your first list into a column - say, column M - in row 2 and copy down for 20000 rows, using

    =IF(cell =""", "", cell)

    Then put similar links to the first cell of your second list into the same column, starting at row 20001.

    Then use this to combine the values into one list:

    =FILTER(M:M,M:M<>"")

    or just use

    =TRIMMEAN(FILTER(M:M,M:M<>""),5%)
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Try this
    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Quote Originally Posted by Bernie Deitrick View Post

    =FILTER(M:M,M:M<>"")
    Thanks - although I gave an example of only 2 list, there are multiple which are filtered on multiple columns, producing several lists.

    I only need to combine 2 at the time, but don't want to add duplicate 20k cells for each unique list

  5. #5
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this
    Please Login or Register  to view this content.
    Thanks but list 2 does not get appended to the end of List 1 using this, there is some kind of logical xor going on

    Maybe I can better describe this as "JOIN" spill list1 and list2 back to back..

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Pl upload a sample file. It is easy to think to get solution.

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Then I would go with a power query - simple and effective.

  8. #8
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Attached is a sample workbook,

    Please assume Sheet1 and Sheet2 are one workbook and Sheet3 separate workbook.

    I want to select specific rows from Sheet1 and Sheet2 (based on certain criteria) and return the duration of said rows into a list I can feed into TRIMMEAN().

    Sample made in Excel 2016 but actual workbook used in Excel 365.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Macro code for combined list
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Thank you for your help

    Can I combine and feed the array in VBA to a Trimmean(), something like this?

    CombinedList = WorksheetFunction.Transpose(M) + WorksheetFunction.Transpose(N)
    Sheets("Sheet3").Range("E7").Value = WorksheetFunction.TrimMean(CombinedList, 0.05)

    Thanks

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Combine 2 spill lists to 1 long list - hair falling out

    TrimMean function will not work for Array.
    Macro code:
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    07-08-2020
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    42

    Re: Combine 2 spill lists to 1 long list - hair falling out

    Thank you for your help!

+ 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] Combine Two Lists Into New List
    By cryosis7 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-21-2022, 06:47 PM
  2. [SOLVED] Combine 5 lists into one list
    By leprince2007 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2021, 03:25 PM
  3. Combine 2 lists into a single list
    By andisch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2020, 06:54 PM
  4. IF statements, Drop down lists & Spill prevention help
    By bronny91 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2020, 11:29 PM
  5. [SOLVED] Please help with ~, my hair is falling out
    By tryingtoexcelatexcel in forum Excel General
    Replies: 4
    Last Post: 09-13-2018, 08:54 AM
  6. [SOLVED] Combine 5 lists into one big list
    By leprince2007 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-23-2016, 01:28 PM
  7. how to combine 2 lists to one list?
    By majodan in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-23-2011, 05:06 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