RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hoping this is possible.
In B I have a list of papers
In X there is an IF(AND formula which tells me whether a product type (EU) is suitable for the paper or not.
Where there are multiple papers, I'm seeing multiple EU's - I only want one, however.
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]V[/TD]
[TD]W[/TD]
[TD]X[/TD]
[TD]Preferred X Result[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Paper Name[/TD]
[TD]Count[/TD]
[TD]UK?[/TD]
[TD]EU?[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28935, width: 257"]Ashbourne News[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Banbury Guardian[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Banbury Guardian[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD]EU[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Barnstaple Chronicle[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Tue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Tue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD]=IF(AND(V5>1,B5=B4,W5="UK",X4<>"EU"),"EU","")[/TD]
[TD]EU[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Wed[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Wed[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD]EU[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Sat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Bedford Times & Citizen[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Bedford Times & Citizen[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD]EU[/TD]
[TD]EU[/TD]
[/TR]
</tbody>[/TABLE]
Explanation:
The formula looks to see if the count of papers is more than 1 (if not, "UK") it then looks to see if the paper name is the same as the one below, it checks if W5 is UK which is probably redundant, then it says the cell above the current cell doesn't say EU, then this cell can say EU...
The problem is that where a paper can list 5 times, like Barrow Evening Mail, I get two instances of EU... I only want one however... Any ideas?
Thank you.
In B I have a list of papers
In X there is an IF(AND formula which tells me whether a product type (EU) is suitable for the paper or not.
Where there are multiple papers, I'm seeing multiple EU's - I only want one, however.
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD][/TD]
[TD]B[/TD]
[TD]V[/TD]
[TD]W[/TD]
[TD]X[/TD]
[TD]Preferred X Result[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Paper Name[/TD]
[TD]Count[/TD]
[TD]UK?[/TD]
[TD]EU?[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28935, width: 257"]Ashbourne News[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Banbury Guardian[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Banbury Guardian[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD]EU[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Barnstaple Chronicle[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]1[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Tue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Tue[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD]=IF(AND(V5>1,B5=B4,W5="UK",X4<>"EU"),"EU","")[/TD]
[TD]EU[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Wed[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Wed[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD]EU[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD]Barrow Evening Mail - Sat[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]5[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Bedford Times & Citizen[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][TABLE="width: 257"]
<tbody>[TR]
[TD="class: xl28937, width: 257"]Bedford Times & Citizen[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]2[/TD]
[TD]UK[/TD]
[TD]EU[/TD]
[TD]EU[/TD]
[/TR]
</tbody>[/TABLE]
Explanation:
The formula looks to see if the count of papers is more than 1 (if not, "UK") it then looks to see if the paper name is the same as the one below, it checks if W5 is UK which is probably redundant, then it says the cell above the current cell doesn't say EU, then this cell can say EU...
The problem is that where a paper can list 5 times, like Barrow Evening Mail, I get two instances of EU... I only want one however... Any ideas?
Thank you.