Reverse lookup resulting in a list of answers

Montanes

New Member
Joined
Aug 18, 2016
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I apologise in advance for my ignorance but I have been trying to get this to work for hours now and i am begging you to help before I check the flight capability of my laptop!

I have a tab called "EXPORT" which has the following details listed.

1661946519585.png


In an additional tab called "EMAIL", I am hoping to be able to enter a department in cell A1 which would then create a list of all rows with that department in column L of the 'EXPORT' tab as shown below:

1661946706372.png


The problem is the reverse lookup AND that any one department can be included in column L

'EXPORT': I don't expect anymore than 40 rows of data and I cant change the column order
'EMAIL': Anything can be changed in this tab except the fact I need the information of all 4 headers. It can be in any order and I wouldn't expect a result of anymore than 20 rows.

Apologies again for my very basic knowledge of formula and I would thank-you in advance for your assistance.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
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’)
 
Upvote 0
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’)
Hi, I have updated my account.

I use 365 on windows.

Ty
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=LET(f,FILTER(Export!B2:G100,Export!L2:L100=A1),INDEX(f,SEQUENCE(ROWS(f)),{5,6,1,4}))
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=LET(f,FILTER(Export!B2:G100,Export!L2:L100=A1),INDEX(f,SEQUENCE(ROWS(f)),{5,6,1,4}))
That's great thanks.

Just out of curiosity, what does the "f" mean? I am trying to understand the formula so i can use it again.
 
Upvote 0
It doesn't mean anything, it's just a variable that stores the result of the filter function.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
I am not sure if this thread is still live but it seems i have a colleague using 2016 and the above solution doesnt work for him!

Is it possible to have a solution that works for 2016 & 365?
 
Upvote 0
How about in A3 dragged down
Excel Formula:
=IFERROR(INDEX(Export!$F$2:$F$100,AGGREGATE(15,6,(ROW(Export!$L$2:$L$100)-ROW(Export!$L$2)+1)/(Export!$L$2:$L$100=$A$1),ROWS(A$3:A3))),"")
and change the F2:F100 range for the other 4 columns you need.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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