Python Forum
VLOOKUP Equivalent using openpyxl
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VLOOKUP Equivalent using openpyxl
#1
Hi, apologies for any naivety but I am only just beginning my foray into the world of python!
I am looking to extract data from an excel spreadsheet, utilising something similar to the VLOOKUP function in Excel.

Would someone be able to talk me through this?
For example, if I had a table of data:
A 1
B 2
C 3

I would like an input variable of "A" to retrieve the corresponding value 1.

Thanks in advanced, I imagine it isn't a complex task but being so very green I need a hand!
Reply
#2
see: https://automatetheboringstuff.com/chapter12/
And there is pandas: https://pbpython.com/excel-pandas-comp.html
(other tutorials are available, use google)
Reply
#3
Thanks, I'll look into it!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vlookup function in Pyhton antozas 1 646 Oct-02-2023, 04:16 AM
Last Post: vikraman
  "Vlookup" in pandas dataframe doug2019 3 1,858 May-09-2022, 01:35 PM
Last Post: snippsat
  Python VLookup? Lookup Table? Nu2Python 3 2,420 Oct-25-2021, 08:47 PM
Last Post: Nu2Python
  trying to do a vlookup in pandas eeps24 1 1,946 May-22-2020, 02:10 PM
Last Post: eeps24
  How to apply VLookup formula jonzee 2 3,544 Jan-12-2020, 04:16 PM
Last Post: Clunk_Head
  equivalent commands saeed_balk 2 2,685 Sep-23-2018, 05:44 AM
Last Post: saeed_balk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020