+ Reply to Thread
Results 1 to 2 of 2

Sorting and matching up two columns

  1. #1
    Registered User
    Join Date
    12-27-2018
    Location
    london
    MS-Off Ver
    365
    Posts
    1

    Sorting and matching up two columns

    I have 2 columns that have various numerical values in them. There are a lot of matching values in both the columns, however there are some unique values that appear in one column but not the other. I'd like to match up the correct values, and where the unique values appear, I'd like the opposite column to have a blank space.

    For example:

    Column A:
    1
    2
    4
    5

    Column B:

    2
    3
    4
    5

    What I'd like to see:

    1
    2 2
    3
    4 4
    5 5

    thank you for any help

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Sorting and matching up two columns

    Normally I don't jump on posts that do not have sample workbooks. However, this one was simple enough to set up.

    This solution depends upon "you sort of have to know" what the answer looks like. That is, the results will be consecutive numbers from 1 to 5 as outlined in Column D. Then I used VLOOKUP to see if the number appears in column A or column B in columns E & F. Column G is just the concatenation of E & F and column H is the same formula as G with the helper formulas substituted in so it is all in terms of A & B.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Need help sorting and matching some columns
    By davida7 in forum Excel General
    Replies: 1
    Last Post: 03-20-2017, 04:03 PM
  2. Matching 2 columns and sorting so they line up.
    By X82 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-23-2015, 09:35 AM
  3. Need Help Matching and sorting multiple columns
    By KA1485 in forum Excel General
    Replies: 2
    Last Post: 03-13-2014, 01:44 PM
  4. [SOLVED] [Help] Sorting Two Data columns/matching [Help]
    By Mattymul in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-25-2013, 01:06 PM
  5. Matching and Sorting with Two Columns
    By KaySwiss9 in forum Excel General
    Replies: 8
    Last Post: 07-26-2013, 02:22 AM
  6. Replies: 3
    Last Post: 06-09-2011, 05:58 AM
  7. Sorting columns and Matching
    By Jeremy in forum Excel General
    Replies: 2
    Last Post: 07-21-2006, 03:00 AM

Tags for this Thread

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