Only show unique dates based on two criteria

sbawnh

Board Regular
Joined
Feb 25, 2019
Messages
50
Office Version
  1. 365
Platform
  1. Windows
Hi,
I want to show in one cell, each unique date that a pet visited based on pet type, but i want to group cats and dogs.
If I have customer name in A, pet type in B, and pet visit date in C.

ColA,ColB,ColC
Lucy,Dog,2/1/2019
Lucy,Cat,2/1/2019
Lucy,Lizard,1/8/2019
Lucy,Dog,12/12/2018

Answer:
ColD"Cats/dogs"
12/12/2018, 2/1/2019

thank you!
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
This will work if you have Excel365 Insider. It extracts the dates of cat and dog visits by the animals' owner.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
ABC
1Animal OwnerAnimalDate
2LucyDog2/01/19
3LucyCat2/01/19
4LucyLizard1/08/19
5LucyDog12/12/18
6
7
8Cats and dogs, sorted unique dates:12/12/2018, 02/01/2019
Sheet18
Cell Formulas
RangeFormula
B8=TEXTJOIN(", ",,TEXT(SORT(UNIQUE(IF((B2:B5="Dog")+(B2:B5="Cat"),C2:C5,""))),"MM/dd/yyyy"))
[/FONT]
 
Upvote 0
Thank you. I have excel 2013 and am without a few of those functions. I will mark this as solved for most others!
 
Upvote 0
You're welcome.

Soon every Excel user will have those functions. Stay tuned!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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