Can I add a match function to Achieve a search

Beh162

Board Regular
Joined
Jan 15, 2015
Messages
132
I'm currently using this formula to provide me with the last three full entries in a row, but I wanted to see if I can add a match feature, where it will match the team in cell E14 with E2:E5 then run the current formula.
=INDEX($F$2:$S$2,COUNTA($F$2:$S$2)-COLUMNS($F14:F14)+1)

I assume Match would be a good option?

s4n9kn.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
If you mean, can you add a "match" to find which column to pull the data from, yes you can - you just need to adjust the reference in the INDEX to include all the columns in the range
 
Upvote 0
I wanted to see if I can add a match feature, where it will match the team in cell E14 with E2:E5 then run the current formula.
If all teams will have the same number of columns filled from the left, try this copied across and down.


Book1
EFGHIJKLM
2Team ALLLWWLW
3Team BLWWLDWL
4Team CWWLWLLW
5Team DWWWWWWW
6
13
14Team CWLL
15Team BLWD
16Team DWWW
Last 3 (1)
Cell Formulas
RangeFormula
F14=INDEX($F$2:$S$5,MATCH($E14,$E$2:$E$5,0),COUNTA($F$2:$S$2)-COLUMNS($F14:F14)+1)



If the teams could have different numbers of results:


Book1
EFGHIJKLM
2Team ALLLWWLW
3Team BLWWLD
4Team CWWLWLLW
5Team DLLL
6
13
14Team CWLL
15Team BDLW
16Team DLLL
Last 3 (2)
Cell Formulas
RangeFormula
F14=INDEX($F$2:$S$5,MATCH($E14,$E$2:$E$5,0),COUNTA(INDEX($F$2:$S$5,MATCH($E14,$E$2:$E$5,0),0))-COLUMNS($F14:F14)+1)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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