please help assign a unique id to id coloumn if the 3 coloumns match

wrighty998

New Member
Joined
Jan 31, 2018
Messages
35
please help:rofl: i need a formula that will assign a id number if the 3 coloumns match i have 700 lines of data each week to sort


INPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]id
[/TD]
[TD]customer
[/TD]
[TD]area
[/TD]
[TD]address
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]red lane
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]peter
[/TD]
[TD]2
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
</tbody>[/TABLE]



OUTPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]id
[/TD]
[TD]customer
[/TD]
[TD]area
[/TD]
[TD]address
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]red lane
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]red lane
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]peter
[/TD]
[TD]2
[/TD]
[TD]blue lane
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]bob
[/TD]
[TD]1
[/TD]
[TD]blue lane
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
With yout table pasted into place this in A2:

=IFERROR(INDEX($A$1:A1,MATCH(1,INDEX(($B$1:B1=B2)*($C$1:C1=C2)*($D$1:D1=D2),0),0)),MAX($A$1:A1)+1)
 
Upvote 0

Forum statistics

Threads
1,224,749
Messages
6,180,725
Members
452,995
Latest member
isldboy

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