Return Multiple Values from IF Statement

bemp87

Board Regular
Joined
Dec 10, 2016
Messages
100
Hi Commnity,

I have a formula I am trying to compile to return to me with who's anniversay date it is from a range of employees and their corresponding hire dates.

I know that a IF statement generally works to find the first TRUE logical evaluation and then stops, but if there are multiple values being searched within a range, how could i get it to return more than one value (potentitially concatenating it as a string)?

Here is what i have so far:

Code:
=IF(INDEX($C$2:$C$15,MATCH(TODAY(),C2:C15,0)),INDEX(A2:A15,MATCH(E23,C2:C15,0)))


Any guidance as I would like it to return multiple names from the range if thier hire date = TODAY()
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,012
Office Version
  1. 365
Platform
  1. Windows
Try
=IFERROR(INDEX($A$2:$A$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$2)+1)/($C$2:$C$15=TODAY()),ROWS($A$1:$A1))),"")

and drag down
 

Watch MrExcel Video

Forum statistics

Threads
1,122,737
Messages
5,597,824
Members
414,180
Latest member
Sir Khaya

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
Top