reverse Index/Match?

orsm6

Active Member
Joined
Oct 3, 2012
Messages
496
Office Version
  1. 365
Platform
  1. Windows
Hi - I can't solve his and need some help - open to any formulas, not just index/match etc.

Range: A2:G2 holds departments names.
in columns A : G from row 3 there are lists of topics for each department.

In column O i am trying to return the list of topics for the department based on the value of O1.

so as example: if cell O1 says HSSE it would return all the values in column A3 and down
if O1 said Planning, it would return all the values in column F3 and down

TIA, hope that made sense.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Orsm6,

Does this do what you want?

Orsm6.xlsx
ABCDEFGHO
1Planning
2HSSEFinanceMarketingSalesDevOpsPlanningJanitorsIP Skills
3IP SkillsMathsIP SkillsIP SkillsMathsIP SkillsFalconryHSSE
4HSSEFalconryMathsMathsPaintingHSSECooking
5ADDPaintingPaintingCooking 
6LiteratureLiteratureLiterature 
7 
8 
Sheet1
Cell Formulas
RangeFormula
O2:O8O2=INDEX($A$3:$G$999,AGGREGATE(15,6,ROW($A$3:$A$999)-ROW($A$2),ROW()-ROW($O$1)),MATCH($O$1,$A$2:$G$2,0))&""
Cells with Data Validation
CellAllowCriteria
O1List=$A$2:$G$2
 
Upvote 0
Hi Orsm6,

Does this do what you want?

Orsm6.xlsx
ABCDEFGHO
1Planning
2HSSEFinanceMarketingSalesDevOpsPlanningJanitorsIP Skills
3IP SkillsMathsIP SkillsIP SkillsMathsIP SkillsFalconryHSSE
4HSSEFalconryMathsMathsPaintingHSSECooking
5ADDPaintingPaintingCooking 
6LiteratureLiteratureLiterature 
7 
8 
Sheet1
Cell Formulas
RangeFormula
O2:O8O2=INDEX($A$3:$G$999,AGGREGATE(15,6,ROW($A$3:$A$999)-ROW($A$2),ROW()-ROW($O$1)),MATCH($O$1,$A$2:$G$2,0))&""
Cells with Data Validation
CellAllowCriteria
O1List=$A$2:$G$2
it most certainly does - thank you very much.
 
Upvote 0
it most certainly does
I think the much simpler version in O2 below should do the same as the suggested formula.
Or even simpler in P2 if you use a helper cell like P1

Also, since you have Excel 365 you may be able to employ one of the alternatives given in Q2:S2. One advantage of these is that they should not need to be copied down for the length of your data in columns A:G but should automatically 'spill' down the rows. S2 again uses the helper cell.

20 12 21.xlsm
ABCDEFGHOPQRS
1Planning6
2HSSEFinanceMarketingSalesDevOpsPlanningJanitorsIP SkillsIP SkillsIP SkillsIP SkillsIP Skills
3IP SkillsMathsIP SkillsIP SkillsMathsIP SkillsFalconryHSSEHSSEHSSEHSSEHSSE
4HSSEFalconryMathsMathsPaintingHSSECookingCookingCookingCookingCooking
5ADDPaintingPaintingCooking  
6LiteratureLiteratureLiterature  
7  
Extract Column
Cell Formulas
RangeFormula
P1P1=MATCH(O1,A2:G2,0)
O2:O7O2=INDEX(A3:G3,MATCH(O$1,A$2:G$2,0))&""
P2:P7P2=INDEX(A3:G3,P$1)&""
Q2:Q8Q2=FILTER(A3:G9&"",A2:G2=O1,"")
R2:R8R2=INDEX(A3:G9,0,MATCH(O1,A2:G2,0))&""
S2:S8S2=INDEX(A3:G9,0,P1)&""
Dynamic array formulas.
 
Upvote 0
Solution
I think the much simpler version in O2 below should do the same as the suggested formula.
Or even simpler in P2 if you use a helper cell like P1

Also, since you have Excel 365 you may be able to employ one of the alternatives given in Q2:S2. One advantage of these is that they should not need to be copied down for the length of your data in columns A:G but should automatically 'spill' down the rows. S2 again uses the helper cell.

20 12 21.xlsm
ABCDEFGHOPQRS
1Planning6
2HSSEFinanceMarketingSalesDevOpsPlanningJanitorsIP SkillsIP SkillsIP SkillsIP SkillsIP Skills
3IP SkillsMathsIP SkillsIP SkillsMathsIP SkillsFalconryHSSEHSSEHSSEHSSEHSSE
4HSSEFalconryMathsMathsPaintingHSSECookingCookingCookingCookingCooking
5ADDPaintingPaintingCooking  
6LiteratureLiteratureLiterature  
7  
Extract Column
Cell Formulas
RangeFormula
P1P1=MATCH(O1,A2:G2,0)
O2:O7O2=INDEX(A3:G3,MATCH(O$1,A$2:G$2,0))&""
P2:P7P2=INDEX(A3:G3,P$1)&""
Q2:Q8Q2=FILTER(A3:G9&"",A2:G2=O1,"")
R2:R8R2=INDEX(A3:G9,0,MATCH(O1,A2:G2,0))&""
S2:S8S2=INDEX(A3:G9,0,P1)&""
Dynamic array formulas.
Thank you to you both - these were great solutions. Toadstool please don't be offended - I have marked Peter's reply as solution not because yours didn't work, just that if others come along they can get the benefits of all the solutions offered.

thanks again.
 
Upvote 0
Terrific, thanks.

(I was asking because if it was one of the dynamic array formulas in Q:S, it would be possible, with a more complicated formula, to stop them spilling right down to the end of the data, even though the bottom cells will likely be blank. With O2, you will have to copy it down as far as the longest list is likely to go. :))
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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