Return multiple columns for each row with Dynamic Array INDEX/MATCH

btj88

New Member
Joined
Feb 19, 2016
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm wondering what the best way is to return all columns (T and U) in the following setup:

1672246360565.png


I have tried using BYROW/LAMBDA to no avail. Perhaps there is a better function than INDEX/MATCH for this?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi & welcome to MrExcel.

What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

What output are you looking for?
 
Upvote 0
Thanks for the quick reply, Fluff. I've updated my account details; i'm using this Excel version:

Microsoft® Excel® for Microsoft 365 MSO (Version 2210 Build 16.0.15726.20188) 64-bit

Here is output I'm looking for:

1672247535970.png
 
Upvote 0
Ok, how about
Fluff.xlsm
ABC
1
2CatAC
3DogBD
4
5
6CatAC
7DogBD
8AntN/A#N/A
9
Main
Cell Formulas
RangeFormula
B6:C8B6=DROP(REDUCE("",A6:A8,LAMBDA(a,b,VSTACK(a,FILTER(B2:C3,A2:A3=b,"N/A")))),1)
Dynamic array formulas.
 
Upvote 0
Solution
Thanks, Fluff! That seems to work--I need to work this into a more complex spot where I'll be summing different size arrays with different criteria. I'm surprised there isn't an easier way to do this with INDEX or even SUMIFS + MAP. In a nutshell I'm looking to do this, which I can get working with your formula suggestion. Curious if there is a cleaner way to go about it though.

1672262381850.png
 
Upvote 0
If you are trying to sum the values, then why not just use sumifs.
 
Upvote 0

Forum statistics

Threads
1,214,581
Messages
6,120,368
Members
448,957
Latest member
BatCoder

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