sublimemovement
New Member
- Joined
- Dec 26, 2012
- Messages
- 4
I am trying to count cell with a certain criteria if adjacent cell is a unique value.
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Age (Days)[/TD]
[TD]Purchase Order[/TD]
[/TR]
[TR]
[TD]90[/TD]
[TD]20151237[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]20151236[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20151235[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20151235[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]20151234[/TD]
[/TR]
</tbody>[/TABLE]
I only need to count 1 value from the age column if the Purchase Order column is unique.
The desired result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Less than 14 days[/TD]
[TD]14 to 30 days[/TD]
[TD]greater than 30[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I can manage to get the unique number for the Purchase order column and count my ranges for the age column but I cant mix the 2.
Thanks in advance for all help.
Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Age (Days)[/TD]
[TD]Purchase Order[/TD]
[/TR]
[TR]
[TD]90[/TD]
[TD]20151237[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]20151236[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20151235[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]20151235[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]20151234[/TD]
[/TR]
</tbody>[/TABLE]
I only need to count 1 value from the age column if the Purchase Order column is unique.
The desired result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Less than 14 days[/TD]
[TD]14 to 30 days[/TD]
[TD]greater than 30[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I can manage to get the unique number for the Purchase order column and count my ranges for the age column but I cant mix the 2.
Thanks in advance for all help.