Return Multiple Values from IF Statement

bemp87

Board Regular
Joined
Dec 10, 2016
Messages
102
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()
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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
 
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