Building cell value from multiple cells with Countif?

KW1M

New Member
Joined
Jul 21, 2020
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I have COUNTIF working to calculate years of service/membership; but now I would like to add the person's name (First and Last) so I know who qualifies versus just a count.
MrExcel test.xlsx
ABCDEF
1First NameLast NameCreated
2ChrisBull2014
3TomBull1987
4DaveChris1992
5Dave****2003
6AlanFill2020
7JohnFlat2013
8CliffHow2021
9PaulHye1991
10RayKerchunck2006
11KevinKooper2022
12MartinKooper2019
13RickLaverne2013
14EvanMacTire2022
15PaulMula2021
16JackMum1983
17BrentNone2014
18JohnPucker2015
19DavidRubber2023
20MikeTeb2019
21BudValerie1993
22JohnWank1990
23DaveWalt2022
24
252024 Recognition Status (Continuous Service)RecepientsStart DateEnd Date
2613 years210/1/202410/1/2011
2726 years510/1/201110/1/1998
2839 years110/1/199810/1/1985
2910/1/198510/1/1972
TEST
Cell Formulas
RangeFormula
B26:B28B26=COUNTIFS(Table13[Created],"<="&E27,Table13[Created],">="&F27)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about
Excel Formula:
=TEXTJOIN(CHAR(10),,FILTER(Table13[First Name]&" "&Table13[Last Name],(Table13[Created]<=E27)*(Table13[Created]>=F27)))
 
Upvote 0
How about
Excel Formula:
=TEXTJOIN(CHAR(10),,FILTER(Table13[First Name]&" "&Table13[Last Name],(Table13[Created]<=E27)*(Table13[Created]>=F27)))
Is FILTER a special function? Excel (2019)
When I paste into cell C26 (unmerged the cell first) - getting "That function does not exist" pop up.
 
Upvote 0
Filter is not available in 2019, but does exist in 365 which your profile says you are using.
 
Upvote 0
Thanks -- home laptop running MS Office Pro Plus 2019, not 365. Will check work laptop... Thank you!
 
Upvote 0
For 2019 you can use
Excel Formula:
=TEXTJOIN(CHAR(10),,IF((Table13[Created]<=E27)*(Table13[Created]>=F27),Table13[First Name]&" "&Table13[Last Name],""))
Which will need to be confirmed with Ctrl Shift Enter.
 
Upvote 0
Solution
Thanks -- I've got it working now in 2019 (and work running 365)... just need to play with formatting to put commas between names - but 99% there.

Thank you and Happy New Year!
 
Upvote 0
If you want commas rater than a line feed, you can use
Excel Formula:
=TEXTJOIN(", ",,FILTER(Table13[First Name]&" "&Table13[Last Name],(Table13[Created]<=E27)*(Table13[Created]>=F27)))
 
Upvote 1

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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