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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,741
Messages
6,126,587
Members
449,319
Latest member
iaincmac

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