+ Reply to Thread
Results 1 to 3 of 3

combine and sort two tables

  1. #1
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    combine and sort two tables

    The sample spreadsheet illustrates (with random numbers) what I am looking to do. I process two sets of data that yield two separate tables. My goal is to combine those two tables and sort them by x. I would normally do like I have done in my sample by using an intermediate table that combines the two tables, then sort the table. I am wondering how difficult it is to remove the intermediate step. (Perhaps I am just being corrupted by visiting a forum like this and seeing everyone else going to extreme lengths to avoid/hide the intermediate steps of an operation). Any thoughts on this, or is it really just easier to create the intermediate table along the way?
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: combine and sort two tables

    The SMALL function can work with non-contiguous arrays too

    In O5
    =SMALL(($A$5:$A$16,$E$5:$E$8),O5)

    In P5
    =IFERROR(VLOOKUP($P5,$A$5:$C$16,2,FALSE),VLOOKUP($P5,$E$5:$G$8,2,FALSE))

    In Q5
    =IFERROR(VLOOKUP($P5,$A$5:$C$16,3,FALSE),VLOOKUP($P5,$E$5:$G$8,3,FALSE))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: combine and sort two tables

    Thanks, Ace_XL, that looks good. I think the key was seeing how to use a non-contiguous array in the small function.

+ 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. Best way to combine two tables into one.
    By Minot1988 in forum Excel General
    Replies: 0
    Last Post: 10-16-2014, 09:33 AM
  2. Combine two tables to one
    By InterstateRentals in forum Excel General
    Replies: 8
    Last Post: 01-27-2014, 07:30 PM
  3. Replies: 4
    Last Post: 12-15-2009, 06:18 AM
  4. Combine and Sort two tables
    By jevery in forum Excel General
    Replies: 2
    Last Post: 12-09-2009, 06:33 PM
  5. Combine and Sort Two Tables
    By jevery in forum Excel General
    Replies: 9
    Last Post: 12-03-2009, 06:12 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