Hello Mr. Excel!
I have a fairly large data set that i'm working with and I am trying to determine the number of unique combinations given a certain criteria. I have 3 fields i'm trying to compare, Active ("Y" or "N"), Customer Name (there are many different names), Project (there are many different projects). There are multiple appearances of "Customer Name" and "Project" from other fields in my data set.
In the 4th column, I'm trying to output a "0" if Active is "N", and a "1" for the first unique combination of Customer Name and Project and "0" for the remaining duplicates. The total dataset is ~4000 rows but this the main problem i'm desperate to solve!
So far, i've tried this which returns a "0" when Active is "N" but I get "#VALUE" when Active is "Y". Any suggestions on how to solve this? This would be copied and pasted in cell D2 and pasted down through the dataset.
=IF(A2="Y",IF(SUMPRODUCT(($B$2*$B2=B2)*($C$2*$C2=C2))>1,0,1),0)
[TABLE="width: 267"]
<tbody>[TR]
[TD]Active
[/TD]
[TD]Customer Name
[/TD]
[TD]Project
[/TD]
[TD]Active Count
[/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 1
[/TD]
[TD]A
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 1
[/TD]
[TD]A
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot for the help!!
Josh
I have a fairly large data set that i'm working with and I am trying to determine the number of unique combinations given a certain criteria. I have 3 fields i'm trying to compare, Active ("Y" or "N"), Customer Name (there are many different names), Project (there are many different projects). There are multiple appearances of "Customer Name" and "Project" from other fields in my data set.
In the 4th column, I'm trying to output a "0" if Active is "N", and a "1" for the first unique combination of Customer Name and Project and "0" for the remaining duplicates. The total dataset is ~4000 rows but this the main problem i'm desperate to solve!
So far, i've tried this which returns a "0" when Active is "N" but I get "#VALUE" when Active is "Y". Any suggestions on how to solve this? This would be copied and pasted in cell D2 and pasted down through the dataset.
=IF(A2="Y",IF(SUMPRODUCT(($B$2*$B2=B2)*($C$2*$C2=C2))>1,0,1),0)
[TABLE="width: 267"]
<tbody>[TR]
[TD]Active
[/TD]
[TD]Customer Name
[/TD]
[TD]Project
[/TD]
[TD]Active Count
[/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 1
[/TD]
[TD]A
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 1
[/TD]
[TD]A
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]B
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 1
[/TD]
[TD]C
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]N
[/TD]
[TD]Customer 2
[/TD]
[TD]AA
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]Customer 2
[/TD]
[TD]BB
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks a lot for the help!!
Josh