Hi,
I require a function which looks at a ID in a certain column and only compares values across respective rows for that ID:
1) Function looks at cells containing the same ID
2) Looks at which currency is first alphabetically and then if PAY or REC to determine the Buyer
Issue I am having is restricting the formula to just check across Rows where the ID is the same when dragging down the column
[TABLE="width: 225"]
<tbody>[TR]
[TD][TABLE="width: 289"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Currency[/TD]
[TD]Value[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]CAD[/TD]
[TD]REC[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]USD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]CAD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]USD[/TD]
[TD]REC[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]CAD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]USD[/TD]
[TD]REC[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]CAD[/TD]
[TD]REC[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]USD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Tom
I require a function which looks at a ID in a certain column and only compares values across respective rows for that ID:
1) Function looks at cells containing the same ID
2) Looks at which currency is first alphabetically and then if PAY or REC to determine the Buyer
Issue I am having is restricting the formula to just check across Rows where the ID is the same when dragging down the column
[TABLE="width: 225"]
<tbody>[TR]
[TD][TABLE="width: 289"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Currency[/TD]
[TD]Value[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]CAD[/TD]
[TD]REC[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]USD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]CAD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]503[/TD]
[TD]USD[/TD]
[TD]REC[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]CAD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]USD[/TD]
[TD]REC[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]CAD[/TD]
[TD]REC[/TD]
[TD]Buyer[/TD]
[/TR]
[TR]
[TD]504[/TD]
[TD]USD[/TD]
[TD]PAY[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks,
Tom