Forum Discussion

BC Dozier's avatar
BC Dozier
Copper Contributor
Nov 10, 2018

Find different value pairs in a table.

This is a sample of 1037 rows of report data from a medical database: The first column is Ethnicity, second, Race.

Mexican AmericanPatient Declined
Hispanic or Latino/SpanishMexican American Indian
Latin American/Latin, LatinoAmerican Indian or Alaska Native
MexicanAmerican Indian or Alaska Native
MexicanMexican American Indian
Not Hispanic or LatinoAmerican Indian or Alaska Native

How do I turn the preceding into this:

Mexican AmericanHispanic
Mexican American IndianNative American
American Indian or Alaska NativeNative American
American Indian or Alaska NativeNative American
Mexican American IndianNative American
American Indian or Alaska NativeNative American

It's difficult for an 'American Indian or Alaska Native' to be 'Latin American/Latin, Latino' but this is the wild and wacky world of medical Ethnicity and Race.

Would appreciate any suggestions on how to generate the second table via VBA.

bcdozier

 

Resources