Index Match within Query

Simon Campbell

New Member
Joined
Oct 12, 2021
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have multiple queries getting data from a combination of Database and Web. I am currently using a complex Index / Match combo (with multiple criteria) to combine data. The Index Match formula I have used is..

=INDEX(wellbore_formation_top[Lithostrat. unit],MATCH(1,([@[Merge1.ef_wellbore.NAME]]=wellbore_formation_top[Wellbore name])*(wellbore_formation_top[Level]="GROUP")*([@MD]>wellbore_formation_top[Top depth '[m']])*([@MD]<=wellbore_formation_top[Bottom depth '[m']]),0))

I would like to avoid this extra step, and integrate the Index Match into the Query directly, but am not sure of the syntax... Is there anyone who can help with this
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Your formula looks ok. With such index multiple match would be an array formula and would require you to press CTRL+SHIFT+ENTER. Let me know if that works.
 
Upvote 0

Forum statistics

Threads
1,216,150
Messages
6,129,154
Members
449,488
Latest member
qh017

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