Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-13-2022, 02:16 PM
kilroyscarnival kilroyscarnival is offline Pairing duplicates in different columns? Windows 10 Pairing duplicates in different columns? Office 2021
Expert
 
Join Date: May 2019
Posts: 361
kilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nice
Default

As Pecoflyer says, it may depend on how your data is formatted.

I tried an experiment - this may not be the fanciest way of achieving this, but it should work. I input some made-up data representing dates and patient info as you indicated.

In both cases, the patient ID part is a number stored as text. I haven't tried it as an integer. I'm presuming that item is entered as text.

I tried the date both ways - entered as a date and the format set to match your YYYY-MM-DD, and also the date typed in as text in the lower portion. You can see in the concatenate, it converts that date to the five digit DATEVALUE.

As long as all the data going down each column is formatted the same (all as dates or all as text) a concatenate of the two columns will provide an exact match when the date and the patient ID are both duplicates in the same row. I applied conditional formatting for duplicates in that columns, and as such, at least in my version of Excel (365), I can apply a filter on that column by color, which would yield just the two duplicated rows.

Does that make sense? I'm sure there's a more elegant way, but it should be simple for you to try on your data.

Hope that helps,

Ann
Attached Files
File Type: xlsx concatenate_method.xlsx (13.2 KB, 5 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pairing duplicates in different columns? Conditional formatting showing duplicates across multiple columns not NOT same row Peterson Excel 2 04-05-2021 09:43 PM
Merging all data between two sheets into a third one without duplicates or rows or columns Ricko_uk Excel 4 08-27-2020 01:16 AM
Split selected columns, or all columns exept for Column1 Cendrinne Word VBA 2 09-20-2019 09:14 PM
Pairing duplicates in different columns? Macro to check against Columns & Delete Duplicates cjamps Excel Programming 27 12-18-2017 06:38 AM
Duplicates riothecat Excel 1 02-28-2017 03:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft