sailingaway
New Member
- Joined
- Nov 21, 2012
- Messages
- 2
I am trying to match two cells and put a unique number next to it. I have managed to recognize the two requirements and not fill the other cells unnecessarily but my equation will only output 1 and I cannot get it to add one to the previous cell that has a number, to end up with 2,3...
=IF(COUNT(IF(AND(B2=Sheet1!$A$5,'DRS Output'!L2=Sheet1!$B$5),MAXA($A$1:A1)+1,""))=0,"",COUNT(IF(AND(B2=Sheet1!$A$5,'DRS Output'!L2=Sheet1!$B$5),Maxa($A$1:A1)+1,"")))
=IF(COUNT(IF(AND(B2=Sheet1!$A$5,'DRS Output'!L2=Sheet1!$B$5),MAXA($A$1:A1)+1,""))=0,"",COUNT(IF(AND(B2=Sheet1!$A$5,'DRS Output'!L2=Sheet1!$B$5),Maxa($A$1:A1)+1,"")))