Use Xlookup instead of index & match

Mishoshow

New Member
Joined
Sep 6, 2021
Messages
34
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
Hello Guys,

The excel sheet is too slow so is there is any way i can change this formula and use Xlookup instead of index & match ??

=IF(BDN$1=$BQ1212,$N1212,IF((IFERROR(INDEX($EW1212:$ADZ1212,MATCH(BDN$1,$EW$1:$ADZ$1,0)),0))=0,0,(INDEX($BDN1212:$CCQ1212,MATCH(@INDEX($BQ1212:$DD1212,MATCH(BDN$1,$BQ1212:$DD1212,0)-1),$BDN$1:$CCQ$1,0))+CCV1212-AED1212)))
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
=IF(BDN$1=$BQ1212, $N1212, IF((IFERROR(XLOOKUP(BDN$1, $EW$1:$ADZ$1, $EW1212:$ADZ1212, 0),0))=0, 0, (XLOOKUP(XLOOKUP(BDN$1, $BQ1212:$DD1212, $BDN1212:$CCQ1212, 0) + CCV1212 - AED1212, $BDN$1:$CCQ$1, $BDN1212:$CCQ1212, 0))))

Note that I made some assumptions about the column ranges used in the original formula, so please double-check if they are correct for your specific use case.
 
Upvote 0
=IF(BDN$1=$BQ1212, $N1212, IF((IFERROR(XLOOKUP(BDN$1, $EW$1:$ADZ$1, $EW1212:$ADZ1212, 0),0))=0, 0, (XLOOKUP(XLOOKUP(BDN$1, $BQ1212:$DD1212, $BDN1212:$CCQ1212, 0) + CCV1212 - AED1212, $BDN$1:$CCQ$1, $BDN1212:$CCQ1212, 0))))

Note that I made some assumptions about the column ranges used in the original formula, so please double-check if they are correct for your specific use case.
thanks for your effort ,, but it didn't gave me the same result
 
Upvote 0

Forum statistics

Threads
1,215,378
Messages
6,124,603
Members
449,174
Latest member
ExcelfromGermany

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