Find unique and missing

Kishan

Well-known Member
Joined
Mar 15, 2011
Messages
1,648
Office Version
  1. 2010
Platform
  1. Windows
Using Excel 2000
Hi,

I want to find among each row in C:F column what is unique or missing, results in the coloums H:I
Example data

ABCDEFGHIJ
1
2
3
4
5 P1P2P3P4 UniqueMissing
6 1121 12X
7 1X22 1X2
8 1X11 1X2
9 1X12 1X2
10 X1X1 1X2
11 XXX1 1X2
12 2X11 1X2
13 X1XX 1X2
14 1XX1 1X2
15 X2X1 1X2
16 1111 1X2
17 1212 12X
18 1XX1 1X2
19 1XX1 1X2
20
21
22

<colgroup><col><col span="2"><col span="4"><col><col span="2"><col></colgroup><tbody>
</tbody>

Thank you in advance

Regards,
Kishan
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Probably neater ways, but how about


Excel 2013 32 bit
CDEFGHI
5P1P2P3P4
6112112X
71X221X2
81X111X2
91X121X2
10X1X11X2
11XXX11X2
122X111X2
13X1XX1X2
141XX11X2
15X2X11X2
1611111X2
17121212X
181XX11X2
191XX11X2
Sheet2
Cell Formulas
RangeFormula
H6=SUBSTITUTE("1X2",I6,"")
I6=IF(ISNA(MATCH(1,C6:F6,0)),1,"")&IF(ISNA(MATCH("X",C6:F6,0)),"X","")&IF(ISNA(MATCH(2,C6:F6,0)),2,"")
 
Upvote 0
Probably neater ways, but how about


Worksheet Formulas
CellFormula
H6=SUBSTITUTE([COLOR=rgb(255]"1X2",I6,""[/COLOR])
I6=IF([COLOR=rgb(255]ISNA(MATCH([COLOR=0)]1,C6:F6,0[/COLOR])),1,""[/COLOR])&IF([COLOR=rgb(255]ISNA(MATCH([COLOR=0)]"X",C6:F6,0[/COLOR])),"X",""[/COLOR])&IF([COLOR=rgb(255]ISNA(MATCH([COLOR=0)]2,C6:F6,0[/COLOR])),2,""[/COLOR])

<tbody>
</tbody>

<tbody>
</tbody>
Hi Fluff, it is a working as request perfect!!

Thank you for help

Kind Regards,
Kishan
:)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0
Hi Fluff, sorry to disturb you again, please could you check row 6 & row 20 where are, 4 X’S in the missing side gives the correct result "12", but Unique it should return "X"

ABCDEFGHIJ
1
2
3
4
5P1P2P3P4UniqueMissing
6XXXX1X212
13X1XX1X2
15X2X11X2
1611111X2
17121212X
181XX11X2
191XX11X2
20XXXX1X212
21
22

<tbody>
</tbody>

Thank you

Regards,
Kishan
 
Last edited:
Upvote 0
Replace the Col H formula with
=IF(ISNA(MATCH(1,C6:F6,0)),"",1)&IF(ISNA(MATCH("X",C6:F6,0)),"","X")&IF(ISNA(MATCH(2,C6:F6,0)),"",2)
 
Upvote 0
Replace the Col H formula with
=IF(ISNA(MATCH(1,C6:F6,0)),"",1)&IF(ISNA(MATCH("X",C6:F6,0)),"","X")&IF(ISNA(MATCH(2,C6:F6,0)),"",2)
Thank you Fluff, yes this formula did the trick, all is resulting very perfect!!

Kind Regards,
Kishan
:)
 
Last edited:
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,548
Members
449,038
Latest member
Guest1337

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