Formula to return a unique identifier to a row of data based on 2 columns?

krups

New Member
Joined
Dec 7, 2009
Messages
1
I am trying to find a formula to return a unique identifier to a row of data based on 2 columns. I found this one below but it uses 1 colunn only:

=IF(ISNA(MATCH(B7,B6:$B$6,0)),MAX(C6:$C$6)+1,VLOOKUP(B7,B6:$C$6,2,FALSE))


Last

Name
Smith Bob
Smith Mark
Smith Bob
Gil Tom
Thomas Bob
Furst Andrew
Smyth Markus
Reynold Tom


This formula returns a unique identifier to a row of data based on 1 column.
I am trying to find a very similar formula except using 2 columns of data, e.g.:

Invoice Number Vendor

I want add a unique identifier where the Invoice number is the same however the Vendor is different and if both are the same then use the same identifier.

Please help

Thank You
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,216,805
Messages
6,132,802
Members
449,760
Latest member
letonuslepus

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