Hey guys,
Literally had no idea of what to put for the title of this one but here it goes. So in a separate column say column E I want a formula that returns "true" when the following condition is met:
B1 occurs for the first time in a unit but not any other time unless the unit changes. Units are from A1 downwards (numbers 1,2 and 3 in this example) If B1 occurs again but the unit hasn't changed then I don't want "true" to appear.
So in the example below E1 would = false, E2 would equal true, Then false all the way to E10, true for E11 etc.
unit
[TABLE="width: 224"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P2Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4Q2[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P5B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]SAND[/TD]
[TD]P7B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7B3[/TD]
[TD]B3[/TD]
[/TR]
</tbody>[/TABLE]
Sorry if the explanation is rubbish but I think you'll get the idea. Cheers!
Literally had no idea of what to put for the title of this one but here it goes. So in a separate column say column E I want a formula that returns "true" when the following condition is met:
B1 occurs for the first time in a unit but not any other time unless the unit changes. Units are from A1 downwards (numbers 1,2 and 3 in this example) If B1 occurs again but the unit hasn't changed then I don't want "true" to appear.
So in the example below E1 would = false, E2 would equal true, Then false all the way to E10, true for E11 etc.
unit
[TABLE="width: 224"]
<tbody>[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P1B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]SAND[/TD]
[TD]P2B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P2Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P3U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P4Q2[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]CLAY[/TD]
[TD]P5B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P5B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P6B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]SAND[/TD]
[TD]P7B1[/TD]
[TD]B1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7B2[/TD]
[TD]B2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7U1[/TD]
[TD]U1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7Q1[/TD]
[TD]Q1[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]CLAY[/TD]
[TD]P7B3[/TD]
[TD]B3[/TD]
[/TR]
</tbody>[/TABLE]
Sorry if the explanation is rubbish but I think you'll get the idea. Cheers!