Retrieving single cell of data from large external database without increasing file size

StijnRoelen

New Member
Joined
Sep 8, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I have a large database with 460.478 unique "Postal Codes".
I also have a workbook in which I want to fill in one of the "Postal Codes" and as a result get the "Municipality" and "Water Authority" for that specific Postal Code.
Right now i have a simple but working solution which is
=VLOOKUP(D4;'C:\Users\Stijn\Documents\[Database.xlsx]Sheet1'!$A$2:$C$460479;2;FALSE)

except when i do it like this the file size of my workbook increases from 2,5 MB to over 12 MB. Since we use many unique copies of this workbook this is not acceptable and i feel like there should be a way to retrieve two cells per single request without increasing the size by that much.

Thanks in advance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Lookup your data with a macro.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top