Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1027027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:10:37+00:00 2026-05-16T12:10:37+00:00

Ok I have two files in Excel 2007. They are both to large to

  • 0

Ok I have two files in Excel 2007. They are both to large to do this sort manually consisting of several thousand lines.

File 1 has first names and ID numbers as 2 columns:
Joe 1
Mark 2
Bob 3
Sally 4
etc…

File 2 has last names and ID number as 2 columns:
Smith 1
Johnson 2
Brown 3
Hands 4

Is there an easy way where I can sort these two lists in excel so that I have a file of columns that says
Joe Smith 1
Mark Johnson 2
etc

Thoughts? If this can’t easily be done with excel other options i guess would be python.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:10:38+00:00Added an answer on May 16, 2026 at 12:10 pm

    Do you want to perform this operation often? In that case, I would suggest writing a macro. (Not sure as to how it would read from 2 files though)

    If it’s a one time thing, you could do it manually.
    If you know that both files contain exactly the same ID numbers, try this:

    • In both files, sort all data by ID number, using Excels custom sort.
    • Copy the column containing the last names and past it next to the column with the first names.

    If necessary, you can copy both columns (ID and last name) and compare if the two ID-numbers are equal. You can use filter to see which entries are invalid.

    Alternative
    If not all ID numbers are equal, you can use VLookup

    • Copy the info from both files into a new file.
      Lets assume that A:A contains ID numbers from the first file, B:B the corresponding first names. C:C contains ID numbers from the second file and D:D the corresponding last names.
    • make a new column with all ID numbers (E:E)
    • now let F1 contain VLookup($E1;A:B;2;FALSE), let G1 contain VLookup($E1;C:D;2;FALSE) and fill out the entire columns.

    You might want to specify the behavior of missing names by wrapping an IF test around the VLookup replacing #N/A by a default name or an empty string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two excel files. Among many columns in both these files, they have
I have two very large lists. They both were originally in excel, but the
I have two excel files with the same structure: they both have 1 column
I have two excel files. The first excel file is like this: 12 A
I have two Excel files contains the following structure, EmployeeAllDtl.xlsx id email name age
I have two files which both contain a list of words. Is there an
I have two files, A is a subset of B. Both A and B
I have an requirement of generating two excel files at once. We are using
I have two very large files we'll call Old and New. New contains many
I have a Excel CSV files with employee records in them. Something like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.