Unique ID Filter

DStayman

New Member
Joined
Apr 21, 2011
Messages
11
Hi All,

I have run into a wall on a data base I am trying to complete. I have a mass of data but I am primarily working with 3 columns that will finish up my workbook. For the purpose of this question I have scrubbed erroneous data. I have cell A with Name, cell B with Serial to Name and cell D with Description. In cell C I have my unique Identifier which was derived by the following formula:

=IF(B2="","",B2&COUNTIF($B$2:$B2,B2))

This works terrific for issuing a unique ID to every line; however, that is where I am trying to do other wise. What I am trying to do is have the work book look at the description and if it has previously been used to look the given cells and issue a new unique ID or repeat the Unique ID if there is more than one instance of the description (possibly Index/Match Array). Ideally, would look as follows where rows 6-9 repeat the ID from rows 1-4; however, issue a new ID in 10 because it is different from row 5. Any help is greatly appreciated!!! (PS I can send the example workbook if works better but I am I have never posted before in MrExcel and not sure how to share the file).

[TABLE="width: 600"]
<tbody>[TR]
[TD][/TD]
[TD]Name[/TD]
[TD]S/N[/TD]
[TD]Unique ID[/TD]
[TD]Desciption[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ABC Inc[/TD]
[TD]123456789[/TD]
[TD]1234567891[/TD]
[TD]ABC Inc - CRE - 123 ABC Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]XYZ Inc[/TD]
[TD]987654321[/TD]
[TD]9876543211[/TD]
[TD]XYZ Inc - CRE - 123 XYZ Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ABC Inc[/TD]
[TD]123456789[/TD]
[TD]1234567892[/TD]
[TD]ABC Inc - CAL - 123 ABC Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]XYZ Inc[/TD]
[TD]987654321[/TD]
[TD]9876543212[/TD]
[TD]XYZ Inc - CAL - 123 XYZ Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]John Smith[/TD]
[TD]100000000[/TD]
[TD]1234567891[/TD]
[TD]John Smith - ALI - $1[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ABC Inc[/TD]
[TD]123456789[/TD]
[TD]1234567891[/TD]
[TD]ABC Inc - CRE - 123 ABC Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]XYZ Inc[/TD]
[TD]987654321[/TD]
[TD]9876543211[/TD]
[TD]XYZ Inc - CRE - 123 XYZ Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]ABC Inc[/TD]
[TD]123456789[/TD]
[TD]1234567892[/TD]
[TD]ABC Inc - CAL - 123 ABC Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]XYZ Inc[/TD]
[TD]987654321[/TD]
[TD]9876543212[/TD]
[TD]XYZ Inc - CAL - 123 XYZ Ln,Anytown, USA[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]John Smith[/TD]
[TD]100000000[/TD]
[TD]1000000002[/TD]
[TD]John Smith - ALI - $2[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Any one who looked to solve, I was able to solve, was staring me in this face, was just not connecting dots. The formula I came up with that works is as follows as an array "{}":
Code:
{=IF(ISNA(MATCH(D2,$D$1:D1,0))=TRUE,IF(B2="","",B2&COUNTIF($B$2:$B2,B2)),INDEX($C$1:C1,MATCH(D2,$D$1:D1,0)))

Hope this can help others!
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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