INDEX MATCH / return multiple values matching a unique criteria

DLB20720

Board Regular
Joined
Sep 29, 2013
Messages
117
I've found 30 to 40 similar examples on formulas that should solve my problem, but so far none have worked. One thing I have noticed with many of these examples is the requirement to press 'Control + Shift + Enter' for an array formula. I have Excel 2013 and no brackets appear and I'm not sure if this is necessary in 2013 as I have several other array formulas that work without doing this. I've researched this but can't find anything to indicate or rule out this requirement in 2013 but wanted to note that I tried it anyway but nothing happens. On some of the examples I found I literally cut and pasted all tables and formulas but still could not get anything to work.

My setup - I have a worksheet with roughly 8,000 stock symbols (example: AAPL, MSFT, etc) in column A. I have dates in column B that list the expected Earnings Announcement dates for the corresponding stock symbol in column A. In cell C1 I use "TODAY()" for the reference date. I'm trying to write a (copy down) formula in column D that would return all stock symbols from column A that have Earnings Announcements matching the date in C1.

I've tried 30 to 40 different formulas and nothing works. I've tried several combinations using INDEX/MATCH/COUNTIF/SMALL etc but can't figure out where I am going wrong. Hopefully someone here can offer some suggestions. Thanks!!
 
you know you could just use filter. Filter the stocks based on the dates of earnings announcement. just select from the drop down today()

Not sure what else you are going to run against your list, but if you need a static unique list copy Col A to Column E (or wherever) and remove dups.

Rich
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try to post a small representative sample along with the conditions must hold and the results that you want to see based on that sample.
 
Upvote 0
RCBricker, I am trying to avoid the use of filters because I would like to make this as automatic as possible. I had previously considered the use of a filter or Pivot Table but I'm certain there is a way to do this so Excel automatically lists (in a continuous column) any stocks reporting earnings TODAY(). After I used your formula to pull all stocks reporting earnings TODAY() into an adjacent column, I tried writing a formula that would pull them into a continuous list, but failed and haven't had much time to try again. Most of my work on my spreadsheets has to be done on the weekends when the markets are closed.

Aladin, I'll show a table below that represents the data I have and another to show what I am trying to do.

RowSymbolEA Report Date
1AAN10/27/14
2ABBV10/31/14
3AGX10/21/14
4AHH10/31/14
5AIN11/03/14
6AON10/31/14
7AVIV10/31/14

<tbody>
</tbody>

The table below represents what I am trying to accomplish; pull any stocks reporting earnings TODAY() into a continuous column. Today is actually 10/31/14. I don't necessarily have to have the date column, I just did that below to illustrate what I am trying to match. The 'TODAY()' formula can be listed anywhere on my sheet for use in another formula.

ABBV10/31/14
AHH10/31/14
AON10/31/14
AVIV10/31/14

<tbody>
</tbody>
 
Upvote 0
SymbolEA Report Date 10/31/2014
AAN10/27/2014 Symbol
ABBV10/31/2014 ABBV
AGX10/21/2014 AHH
AHH10/31/2014 AON
AIN11/3/2014 AVIV
AON10/31/2014
AVIV10/31/2014

<COLGROUP><COL style="WIDTH: 61pt; mso-width-source: userset; mso-width-alt: 2901" width=82><COL style="WIDTH: 132pt; mso-width-source: userset; mso-width-alt: 6257" width=176><COL style="WIDTH: 48pt" span=2 width=64><COL style="WIDTH: 73pt; mso-width-source: userset; mso-width-alt: 3441" width=97><TBODY>
</TBODY>

E3, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=E$1,
  ROW($A$2:$A$8)-ROW($A$2)+1),ROWS(E$3:E3))),"")
 
Upvote 0
Aladin, I tried your formula on my actual table but it only pulled up the first symbol (with incorrect date match), then nothing else. I then cut and pasted both the table and your formula in a spreadsheet and got the same result.

I've tried a few things over the last hour or so but still can't get anything to work. I won't have the opportunity to try anything else until tomorrow but will try again.
 
Upvote 0
Aladin, I tried your formula on my actual table but it only pulled up the first symbol (with incorrect date match), then nothing else. I then cut and pasted both the table and your formula in a spreadsheet and got the same result.

I've tried a few things over the last hour or so but still can't get anything to work. I won't have the opportunity to try anything else until tomorrow but will try again.

See the workbook that implements the set up: https://dl.dropboxusercontent.com/u/65698317/DLB20720%20sublist.xlsx
 
Upvote 0
Aladin, as soon as I opened your workbook I could see a major part of what my problem has been; I have never been able to produce the array brackets during any of my previous attempts. I could see the brackets in your workbook and your formula works as intended.

I've probably read 25 to 30 articles about this procedure for an array formula and all indicated this could be done by clicking in a cell, entering Control+Shift+Enter (C+S+E), and that the brackets would appear. They never have. After seeing the brackets in your formula, I started digging again and found 1 Microsoft article that indicated this C+S+E procedure must be entered in the Formula Bar, not the cell. So I tried that and discovered that the array brackets will only appear after an array formula has been entered in the cell and I can do this either by left clicking anywhere in the formula bar or by double left clicking in the cell, and then pressing C+S+E.

As many articles as I've read trying to resolve my issue, I'm not sure why this C+S+E procedure isn't spelled out better.
 
Upvote 0
Aladin, as soon as I opened your workbook I could see a major part of what my problem has been; I have never been able to produce the array brackets during any of my previous attempts. I could see the brackets in your workbook and your formula works as intended.

I've probably read 25 to 30 articles about this procedure for an array formula and all indicated this could be done by clicking in a cell, entering Control+Shift+Enter (C+S+E), and that the brackets would appear. They never have. After seeing the brackets in your formula, I started digging again and found 1 Microsoft article that indicated this C+S+E procedure must be entered in the Formula Bar, not the cell. So I tried that and discovered that the array brackets will only appear after an array formula has been entered in the cell and I can do this either by left clicking anywhere in the formula bar or by double left clicking in the cell, and then pressing C+S+E.

As many articles as I've read trying to resolve my issue, I'm not sure why this C+S+E procedure isn't spelled out better.

Great. In fact, if you are typing such a formula in a cell, you can apply CSE immediately while in the cell in order to complete the formula. Goinig to the formula bar after entering a formula or pasting it, then applying CSE is also ok.
 
Upvote 0
Aladin, as soon as I opened your workbook I could see a major part of what my problem has been; I have never been able to produce the array brackets during any of my previous attempts. I could see the brackets in your workbook and your formula works as intended.

I've probably read 25 to 30 articles about this procedure for an array formula and all indicated this could be done by clicking in a cell, entering Control+Shift+Enter (C+S+E), and that the brackets would appear. They never have. After seeing the brackets in your formula, I started digging again and found 1 Microsoft article that indicated this C+S+E procedure must be entered in the Formula Bar, not the cell. So I tried that and discovered that the array brackets will only appear after an array formula has been entered in the cell and I can do this either by left clicking anywhere in the formula bar or by double left clicking in the cell, and then pressing C+S+E.

As many articles as I've read trying to resolve my issue, I'm not sure why this C+S+E procedure isn't spelled out better.


Hi ... maybe another variianten to try.........

That whole Array curly {} brackets stuff is a mystery to me. But I am trying to understand it and did have some success using those types of formulas in threads recently..…. To get them “in” I usually had to Select the range where I wanted it, press f2, then paste the formula in, then Ctrl+Shift+Enter. Still did not always work and I had to rely on someone giving me the file with the “Array” formula in it sometimes. I say “Array” because moderators on the board have told me VBA doe not really have Array formulas?!?!.
… I hope to try and get clued up on that stuff soon…..
 
Upvote 0
I have found it easiest to simply complete my Array formula by pressing C+S+E. As for copying into other formulas, I just complete the first as an array and then copy paste or drag the formula. The problem I had in the beginning is knowing which formulas would be array. I use the internet when trying new formulas concepts and if they say Array I C+S+E and take note till I remember it each time.
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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