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

  • Home
  • SEARCH
  • 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 3285516
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:16:33+00:00 2026-05-17T20:16:33+00:00

Two-headed question here guys, First, I’ve been trying to do some searching for a

  • 0

Two-headed question here guys,

First, I’ve been trying to do some searching for a way to read .xlsx files in python. Does xlrd read .xlsx files now? If not, what’s the recommended way to read/write to such a file?

Second, I have two files with similar information. One primary field with scoping subfields (like coordinates(the primary field) -> city -> state -> country). In the older file, the information is given an ID number while the newer file (with records deleted/added) does not have these ID’s. In python, I’d 1) open the two files 2) check the primary field of the older file against the primary field of the newer file and merge their information to a new file if they match. Given that its not too big of a file, I don’t mind the O(n^2) complexity. My question is this: is there a well-defined way to do this in VBA or excel? Everything I think of using excel’s library seems too slow and I’m not excellent with VBA.

  • 1 1 Answer
  • 0 Views
  • 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-17T20:16:33+00:00Added an answer on May 17, 2026 at 8:16 pm

    I frequently access excel files through python and xlrd, python and the Excel COM object. For this job, xlrd won’t work because it does not support the xlsx format. But no matter, both approaches are overkill for what you are looking for. Simple Excel formulas will deliver what you want, specifically VLOOKUP.

    VLOOKUP “looks for a value in the lefmost column of a table, and then returns a value in the same row from the column you specify”.

    Some advice on VLOOKUP, First, if you want to match on multiple cells, create a “key” cell which concatenates the cells you are interested in (in both workbooks). Second, make sure to set the last argument to VLOOKUP as FALSE because you will only want exact matches.

    Regarding performance, excel formulas are often very fast.

    Read the help file on VLOOKUP and ask further questions here.

    Late edit (from Mark Baker’s answer): There is now a python solution for xlsx. Openpyxl was created this year by Eric Gazoni to read and write Excel’s xlsx format.

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

Sidebar

Related Questions

I have a two part question. The first I think I have an okay
Consider the following example. It consists of two header files, declaring two different namespaces:
Suppose a header file defines a function template. Now suppose two implementation files #include
Two years ago, we shipped a multi-gigabyte Windows application, with lots of video files.
Really basic question here. So I'm told that a dot . matches any character
I asked a question earlier today about singletons, and I'm having some difficulties understanding
Silly question 4 most, I guess, I'm trying to get my last li, which
I've read quite a few posts that are very similar to the question I'm
For the following header I get the same two errors on all my sitemaps.
Two RAID volumes, VMware kernel/console running on a RAID1, vmdks live on a RAID5.

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.