If statement to return list of values based on 1 criteria

ialexander03

New Member
Joined
Jun 9, 2017
Messages
14
Hi All,

My issue is probably simple, but Im in a brain fog!

I have 2 columns, in A, I have a list of lesson numbers, and in B a list of unique subject IDs.
Example
11.1
11.2
11.3
21.4
21.5
31.6
31.7
11.8
11.9
21.10

What I want to do is return only those subject IDs for a specific lesson.

So example, on a second tab,

A1 = dropdown for lesson numbers

B1 - B10 = returned lesson IDs

I have tried to find the answer, but every time I do it, it only returns the first hit, so for Lesson 1, Subject 1.1. If I drag down the forumla for 5 cells, expecting to see 1.1, 1.2, 1.3, 1.8 & 1.9, I just get 5 x 1.1.

Please help!!!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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, using O365
 
Upvote 0
Hi, using O365
Please add it to your profile as suggested by @Fluff so the information is always readily available to helpers.

Is this what you want?

24 02 22.xlsm
ABCDEF
121.4Example
21.511.1
31.111.2
411.3
521.4
621.5
731.6
831.7
911.8
1011.9
1121.1
IDs
Cell Formulas
RangeFormula
B1:B3B1=FILTER(F2:F11,E2:E11=A1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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