If Statement search range of non-unique values

xslim12

New Member
Joined
Aug 26, 2014
Messages
13
Hey Guys,

I have a cell range of non-unique values and tickers to the cell on the right.

eg:

A B
1 1 AAPL
2 1 MSFT
3 1 (you get the rest)
4 1
5 2
6 2
7 2
8 3
9 3
10 4


I want to create a formula that can search column A and, for example, give me all the tickers categorized as 2. I am using a long offset function coupled with count and countif to solve this issue but its long and confusing. I would prefer a formula without VBA.

I was thinking an array =if(A:A=1,B:B."") would work but guess not.

Thanks.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Something like this?

This is an array formula and must be entered with CTRL-SHIFT-ENTER.
copy formula down as needed.

Excel Workbook
ABCD
1ABFind
21AAPL2ddd
31MSFTeee
41bbbfff
51ccc
62ddd
72eee
82fff
93ggg
103hhh
114iii
Sheet1
 
Upvote 0
Your welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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