Given a sample like:
[TABLE="width: 89"]
<tbody>[TR]
[TD="class: xl63, width: 118, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"]MT/1/PD/101271A
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"] 07BV/17345057
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"] BL/1/ /635663A
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"] MALZ32741
[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
what is the expected outcome?
Hi
From these codes i would expect to see
MT - 1
BV - 1
BL - 1
MALZ - 1
Each policy number will only contain one of these 2 or 4 letter codes. There would be no duplication but there would be a number of cells with no code included. I would need to see a count of these also but can be easily caluclated if i have the sum of all coded numbers.
Regards
Allun
[TABLE="width: 275"]
<colgroup><col style="width: 131pt; mso-width-source: userset; mso-width-alt: 6229;" width="175"> <col style="width: 48pt;" span="3" width="64"> <tbody>[TR]
[TD="class: xl63, width: 175, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 64, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 64, bgcolor: transparent"] [/TD]
[TD="class: xl63, width: 64, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl64, width: 175, bgcolor: transparent"]
MT/1/PD/101271A[/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"]
MT[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
1[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 175, bgcolor: transparent"]
07BV/17345057[/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"]
BV[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
1[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 175, bgcolor: transparent"]
BL/1/ /635663A[/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"]
BL[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
1[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 175, bgcolor: transparent"]
MALZ32741[/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"]
MALZ[/TD]
[TD="class: xl63, bgcolor: transparent, align: right"]
1[/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[TD="class: xl63, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
D2, copied down:
=COUNTIF($A$2:$A$5,"*"&$C2&IF(LEN($C2)=2,"/*","*"))
Is this what you are after?