Array Formula Extract Records tutorial not working for me

Malhalar

New Member
Joined
Apr 15, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Having watched a MrExcel YouTube video about pulling records based on a condition, I attempted to reorganise a large question bank we have for learners. Unfortunately, the formula doesn't seem to work as it's getting caught pulling correct row numbers and always returns 0.

=IFERROR(SMALL(IF($D$1:$D$100=$J$1,ROW($A$1:$A$100)-1),ROW(A1)),"").

Column A - ID's
Column D - Categories
J1 - Category filter.

Any help is massively appreciated! Original tutorial link below:
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Can you post some sample data, along with what you have tried.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
So annoyingly, it looks like it works on my laptop but not on the work computer. I wonder if there may be some workplace restrictions in place for formula. This video is 7 years old so pre 2016, my work computer is using excel 2016 and my laptop (where the below was attempted) is 365. Surely there shouldn't be any issues caused by the product?

Book1
ABCDEFGHI
1Question NumberCategoryQuestionStage_CategoryAnswerStage 1QuestionAnswer
21GeographyWhat is the capital of England?Stage 1London1What is the capital of England?London
32PersonalWhat is my favourite colour?Stage 1Blue2What is my favourite colour?Blue
43PoliticsWho is the president of US?Stage 2Joe Biden   
54Famous PeopleWho is the father of history?Stage 2Herodotus   
65AnimalsWhat animal has orange fur and black stripes?Stage 3Tiger   
76AnimalsWhat animal is known as a leviathan?Stage 3Whale   
87GeographyWhat is the capital of Tasmania?Stage 3Hobart   
98MathsWhat is 2+2?Stage 44   
109MathsWhat is the square root of 25?Stage 45   
1110PersonalWhat is the colour of my hair?Stage 4Brown   
Sheet1
Cell Formulas
RangeFormula
G2:G11G2=IFERROR(SMALL(IF($D$2:$D$11=$G$1,ROW($A$2:$A$11)-1),ROW(A1)),"")
H2:H11H2=IFERROR(VLOOKUP($G2,$A:$E,3,FALSE),"")
I2:I11I2=IFERROR(VLOOKUP($G2,$A:$E,5,FALSE),"")
 
Upvote 0
If you are using that formula in 2016 you need to confirm it with Ctrl Shift Enter, rather than just Enter.
If done correctly you will see the formula wrapped in the curly braces { } as can bee seen in the video
 
Upvote 0
Solution
If you are using that formula in 2016 you need to confirm it with Ctrl Shift Enter, rather than just Enter.
If done correctly you will see the formula wrapped in the curly braces { } as can bee seen in the video
You are a hero! Thank you so much. I thought the curly braces were to show the formula rather than the result. Thanks again!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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