# The number, ignoring the repeater

#### Mamdouh Elfors

##### Member
Hi
I want the number with two conditions, ignoring the duplicates as in column F

#### Attachments

• 9.4 KB Views: 4

#### pecoflyer

##### Well-Known Member
What have you tried? Where did it go wrong?

#### Mamdouh Elfors

##### Member
The file creates a serial with two criteria in column F, the first criteria is Item Code and the second is PO # (I did this manually)
I made an attempt with the equations in column J but it failed
I would like to make an equation in column F that gives the results in it

#### Attachments

• 12 KB Views: 1

#### bosco_yip

##### Excel Ninja
The file creates a serial with two criteria in column F, the first criteria is Item Code and the second is PO # (I did this manually)
I made an attempt with the equations in column J but it failed
I would like to make an equation in column F that gives the results in it
If you accept helper columns as per your attachment.

Then, try this,

1] Helper column_1, H3 formula copied down:

=IF(COUNTIFS(B\$3:B3,B3,C\$3:C3,C3)=1,IF(COUNTIFS(C\$3:C3,C3)=1,MAX(H\$2:H2)+1,0),"")

2] Helper column_2, I3 formula copied down:

=IF(H3=0,MAX(I\$2:I2)+1,0)

3] Formula result, J3 formula copied down:

=IF(H3="","",H3+I3)

#### Attachments

• 12.6 KB Views: 2

#### Mamdouh Elfors

##### Member
bosco_yip
Thanks that's awesome
What if without helper columns?