Hi All,
I'm trying to come up with a macro where for a specific column, depending on what each cell value is, the adjacent value is provide a certain value.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[TD]Header 3[/TD]
[TD]Header 4[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD][/TD]
[TD]050[/TD]
[TD]Ignore[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD][/TD]
[TD]100[/TD]
[TD]Don't Ignore[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD][/TD]
[TD][/TD]
[TD]Talk to[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD][/TD]
[TD]050[/TD]
[TD]Ignore[/TD]
[/TR]
</tbody>[/TABLE]
For example, in cell D2, I have the value set as "Ignore." The macro would look at this cell, determine it is value of "Ignore" then write in cell C2, 050.
Additionally, in cell D4, the value is set as "Talk to." So the value of C4 will be blank (if there was a previous value, it would be removed)
I'm trying to come up with a macro where for a specific column, depending on what each cell value is, the adjacent value is provide a certain value.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Header 1[/TD]
[TD]Header 2[/TD]
[TD]Header 3[/TD]
[TD]Header 4[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD][/TD]
[TD]050[/TD]
[TD]Ignore[/TD]
[/TR]
[TR]
[TD]Jill[/TD]
[TD][/TD]
[TD]100[/TD]
[TD]Don't Ignore[/TD]
[/TR]
[TR]
[TD]Jack[/TD]
[TD][/TD]
[TD][/TD]
[TD]Talk to[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD][/TD]
[TD]050[/TD]
[TD]Ignore[/TD]
[/TR]
</tbody>[/TABLE]
For example, in cell D2, I have the value set as "Ignore." The macro would look at this cell, determine it is value of "Ignore" then write in cell C2, 050.
Additionally, in cell D4, the value is set as "Talk to." So the value of C4 will be blank (if there was a previous value, it would be removed)
Last edited: