Reverse lookup resulting in a list of answers

Montanes

New Member
Joined
Aug 18, 2016
Messages
39
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.
 
Try like these, copied down

Montanes.xlsm
ABCDE
1SALES DEPARTMENT
2
3Date DueTime DueFleet NoJob TitleClass Code of Vehicle
419/09/202208:00UK22 WHYSCHEDULED INSPECTIONMUSTANG MACH E
523/09/202214:00GL43BEGLOLER TESTLAMBO GALLARDO
6     
Email
Cell Formulas
RangeFormula
A4:A6A4=IFERROR(INDEX(Export!F:F,AGGREGATE(15,6,ROW(Export!F$2:F$100)/(Export!K$2:K$100=A$1),ROWS(A$4:A4))),"")
B4:B6B4=IFERROR(INDEX(Export!G:G,AGGREGATE(15,6,ROW(Export!G$2:G$100)/(Export!K$2:K$100=A$1),ROWS(B$4:B4))),"")
C4:C6C4=IFERROR(INDEX(Export!B:B,AGGREGATE(15,6,ROW(Export!B$2:B$100)/(Export!K$2:K$100=A$1),ROWS(C$4:C4))),"")
D4:D6D4=IFERROR(INDEX(Export!E:E,AGGREGATE(15,6,ROW(Export!E$2:E$100)/(Export!K$2:K$100=A$1),ROWS(D$4:D4))),"")
E4:E6E4=IFERROR(INDEX(Export!M:M,AGGREGATE(15,6,ROW(Export!M$2:M$100)/(Export!K$2:K$100=A$1),ROWS(E$4:E4))),"")
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You could actually make the formulas much simpler & reduce the amount of calculations required if you used a helper column (which could be hidden after entering its formulas if you want)

Montanes.xlsm
ABCDEFG
1SALES DEPARTMENT
2
3Date DueTime DueFleet NoJob TitleClass Code of Vehicle
419/09/202208:00UK22 WHYSCHEDULED INSPECTIONMUSTANG MACH E2
523/09/202214:00GL43BEGLOLER TESTLAMBO GALLARDO4
6      
7      
Email
Cell Formulas
RangeFormula
A4:A7A4=IF(G4="","",INDEX(Export!F:F,G4))
B4:B7B4=IF(G4="","",INDEX(Export!G:G,G4))
C4:C7C4=IF(G4="","",INDEX(Export!B:B,G4))
D4:D7D4=IF(G4="","",INDEX(Export!E:E,G4))
E4:E7E4=IF(G4="","",INDEX(Export!M:M,G4))
G4:G7G4=IFERROR(AGGREGATE(15,6,ROW(Export!K$2:K$100)/(Export!K$2:K$100=A$1),ROWS(G$4:G4)),"")
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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