Return all Unique Values Based on Criteria in a Single Cell

austinandreikurt

Board Regular
Joined
Aug 25, 2020
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
Is it possible to list all unique values based on criteria into a single cell with "; " as the separator using only formula and not VBA? For example I have below data from A1-B14:

401k Loan 1OTHER DEDUCTIONS
401k Loan 1OTHER DEDUCTIONS
401k Loan 2OTHER DEDUCTIONS
OT @ 1.5ALL PROJECTS
OT @ 2.0ALL PROJECTS
401k Catch Up Pre-TaxEmployee 401k
401K Roth PosttaxEmployee 401k
Acc Vol EE aftertaxOTHER DEDUCTIONS
BFit Wellness IncentiveIGNORE
Child SupportOTHER DEDUCTIONS
Critical EE aftertaxOTHER DEDUCTIONS
Child SupportOTHER DEDUCTIONS
DP Vision Imp IncomeIGNORE
Group LegalOTHER DEDUCTIONS

I needed to have the RESULT in Cell E1 to be the unique values under "OTHER DEDUCTIONS" in Column B as criteria and this should be the result:

401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support; Critical EE aftertax; Group Legal
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

As your profile shows you're on Excel 2016, and does not have TEXTJOIN as I, you can do this, then in F2, put =E15 and Hide column E.

Book3.xlsx
ABCDE
1
2401k Loan 1OTHER DEDUCTIONS401k Loan 1
3401k Loan 1OTHER DEDUCTIONS401k Loan 1
4401k Loan 2OTHER DEDUCTIONS401k Loan 1; 401k Loan 2
5OT @ 1.5ALL PROJECTS401k Loan 1; 401k Loan 2
6OT @ 2.0ALL PROJECTS401k Loan 1; 401k Loan 2
7401k Catch Up Pre-TaxEmployee 401k401k Loan 1; 401k Loan 2
8401K Roth PosttaxEmployee 401k401k Loan 1; 401k Loan 2
9Acc Vol EE aftertaxOTHER DEDUCTIONS401k Loan 1; 401k Loan 2; Acc Vol EE aftertax
10BFit Wellness IncentiveIGNORE401k Loan 1; 401k Loan 2; Acc Vol EE aftertax
11Child SupportOTHER DEDUCTIONS401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support
12Critical EE aftertaxOTHER DEDUCTIONS401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support; Critical EE aftertax
13Child SupportOTHER DEDUCTIONS401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support; Critical EE aftertax
14DP Vision Imp IncomeIGNORE401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support; Critical EE aftertax
15Group LegalOTHER DEDUCTIONS401k Loan 1; 401k Loan 2; Acc Vol EE aftertax; Child Support; Critical EE aftertax; Group Legal
Sheet996
Cell Formulas
RangeFormula
E2:E15E2=IF(B2="Other Deductions",IF(COUNTIF(A$2:A2,A2)=1,E1&IF(E1="","","; ")&A2,E1),E1)
 
Upvote 0
Solution

Forum statistics

Threads
1,213,562
Messages
6,114,322
Members
448,564
Latest member
ED38

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