Match two values from two columns and return an "x"

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,366
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
In this marix setup, I have the uniques from column A in E:G and the uniques in Column B in D2:D4. I would like to find "Neph" and "Cat A" in columns A and B and if a match place an "x". The same for all the other values to find.

So, you can see, "Neph" is found in column A under Cat A and Cat B

Budget.xlsm
ABCDEFG
1Hdr1Hdr2Cat ACat BCat C
2Cat ANephNephxx
3Cat BNephCardioxx
4Cat ACardioPulmx
5Cat BPulm
6Cat CCardio
Sheet3 (3)
Cell Formulas
RangeFormula
E1:G1E1=TRANSPOSE(UNIQUE(A2:A6))
D2:D4D2=UNIQUE(B2:B6)
Dynamic array formulas.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
=IF((AND(COUNTIFS($B$2:$B$100,$D2,$A$2:$A$100,E$1)>0)),"X","")

Book2
ABCDEFG
1Hdr1Hdr2Cat ACat BCat C
2Cat ANephNephXX 
3Cat BNephCardioX X
4Cat ACardioPulm X 
5Cat BPulm
6Cat CCardio
Sheet1
Cell Formulas
RangeFormula
E1:G1E1=TRANSPOSE(UNIQUE(A2:A6))
D2:D4D2=UNIQUE(B2:B6)
E2:G4E2=IF((AND(COUNTIFS($B$2:$B$100,$D2,$A$2:$A$100,E$1)>0)),"X","")
Dynamic array formulas.
 
Upvote 1
Solution

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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