ccjejohnson
New Member
- Joined
- Jul 16, 2018
- Messages
- 3
I'm trying to compose a formula for if X exists in $A4 and Y does not exist in $A4 then insert Y
Please see sample spreadsheet snippet below. The closest I've come is =IF(ISNUMBER(SEARCH(B$2,$A4)),B$3,"") which only checks if X exists then inserts Y. Having trouble with the "does not exist" part. Any ideas? I'm using Excel 2016 (not Office365).
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl66, width: 280, align: right"]X ->[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 40"]
<tbody>[TR]
[TD="width: 40"]small[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 38"]
<tbody>[TR]
[TD="width: 38"]large[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl66, width: 280, align: right"]Y ->[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 40"]
<tbody>[TR]
[TD="width: 40"]tiny[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 38"]
<tbody>[TR]
[TD="width: 38"]giant[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl65, width: 280"]this castle is small with large windows into which giants may peer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please see sample spreadsheet snippet below. The closest I've come is =IF(ISNUMBER(SEARCH(B$2,$A4)),B$3,"") which only checks if X exists then inserts Y. Having trouble with the "does not exist" part. Any ideas? I'm using Excel 2016 (not Office365).
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl66, width: 280, align: right"]X ->[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 40"]
<tbody>[TR]
[TD="width: 40"]small[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 38"]
<tbody>[TR]
[TD="width: 38"]large[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl66, width: 280, align: right"]Y ->[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 40"]
<tbody>[TR]
[TD="width: 40"]tiny[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 38"]
<tbody>[TR]
[TD="width: 38"]giant[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 280"]
<tbody>[TR]
[TD="class: xl65, width: 280"]this castle is small with large windows into which giants may peer[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]