Any better alternative to this Indirect Formula

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
i have the following formula which i write to a full column using VBA.
And this formula ive pinpointed as the source to slowing everything down - due to Volitile formula i think

VBA Code:
=INDIRECT("Data!D"&ROW(XLOOKUP(A2,Data!A:A,Data!D:D,""))+1),"")

Aim:
In Data Sheet Column A = Name Lookup
In Data Sheet Colum D = Prices sorted Low to High

Im trying to get the 2nd lowest price for the Name in current Row
Formula above does an xlookup to find the first ROW then adds 1

e.g
current sheet A2 = John45

xlookup finds John45 in row 71 of Data Sheet
so 2nd lowest price is in Data!D72

Any better way ?

appreciate any help,
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Maybe
Excel Formula:
=INDEX(Data!D:D,XMATCH(A2,Data!A1:A1000,0)+1)
 
Upvote 0
Solution
Much faster thanks @Fluff

This formula in post1 is what caused this to run slow
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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