0

please see below image to understand what i want to do.

Excel Data Image

John has serial# 1001, when john is repeated on client column, serial# is same as it was on first entry. How can i automate this process in excel?

  • Do you always write the client Name in the same way? which formula you use for the serial number? – yass May 09 '17 at 19:49
  • yes i always name in the same way. First i assign a serial number to a client, and then my team calls to clients. When i make a summary it's bit difficult to me recognize the thousands to clients. – Muhammad Naeem May 09 '17 at 20:08

2 Answers2

2

Put 1001 in A2. Then in A3 put:

=IF(B3<>"",IFERROR(INDEX($A$1:A2,MATCH(B3,$B$1:B2,0)),MAX($A$1:A2)+1),"")

And copy it down the column.

enter image description here

Scott Craner
  • 148,073
  • 10
  • 49
  • 81
0

use the index/match formula:

=INDEX($A$1:$A3,MATCH(B4,$B$1:$B3,0))

index match

robrados
  • 144
  • 10