+ Reply to Thread
Results 1 to 2 of 2

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

  1. #1
    Registered User
    Join Date
    12-07-2009
    Location
    California, United States
    MS-Off Ver
    Excel 2007
    Posts
    1

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

    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

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

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

    http://www.mrexcel.com/forum/showthread.php?t=434506
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1