Building a spreadsheet Therory

itsrich

Board Regular
Joined
Apr 13, 2009
Messages
73
Office Version
  1. 365
Platform
  1. Windows
I am building a spreadsheet with a column to look up a part number on another sheet.

=XLOOKUP(C2555,'S:\2024 Purchasing\[Columbus Export.csv]Columbus Export'!$D:$D,'S:\2024 Purchasing\[Columbus Export.csv]Columbus Export'!$E:$E,FALSE)

2500+ cells with the same formula.

Is it better to build with =XLOOKUP(C255,INDIRECT(reference to cell with path1)!$D:$D,INDIRECT(reference to cell with path2)!$E:$E,FALSE) (this formula is not correct, only for discussion)

How do I build the smallest, fastest-loading file using formulas such as the above?

Thank You In Advance!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The 2nd formula will only work if the other workbook is open & will be a) slower & b) will calculate far more often than is needed.
If you are looking for efficiency, then you would be better off limiting your ranges, rather than using entire columns.
 
Upvote 0
Solution
TYVM Fluff! Change full column reference $A:$A to A1:A2500.

Fluff, since you did not suggest it, I take it XLOOKUP is The best option for my task. Repetition is the "bain" of Excel users?
 
Upvote 0
Not sure if there is a "best" way, but I would use xlookup.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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