Reputation: 287
I have an excel file with 3 columns. 2 columns have data - msisdn and cardnumber, but one column is empty - accountnumber
MSISDN, CARDNUMBER AND ACCOUNTNUMBER
I am trying to add data in the accountnumber column. The value here is Min 1 and Max 4.
so if an msisdn has 2 cardnumbers registered, his accountnumbers will be 1,2 and the next msisdn in the next row will have 1 for his first cardnumber.
i have 10,000 rows and i cannot update all of them manually. please if someone can help me with a formula i would really appreciate.
Upvotes: 0
Views: 148
Reputation: 1927
You can use the below formula in B2 and copy that cell and paste in all other rows in B
=SUMPRODUCT((A$2:A2=A2)*1)
Upvotes: 1